00:01
We're told that customers at a fruit stand can buy at most four mangoes, at most two passion fruits, and any even number of papayas, three or more coconuts, and carambolas in groups of five.
00:20
In part a, we're asked to explain how the generating functions can be used to find the number of ways a customer can buy n pieces of these fruits, following the restrictions listed.
00:34
So, first of all, in part a, we have the generating function for mangoes.
00:43
We're told the customer can buy, at most, for mangoes.
00:50
So this is all powers of x up to four.
00:56
So 1 plus x, plus x squared, plus x cute, plus x to the fourth.
01:06
And with passion fruit, we can have at most two passion fruit.
01:11
So the generating function for passion fruit contains all powers of x up to 2.
01:21
So 1 plus x plus x squared.
01:28
Any even number of papayas.
01:31
So that means that for papayas, the generating function is going to contain any even power of x...