Three of my friends and I are going to split the bill for dinner. Bill and I will each contribute an odd number of dollars, while Celia contributes a number of dollars that is a multiple of . Nikhil will either contribute nothing, or one or two dollars. In how many ways can we pay a bill?
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.
The generating function for this scenario is
( x + x 3 + . . . ) 2 ( 1 + x 3 + x 6 + . . . ) ( x − 2 + x − 1 + 1 ) = ( 1 − x 2 ) 2 ( 1 − x 3 ) 1 + x + x 2
( 1 − x 2 ) 3 1 + x = ( 1 − x 2 ) 3 1 + ( 1 − x 2 ) 3 x = ∑ k = 0 ∞ ( 2 k + 2 ) x 2 k + x ∑ k = 0 ∞ ( 2 k + 2 ) x 2 k
The right term does not have a x 3 0 term so we just need to worry about the left term.
The coefficient of the x 3 0 term is ( 2 1 7 ) = 1 3 6 .
Note: since the answer is so nice,
can you come up with a counting argument?