Problem 44754. How many days?!?
Christmas is coming earlier and earlier each year. Thanks to rampant commercialism and Christmas Creep, "The Twelve Days of Christmas" song has been changed. Your job is to figure out just how many gifts you would need to get your true love if Christmas were X days, instead of 12.
The same pattern of gift giving will follow, so you would get a single partridge in a pear tree on days one through X, two turtle doves on days two through X, three French hens on days three through X, and so on all the way up to X special gifts only on day X.
For reference, the original 12 days of Christmas gives you a total of 364 gifts, which is one for every day of the year except Christmas. I've always found that quite amusing.
Solution Stats
Problem Comments
-
1 Comment
A great problem for a Christmas morning! Merry Christmas and Happy Holidays to everyone on Cody
Solution Comments
Show commentsProblem Recent Solvers54
Suggested Problems
-
Find state names that start with the letter N
1245 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
532 Solvers
-
9142 Solvers
-
Compute LOG(1+X) in natural log
251 Solvers
-
739 Solvers
More from this Author80
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!