"On the first day of Christmas, my true love gave to me / a partridge in a pear tree."
"On the second day of Christmas, my true love gave to / two turtle doves and a partridge in a pear tree."
⋮
"On the twelfth day of Christmas, my true love gave to me
How many gifts does my true love give to me in these twelve days of Christmas?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
For n days of Christmas one could also calculate it as
k = 1 ∑ n k ( ( n + 1 ) − k ) = ( n + 1 ) ∗ k = 1 ∑ n k − k = 1 ∑ n k 2 = ( n + 1 ) ∗ 2 n ( n + 1 ) − 6 n ( n + 1 ) ( 2 n + 1 ) =
6 n ( n + 1 ) ( 3 ( n + 1 ) − ( 2 n + 1 ) = 6 n ( n + 1 ) ( n + 2 ) ,
which is equivalent to ( ( n + 2 ) − 3 ) ! ∗ 3 ! ( n + 2 ) ! = ( 3 n + 2 ) , as you have already ascertained.
Then for n = 1 2 there would be 6 1 2 ∗ 1 3 ∗ 1 4 = 2 ∗ 1 8 2 = 3 6 4 gifts. It does seem quite a coincidence that there ends up being one gift for every day besides Christmas, (except in a leap year). I wonder if the song writer "did the math" beforehand? :)
Log in to reply
Yes-- it appears that you separate the sum into the different kinds of gifts; gift # k occurs on n + 1 − k days, k times each, hence the term k ( ( n + 1 ) − k ) .
There are
@Brian Charlesworth Sir, wouldn't that be ( 3 n + 2 ) ?
Log in to reply
Right! Sorry about that. Thanks for catching my mistake. :)
Nice problem and solution
I don't understand how you turned 1 + . . . + n into a binomial coefficient ( 2 n + 1 ) . I understand how you used the hockey-stick identity to find the sum, but I don't understand what made you think pascal's triangle.
Log in to reply
If you know the hockey-stick identity, consider this:
The numbers 1, 2, 3, ..., n form the left diagonal ( n 1 ) . You can use the hockey-stick theorem for that, too, and get ( n + 1 2 ) ...!
Summing the amount of gifts for each day for the first five days we see the sequence a n = 1 , 3 , 6 , 1 0 , 1 5 , . . . That is to say that we obtain one gift on the first day, three gifts on the second day, six gifts on the third day, ten gifts on the fourth day, fifteen gifts on the fifth day, and so on. We can readily see that this is a quadratic sequence such that a n = 1 , 3 , 6 , 1 0 , 1 5 , . . . , 2 n 2 + 2 n From here we can simply find the sum of this sequence from the first day of Christmas to the twelfth day of Christmas. This leaves us with the sum
2 1 n = 1 ∑ 1 2 n 2 + n = 3 6 4
The given problem can be represented by this summation
(1) + ( 1+2) + ( 1+2+3)+......+( 1+2+3+4+5+6+7+8+9+10+11+12) = 12 * 1 + 11 * 2 + 10 * 3+...+1 * 12 = ∑ i = 1 1 2 n(13-n) = 364
Problem Loading...
Note Loading...
Set Loading...
On day n , my true love gives me 1 + ⋯ + n = ( n + 1 2 ) gifts. In twelve days, it is ( 2 2 ) + ( 3 2 ) + ⋯ + ( 1 3 2 ) = ( 1 4 3 ) gifts. (See hockey stick identity .) This evaluates as ( 1 4 3 ) = 3 ⋅ 2 ⋅ 1 1 4 ⋅ 1 3 ⋅ 1 2 = 1 4 ⋅ 1 3 ⋅ 2 = 3 6 4 gifts-- one for every day of the year except Christmas itself.
Alternative solution:
Every gift can be described by the number of the day d , the number of the gift g (with g = 1 for a partridge and g = 1 2 for a drummer drumming), and the sequential number n of the gift on that day. Clearly, 1 ≤ n ≤ g ≤ d ≤ 1 2 ; and any triple of numbers n , g , d that satisfies this equation corresponds to a gift.
Every gift can therefore be described uniquely by three different numbers 1 ≤ n < g + 1 < d + 2 ≤ 1 4 . The total number of gifts is equal to the number of ways in which three distinct numbers ( n , g + 1 , d + 2 ) may be chosen from 1 , … , 1 4 . This is the number of combinations of 3 out of 14, ( 1 4 3 ) .