taocp

This site has no text of the book. Keep your own copy of TAOCP next to it. See what is checked.

Exercise · Volume 1 · 1.2.8-29

Exercise 1.2.8-29

not stated yet in Lean solution written

RatingM23
MarkersM (mathematical)
KindK1, prove: show that a stated fact is true from the written solution
SectionSection 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers

The task

Make the table of the Fibonomial coefficients (nk)ℱ\binom nk_{\mathcal F} for 0≤k≤n≤60 \le k \le n \le 6, and show that they are integers by a Pascal-like recurrence.

The exact wording is in your copy of the book.

Hints

Open one hint at a time. Try the exercise again after each.

Hint 1

The coefficient is Fn!/(Fk!Fn−k!)F_n!/(F_k!F_{n-k}!) with Fj!=F1F2⋯FjF_j! = F_1F_2\cdots F_j. Compute the table row by row.

Hint 2

Write (n−1k)ℱ\binom{n-1}k_{\mathcal F} and (n−1k−1)ℱ\binom{n-1}{k-1}_{\mathcal F} as (nk)ℱ\binom nk_{\mathcal F} times a ratio of two Fibonacci numbers.

Hint 3

The sum of the two terms of the recurrence reduces to eq. (6).

Solution

Show the solution

(a) The table. For 1≤n≤61 \le n \le 6 the numbers F1,…,F6F_1, \ldots, F_6 are 1,1,2,3,5,81, 1, 2, 3, 5, 8. The rows of (nk)ℱ\binom nk_{\mathcal F}, for k=0,…,nk = 0, \ldots, n, are

  • n=0n = 0: 11
  • n=1n = 1: 1,11, 1
  • n=2n = 2: 1,1,11, 1, 1
  • n=3n = 3: 1,2,2,11, 2, 2, 1
  • n=4n = 4: 1,3,6,3,11, 3, 6, 3, 1
  • n=5n = 5: 1,5,15,15,5,11, 5, 15, 15, 5, 1
  • n=6n = 6: 1,8,40,60,40,8,11, 8, 40, 60, 40, 8, 1

For example (62)ℱ=F6F5/(F2F1)=40\binom62_{\mathcal F} = F_6F_5/(F_2F_1) = 40 and (63)ℱ=F6F5F4/(F3F2F1)=8⋅5⋅3/2=60\binom63_{\mathcal F} = F_6F_5F_4/(F_3F_2F_1) = 8\cdot5\cdot3/2 = 60.

(b) The recurrence. For n≥1n \ge 1 and 1≤k≤n−11 \le k \le n - 1 write (nk)ℱ=Fn!/(Fk! Fn−k!)\binom nk_{\mathcal F} = F_n!/(F_k!\,F_{n-k}!), where Fj!=F1F2⋯FjF_j! = F_1F_2\cdots F_j is nonzero for j≥0j \ge 0. Then

(n−1k)ℱ=Fn−1!Fk! Fn−1−k!=(nk)ℱFn−kFn,(n−1k−1)ℱ=Fn−1!Fk−1! Fn−k!=(nk)ℱFkFn.\binom{n-1}k_{\mathcal F} = \frac{F_{n-1}!}{F_k!\,F_{n-1-k}!} = \binom nk_{\mathcal F}\frac{F_{n-k}}{F_n}, \qquad \binom{n-1}{k-1}_{\mathcal F} = \frac{F_{n-1}!}{F_{k-1}!\,F_{n-k}!} = \binom nk_{\mathcal F}\frac{F_k}{F_n}.

So the right side of the claimed recurrence is

Fk−1(n−1k)ℱ+Fn−k+1(n−1k−1)ℱ=(nk)ℱ Fk−1Fn−k+Fn−k+1FkFn.F_{k-1}\binom{n-1}k_{\mathcal F} + F_{n-k+1}\binom{n-1}{k-1}_{\mathcal F} = \binom nk_{\mathcal F}\,\frac{F_{k-1}F_{n-k} + F_{n-k+1}F_k}{F_n}.

By eq. (6) with m=km = k and nn replaced by n−kn - k, Fn=FkFn−k+1+Fk−1Fn−kF_n = F_kF_{n-k+1} + F_{k-1}F_{n-k}. The fraction is 11, and the recurrence holds. For k=nk = n the terms are Fn−1⋅0+F1⋅1=1=(nn)ℱF_{n-1}\cdot0 + F_1\cdot1 = 1 = \binom nn_{\mathcal F} with (n−1n)ℱ=0\binom{n-1}n_{\mathcal F} = 0.

Integers. Prove by induction on nn. The values (n0)ℱ=(nn)ℱ=1\binom n0_{\mathcal F} = \binom nn_{\mathcal F} = 1 are integers. For 1≤k≤n−11 \le k \le n-1 the recurrence writes (nk)ℱ\binom nk_{\mathcal F} as a combination, with integer coefficients, of two integers of row n−1n - 1. So every entry is an integer.

Check

Row 6 from the recurrence: (62)ℱ=F1(52)ℱ+F5(51)ℱ=15+5⋅5=40\binom62_{\mathcal F} = F_1\binom52_{\mathcal F} + F_5\binom51_{\mathcal F} = 15 + 5\cdot5 = 40, and (63)ℱ=F2(53)ℱ+F4(52)ℱ=15+3⋅15=60\binom63_{\mathcal F} = F_2\binom53_{\mathcal F} + F_4\binom52_{\mathcal F} = 15 + 3\cdot15 = 60. The table above agrees with direct python evaluation of the product formula, with exact division.

Remarks

The table has the symmetry (nk)ℱ=(nn−k)ℱ\binom nk_{\mathcal F} = \binom n{n-k}_{\mathcal F}, and the row sums are not powers of 2. Exercise 1.2.8-30 uses these coefficients as a Fibonacci analogue of the binomial theorem.

This solution is checked, and a person has not reviewed it yet. The source.

In Lean

not stated yet The exercise is not stated in Lean yet.

The status is computed from the Lean build. The node of the map.

Something is wrong? Report it.