Candy Doubling Day Calculation
TODO: collapasable, copyable, download, etc
Consider 10
days. If I give you 1 candy
on the first day, and each
day I give you twice more
candies than the previous
day, how much candies will I
give you on day number 10?# On the first day, 1 candy is given. Each subsequent day, the number of candies given is doubled.
We calculate the number of candies given on the 10th day.
candies_first_day = 1 day_number = 10
The number of candies given on a particular day can be calculated using the formula for exponential growth:
candies = initial_candies * (2^(day-1))
candies_day_10 = candies_first_day * (2 ** (day_number - 1)) candies_day_10512On day number 10, I will give you 512 candies.
Candy Doubling Day Calculation created at Tue Jan 20 1970 21:37:24 GMT+0000 (Coordinated Universal Time)Related Chats
Tenfold Growth Rule Formula 0.456
Loan Cost: $6,221.12 0.335
Future Date: April 30th 0.325
Digits Calculation and Explanation 0.285
Born on March 8th 0.265
Math Riddle Solution 0.258
Back-fill 5 months data 0.249
Inflasi dan Konversi USD 0.247
10,000 ≠ 2% of 2M 0.239