Problem 1E Find the generating function for the finite sequence 2, 2, 2, 2, 2. 2.
Read moreTable of Contents
Textbook Solutions for Discrete Mathematics and Its Applications
Question
A coding system encodes messages using strings of base 4 digits (that is, digits from the set {0. 1,2,3}). A codeword is valid if and only if it contains an even number of 0s and an even number of 1s. Let an equal the number of valid codewords of length n. Furthermore, let bn , cn. and dn equal the number of strings of base 4 digits of length n with an even number of 0s and an odd number of 1s, with an odd number of 0s and an even number of 1s, and with an odd number of 0s and an odd number of 1s, respectively.a) Show that dn = 4n ? an ? bn – cn. Use this to show that an + 1 = 2an + bn + cn . bn+ l = bn ? cn + 4n, and cn+1 = cn ? bn + 4n.________________b) What are a1, b1, c1 and d1?________________c) Use parts (a) and (b) to find a3, b3, c3, and d3.________________d) Use the recurrence relations in part (a), together with the initial conditions in part (b), to set up three equations relating the generating functions A(x), B(x), and C(x) for the sequences {an}, {bn}, and {cn}, respectively.________________e) Solve the system of equations from part (d) to get explicit formulae for A(x), B(x), and C(x) and use these to get explicit formulae for an, bn, cn, and dn.Generating functions are useful in studying the number of different types of partitions of an integer n. A partition of a positive integer is a way to write this integer as the sum of positive integers where repetition is allowed and the order of the integers in the sum does not matter. For example, the partitions of 5 (with no restrictions) are 1 + 1 + 1 + 1 + 1, 1 + 1 + 1+2, 1 + 1+3, 1+2 + 2, 1 + 4, 2 + 3, and 5. Exercises 51-56 illustrate some of these uses.
Solution
The first step in solving 8.4 problem number trying to solve the problem we have to refer to the textbook question: A coding system encodes messages using strings of base 4 digits (that is, digits from the set {0. 1,2,3}). A codeword is valid if and only if it contains an even number of 0s and an even number of 1s. Let an equal the number of valid codewords of length n. Furthermore, let bn , cn. and dn equal the number of strings of base 4 digits of length n with an even number of 0s and an odd number of 1s, with an odd number of 0s and an even number of 1s, and with an odd number of 0s and an odd number of 1s, respectively.a) Show that dn = 4n ? an ? bn – cn. Use this to show that an + 1 = 2an + bn + cn . bn+ l = bn ? cn + 4n, and cn+1 = cn ? bn + 4n.________________b) What are a1, b1, c1 and d1?________________c) Use parts (a) and (b) to find a3, b3, c3, and d3.________________d) Use the recurrence relations in part (a), together with the initial conditions in part (b), to set up three equations relating the generating functions A(x), B(x), and C(x) for the sequences {an}, {bn}, and {cn}, respectively.________________e) Solve the system of equations from part (d) to get explicit formulae for A(x), B(x), and C(x) and use these to get explicit formulae for an, bn, cn, and dn.Generating functions are useful in studying the number of different types of partitions of an integer n. A partition of a positive integer is a way to write this integer as the sum of positive integers where repetition is allowed and the order of the integers in the sum does not matter. For example, the partitions of 5 (with no restrictions) are 1 + 1 + 1 + 1 + 1, 1 + 1 + 1+2, 1 + 1+3, 1+2 + 2, 1 + 4, 2 + 3, and 5. Exercises 51-56 illustrate some of these uses.
From the textbook chapter Generating Functions you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
full solution