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?
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).
300, 336, 600, 672
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.)
05AB1E by Kevin Cruijssen
Mathematica by attinat