Exercise · Volume 1 · 1.2.8-36
Exercise 1.2.8-36
not stated yet in Lean solution written
| Rating | M32 |
|---|---|
| Markers | M (mathematical) |
| Kind | Informal: the exercise has no formal statement, so Lean does not state it from the written solution |
| Section | Section 1.2.8 of Volume 1. Companion chapter: Fibonacci numbers |
The task
Find properties of the Fibonacci strings , , : where double letters occur, what the th letter is, and the density of the letters .
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
Write out and look at them. Count letters.
Hint 2
Find a rule that turns into letter by letter.
Solution
Show the solution
The first strings are , , , , . Facts, with proofs where they are short:
Length and counts. has letters. For it has letters and letters : the pairs of counts for are as , and the rule makes both counts follow the Fibonacci rule.
A substitution. Let replace each by and each by . Then for . Indeed and . If it holds for and , then .
Double letters. The string never occurs, and never occurs. In the string is made of the blocks and , so every is preceded by , and never appears. A factor would need two blocks followed by a block that starts with , that is, a factor in . By induction neither occurs. The letters do occur, for example in .
The infinite string. Since , each is a prefix of for . So there is an infinite string with as the prefix of length . Its first letters are .
The th letter. Write in the Fibonacci number system of Exercise 1.2.8-34 and let be its smallest term. Then the th letter is if is even and if is odd. Proof by induction on . For the letter at is the letter at , because and is a prefix of (here ). The Fibonacci representation of is plus that of , with the same smallest term. For the letter is the last letter of . The last letter of is the last letter of , so it is for even and for odd . This matches the rule, since the smallest term of is itself.
Counting the letters . Let be the number of letters among the first . Take in the Fibonacci system. The prefix of length is followed by a prefix of length (since , and is a prefix of ). So , and . By Exercise 1.2.8-41 this is . So the number of among the first letters is , and the density of the letters tends to . The density of the letters is .
Where the letters are. The th letter is if and only if . The th letter is at the least with , that is . So the letters are at the places . The sequences and are complementary (Beatty), because . So the letters are at the places . A python test confirms the rule for the smallest term, the formula and for the first 5000 letters.
Two more facts. and differ only in the last two letters, which are in one and in the other, for (python), and in general by induction from . The string without its last two letters is a palindrome for (python).
Remarks
The infinite string is the Fibonacci word. It is a Sturmian sequence: the count of in each window of fixed length takes at most two values. The places of the letters form the lower Wythoff sequence.
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.