



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




C 241 Sample Test 2 (CH4-CH6)
Name: __________________________ Date: _____________
n n n n
for all positive integers n.
Use the following to answer questions 5-7:
In the questions below give a recursive definition with initial condition(s).
Use the following to answer questions 9-11:
In the questions below suppose that a “word” is any string of seven letters of the alphabet, with repeated letters allowed.
Use the following to answer questions 14-15:
In the questions below suppose you have 30 books (15 novels, 10 history books, and 5 math books). Assume that all 30 books are different. In how many ways can you
(^) , which is true since both sides are equal to 1. P ( k ) P ( k
1 1 1 1 1 2 22 ( 1) 1 2 1 2 ( 1)^1 ( 1) 1 2 1 2 ( 1)^1 3( 1)^2 3 3
k k k k k k k k k k ^ ^ ^ ^ ^ ^ ^ ^
2 1 ( 1) (1 3( 1)) 1 2 1 ( 1) ( 2) 1 2 2 ( 1) 1 1 3 3 3
k (^) k (^) k (^) k (^) k (^) k ^.