MIT6_042JS10_lec31_prob

# MIT6_042JS10_lec31_prob - Massachusetts Institute of...

This preview shows pages 1–2. Sign up to view the full content.

Massachusetts Institute of Technology 6.042J/18.062J, Spring ’10 : Mathematics for Computer Science April 23 Prof. Albert R. Meyer revised April 14, 2010, 1049 minutes In-Class Problems Week 11, Fri. Problem 1. We are interested in generating functions for the number of different ways to compose a bag of n donuts subject to various restrictions. For each of the restrictions in (a)-(e) below, find a closed form for the corresponding generating function. (a) All the donuts are chocolate and there are at least 3. (b) All the donuts are glazed and there are at most 2. (c) All the donuts are coconut and there are exactly 2 or there are none. (d) All the donuts are plain and their number is a multiple of 4. (e) The donuts must be chocolate, glazed, coconut, or plain and: • there must be at least 3 chocolate donuts, and • there must be at most 2 glazed, and • there must be exactly 0 or 2 coconut, and • there must be a multiple of 4 plain.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern