Maths Olympiad Prep

Library / /694 of 740

, 2017

Combinatorics Difficulty 5.7 AIME, harder Prove it United States

Problem:

Denote ϕ=1+52\phi=\frac{1+\sqrt{5}}{2} and consider the set of all finite binary strings without leading zeroes. Each string SS has a "base-ϕ\phi" value p(S)p(S). For example, p(1101)=ϕ3+ϕ2+1p(1101)=\phi^{3}+\phi^{2}+1. For any positive integer nn, let f(n)f(n) be the number of such strings SS that satisfy p(S)=ϕ48n1ϕ481p(S)=\frac{\phi^{48 n}-1}{\phi^{48}-1}. The sequence of fractions f(n+1)f(n)\frac{f(n+1)}{f(n)} approaches a real number cc as nn goes to infinity. Determine the value of cc.

Solution

Solution:

We write everything in base ϕ\phi. Notice that
ϕ48n1ϕ481=10010011001 \frac{\phi^{48 n}-1}{\phi^{48}-1}=10\ldots 010\ldots 01\ldots 10\ldots 01
where there are n1n-1 blocks of 47 zeros each. We can prove that every valid base-ϕ\phi representation comes from replacing a consecutive string 100100 with a 011011 repeatedly. Using this, we can easily classify what base-ϕ\phi representations are counted by f(n)f(n).

Notice that 10000000=01100000=01011000=0101011010000000=01100000=01011000=01010110 and similar, so that in each block of zeros we can choose how many times to perform a replacement. It turns out that we can do anywhere from 00 to 2424 such replacements, but that if we choose to do 2424 then the next block cannot have chosen 00 replacements. (An analogy with lower numbers is 10001000=01101000=01100110=0101111010001000=01101000=01100110=01011110, with the first block "replaced twice," which was only allowed since the second block had "replaced once," opening up the slot which was filled by the last 11 in the final replacement 011011).

Thus we have a bijection from f(n)f(n) to sequences in {0,,24}n1\{0, \ldots, 24\}^{n-1} such that (a) the sequence does not end in 2424 and (b) the sequence never has a 2424 followed by a 00.

We let ana_{n} denote the number of length-nn sequences starting with a 00, bnb_{n} for the number of such sequences starting with any of 11 to 2323, and cnc_{n} for the number of such sequences starting with 2424. We know a1=1a_{1}=1, b1=23b_{1}=23, c0=0c_{0}=0 and that f(n)=an1+bn1+cn1f(n)=a_{n-1}+b_{n-1}+c_{n-1}.

Now,
an=an1+bn1+cn1bn=23(an1+bn1+cn1)cn=bn1+cn1 \begin{aligned} a_{n} & =a_{n-1}+b_{n-1}+c_{n-1} \\ b_{n} & =23\left(a_{n-1}+b_{n-1}+c_{n-1}\right) \\ c_{n} & =b_{n-1}+c_{n-1} \end{aligned}
so bn=23anb_{n}=23 a_{n} for all nn. Substituting gives an=24an1+cn1a_{n}=24 a_{n-1}+c_{n-1}, cn=23an1+cn1c_{n}=23 a_{n-1}+c_{n-1}. Solving for cn=an+124an1c_{n}=a_{n+1}-24 a_{n-1} and plugging in gives
an+124an=anan1 a_{n+1}-24 a_{n}=a_{n}-a_{n-1}
which gives a characteristic polynomial of λ225λ+1=0\lambda^{2}-25 \lambda+1=0. We easily find that ana_{n} grows as λn\lambda^{n} (where λ\lambda is the larger solution to the quadratic equation) and thus bnb_{n}, cnc_{n} do as well, implying that f(n)f(n) grows as λn\lambda^{n}, where
λ=25+25242=25+3692 \lambda=\frac{25+\sqrt{25^{2}-4}}{2}=\frac{25+3 \sqrt{69}}{2}
which is our answer.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.