MIT6_042JS10_lec31_prob - Massachusetts Institute of...

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

View Full Document Right Arrow Icon
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. (f)
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/27/2011 for the course CS 6.042J taught by Professor Prof.albertr.meyer during the Spring '11 term at MIT.

Page1 / 3

MIT6_042JS10_lec31_prob - Massachusetts Institute of...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online