
Norbert W. answered 07/28/16
Tutor
4.4
(5)
Math and Computer Language Tutor
1. A derangement is a permutation in which none of the objects appear in their "natural" (i.e., ordered) place.
With 4 elements there are 9 derangements. The derangements of {a, b, c, d} are
{b, a, d, c}, {b, c, d, a}, {b, d, a, c},
{c, a, d, b}, {c, d, a, b}, {c, d, b, a},
{d, a, b, c}, {d, c, a, b}, {d, c, b, a}
From D(n) = (n - 1)(D(n - 2) + D(n - 1)), initial values D(1) = 0, D(2) = 1
D(3) = 2(D(1) + D(2)) = 2(1 + 0) = 2
D(4) = 3(D(3) + D(2)) = 3(2 + 1) = 9
With 4 elements there are 9 derangements. The derangements of {a, b, c, d} are
{b, a, d, c}, {b, c, d, a}, {b, d, a, c},
{c, a, d, b}, {c, d, a, b}, {c, d, b, a},
{d, a, b, c}, {d, c, a, b}, {d, c, b, a}
From D(n) = (n - 1)(D(n - 2) + D(n - 1)), initial values D(1) = 0, D(2) = 1
D(3) = 2(D(1) + D(2)) = 2(1 + 0) = 2
D(4) = 3(D(3) + D(2)) = 3(2 + 1) = 9
2. αk = 3k + k - 2 for all k ≥ 0.
(a) a1 = 31 + 1 -2 = 3 + 1 - 2 = 2
a2 = 32 + 2 - 2 = 9 + 2 - 2 = 9a
a3 = 33 + 3 -2 = 27 +3 -2 = 28
(b) A(0) = -1, A(k) = 3A(k-1) - 2k + 7, k ≥ 1
A(1) = 3A(0) - 2*1 + 7 = -3 -2 + 7 = 2
A(2) = 3A(1) - 2*2 + 7 = 6 - 4 + 7 = 9
A(3) = 3A(2) - 2*3 + 7 = 27 -6 + 7 = 28
(c) It has been shown this is true for k = 1, 2, 3
Suppose it true for k: A(k) = ak = 3k + k - 2
A(k + 1) = 3A(k) - 2k + 7
= 3(3k + k - 2) - 2(k+1) + 7
= 3k+1 + 3k - 6 -2k - 2 + 7
= 3k+! + k - 1
= 3k+1 + (k+1) -2
= ak+1
Shown true by mathematical induction
3. Given A(n) = 6A(n - 1) - 11A(n - 2) + 6A(n - 3).
Assume A(n) = k*rn (k ≠ 0) and substitute these values into the recursive relationship.
k*rn = 6k*rn-1 - 11k*rn-2 + 6k*rn-3
k*rn-3 *(r3 - 6r2 + 11r - 6) = 0
rn-3 ≠ 0, otherwise r = 0 and there would be no value for instance for n = 1.
There is a polynomial and the roots of the equation needs to be found:
r3 - 6r2 + 11r - 6 = 0
(r - 1)(r -2)(r -3) = 0
There are 3 roots, r = 1, r = 2 and r = 3
Then the recursive relationship is A(n) = a*3n + b*2n +c*1n
= a*3n + b*2n +c,
where a, b, c are constants that can be determined from the initial values.
A(1) = 3a + 2b + c = 2
A(2) = 9a + 4b + c = 6
A(3) = 27a + 8b + c = 20
3 A(1): 9a + 6b + 3c= 6
A(2): 9a + 4b + c = 6
Subtracting these two results in 2b + 2c = 0 and c = -b
3 A(2): 27a + 12b + 3c = 18
A(3): 27a + 8b + c = 20
Subtracting these two results in 4b + 2c = -2
With c = -b, 4b + 2c = 4b - 2b = 2b = -2, b = -1
Then c = 1
From A(1) = 3a + 2b + c = 3a -2 + 1 = 2, then a = 1
Then A(n) = 3n - 2n + 1
(a) a1 = 31 + 1 -2 = 3 + 1 - 2 = 2
a2 = 32 + 2 - 2 = 9 + 2 - 2 = 9a
a3 = 33 + 3 -2 = 27 +3 -2 = 28
(b) A(0) = -1, A(k) = 3A(k-1) - 2k + 7, k ≥ 1
A(1) = 3A(0) - 2*1 + 7 = -3 -2 + 7 = 2
A(2) = 3A(1) - 2*2 + 7 = 6 - 4 + 7 = 9
A(3) = 3A(2) - 2*3 + 7 = 27 -6 + 7 = 28
(c) It has been shown this is true for k = 1, 2, 3
Suppose it true for k: A(k) = ak = 3k + k - 2
A(k + 1) = 3A(k) - 2k + 7
= 3(3k + k - 2) - 2(k+1) + 7
= 3k+1 + 3k - 6 -2k - 2 + 7
= 3k+! + k - 1
= 3k+1 + (k+1) -2
= ak+1
Shown true by mathematical induction
3. Given A(n) = 6A(n - 1) - 11A(n - 2) + 6A(n - 3).
Assume A(n) = k*rn (k ≠ 0) and substitute these values into the recursive relationship.
k*rn = 6k*rn-1 - 11k*rn-2 + 6k*rn-3
k*rn-3 *(r3 - 6r2 + 11r - 6) = 0
rn-3 ≠ 0, otherwise r = 0 and there would be no value for instance for n = 1.
There is a polynomial and the roots of the equation needs to be found:
r3 - 6r2 + 11r - 6 = 0
(r - 1)(r -2)(r -3) = 0
There are 3 roots, r = 1, r = 2 and r = 3
Then the recursive relationship is A(n) = a*3n + b*2n +c*1n
= a*3n + b*2n +c,
where a, b, c are constants that can be determined from the initial values.
A(1) = 3a + 2b + c = 2
A(2) = 9a + 4b + c = 6
A(3) = 27a + 8b + c = 20
3 A(1): 9a + 6b + 3c= 6
A(2): 9a + 4b + c = 6
Subtracting these two results in 2b + 2c = 0 and c = -b
3 A(2): 27a + 12b + 3c = 18
A(3): 27a + 8b + c = 20
Subtracting these two results in 4b + 2c = -2
With c = -b, 4b + 2c = 4b - 2b = 2b = -2, b = -1
Then c = 1
From A(1) = 3a + 2b + c = 3a -2 + 1 = 2, then a = 1
Then A(n) = 3n - 2n + 1