For a binary word w=σ1…σn of length n and a letter σ∈{0,1} let wσ=σ1…σnσ and σw=σσ1…σn. Moreover let wˉ=σn…σ1 and let ∅ be the empty word (of length 0 and with ∅ˉ=∅ ). Let (u,v) be a pair of two real numbers. For binary words w we define recursively the numbers (u,v)w as follows:
(u,v)∅=v,(u,v)0=2u+3v,(u,v)1=3u+v(u,v)wσε={2(u,v)w+3(u,v)wσ,3(u,v)w+(u,v)wσ, if ε=0 if ε=1
It easily follows by induction on the length of w that for all real numbers u1,v1,u2,v2,λ1 and λ2
(λ1u1+λ2u2,λ1v1+λ2v2)w=λ1(u1,v1)w+λ2(u2,v2)w(1)
and that for ε∈{0,1}
(u,v)εw=(v,(u,v)ε)w(2)
Obviously, for n≥1 and w=ε1…εn−1, we have an=(1,7)w and bn=(1,7)wˉ. Thus it is sufficient to prove that
(1,7)w=(1,7)wˉ(3)
for each binary word w. We proceed by induction on the length of w. The assertion is obvious if w has length 0 or 1. Now let wσε be a binary word of length n≥2 and suppose that the assertion is true for all binary words of length at most n−1.
Note that (2,1)σ=7=(1,7)∅ for σ∈{0,1},(1,7)0=23, and (1,7)1=10.
First let ε=0. Then in view of the induction hypothesis and the equalities (1) and (2), we obtain
(1,7)wσ0=2(1,7)w+3(1,7)wσ=2(1,7)wˉ+3(1,7)σwˉ=2(2,1)σwˉ+3(1,7)σwˉ=(7,23)σwˉ=(1,7)0σwˉ
Now let ε=1. Analogously, we obtain
(1,7)wσ1=3(1,7)w+(1,7)wσ=3(1,7)wˉ+(1,7)σwˉ=3(2,1)σwˉ+(1,7)σwˉ=(7,10)σwˉ=(1,7)1σwˉ
Thus the induction step is complete, (3) and hence also an=bn are proved.