Introduction
I have an even number of bottles, all of different sizes. Unfortunately, I only know the size of the smallest bottle: 300ml.
I also know the following:
- Half of the bottles are twice the size of the other half, meaning that the smallest small bottle and the smallest large bottle are in a ratio of 2:1.
- The smaller bottles, from smallest to largest, increase in size by n%, where n is the number of bottles multiplied by 3.
Could you help find what sizes my bottles are?
Challenge
Your input is to be an even number of bottles.
The output should be the size of all of the small bottles (from smallest to largest), then all of the large bottles (from smallest to largest).
Example I/O
In: 2
Out: 300, 600
In: 4
Out: 300, 336, 600, 672
In: 10
Out: 300, 390, 507, 659.1, 856.83, 600, 780, 1014, 1318.2, 1713.66
(Note: commas are unnecessary; this answer can be formatted in any way you want as long as all of the "small" bottles come before the "large" bottles.)
Rules
Standard loophole rules apply.
This is code-golf, so shortest answer in bytes wins!
Winners
Esoteric Languages
15 bytes
05AB1E by Kevin Cruijssen
Standard Languages
36 bytes
Mathematica by attinat