#Practice Final for Math 454(2), Fall 2020, Dr. Z. Each bunch of problems is with increasing difficulty. Full answers to all parts (a) would be needed to pass the class with a C (provided that all the homework, attendance quizzes and projects have been submitted). Parts (b),(c), (d), ... are more challenging. Some of the (harder) problems may require coding. YOU CAN USE Maple, of course, the Lectures, Maple code, posted solutions, and more generally the internet, EXCEPT you have to do it by yourself, and EXPLAIN EVERYTHING! 1. (a) In how many ways can you walk from [0,0] to [30,25] where the allowed steps are [1,0] or [0,1] (b) In how many ways can you walk from [0,0] to [30,25] where the allowed steps are [1,0] or [0,1] and you MUST stay in the region x>=y (c) In how many ways can you walk from [0,0] to [30,25] where the allowed steps are [1,0] or [0,1], [1,1], or [2,1] and you MUST stay in the region x>=y (d) In how many ways can you walk from [0,0] to [30,25] where the allowed steps are [1,0] or [0,1], [1,1], or [2,1] and you MUST never visit a vertex [i,j] where BOTH i and j are primes 2. (a) How many words in the alphabet {0,1,3} are there of length 20? (b) How many words in the alphabet {1,3,7} are there that add-up to 100? (c) How many words are there in the alphabet {1,2,3,....} (all positive integers) that add-up to n? For general n (d) How many words are there in the alphabet {1,3,5,7,....} (all ODD positive integers) that add-up to n? For general n (e) How many words are there in the alphabet {0,1} of length 67 such that you never have three consecutive ones. 3. (a) Let pi be the permutation of {1,2,..., 100} such that pi[i]=i+1 for i=1.., 99, and pi[100]=1. What is pi^47? (b) Define a permutation of {0,1,..., 19} by pi[i]:=i^4 +5*i+1 mod 20. (i) Is it a permutation? If it is, how many cycles does it have? What are they? (c) How many permutations of {1,2,..., 100} are such that you NEVER have three places i1, i2, i3, i1