We prove this in four steps. We use sn=s(n) and cn=c(n),
(A) If b(n) denotes the number of 1's in the binary representation of a non-negative integer n, we have s(n)=αb(n−1), n≥1.
Proof: We use induction. Note that s(1)=1=αb(0). Suppose s(r)=αb(r−1), for 1≤r≤2n−1. Take any r such that 2n−1+1≤r≤2n. We have
s(r)=αs(r−2n−1)=ααb(r−2n−1−1)=αb(r−2n−1−1)+1=αb(r−1),
as r−1 has exactly one more 1 in its binary representation than r−2n−1−1.
(B) If m≥1, we have s(2m+1)=s(m+1) and s(2m)=αs(m).
Proof: Since m and 2m have same number of 1's, we have
s(2m+1)=αb(2m)=αb(m)=s(m+1).
For even numbers, first we show that s(2m)=αs(2m−1). This is easy to establish by induction. Observe s(2)=α=αs(1). If 2n−1+1≤2m−1<2n≤2n, we get by induction hypothesis
s(2m)=αs(2m−2n−1)=α2s(2m−1−2n−1)=αs(2m−1).
Thus we get
s(2m)=αs(2m−1)=αs(2(m−1)+1)=αs(m−1+1)=αs(m),
where we have used s(2k+1)=s(k+1).
(C) For m≥1, we have c(2m)=(1+α)c(m) and c(2m+1)=αc(m)+c(m+1).
Proof: We have
c(2m)=(s(1)+s(3)+⋯+s(2m−1))+(s(2)+s(4)+⋯s(2m))=(s(1)+s(2)+⋯s(m))+α(s(1)+s(2)+⋯s(m))=(1+α)(s(1)+s(2)+⋯s(m))=(1+α)c(m).
Similarly,
c(2m+1)=(s(1)+s(3)+⋯+s(2m−1)+s(2m+1))+(s(2)+s(4)+⋯s(2m))=(s(1)+s(2)+⋯s(m)+s(m+1))+α(s(1)+s(2)+⋯s(m))=αc(m)+c(m+1).
(D) We complete the deduction. Let n≥1 and n=2e0+2e1+⋯+2ek, where e0>e1>⋯>ek≥0 is the binary representation of a positive integer n. We prove
c(n)=(1+α)e0+α(1+α)e1+α2(1+α)e2+⋯+αk(1+α)ek.
For n=1, we have 1=20, and C(1)=s(1)=1=(1+α)0. Suppose the statement is true for c(1),c(2),…,c(n−1), n≥2. If n=2m and m=2e0+2e1+⋯+2ek, where e0>e1>⋯>ek, we have by (C),
c(n)=(1+α)c(m)=(1+α)((1+α)e0+⋯+αk(1+α)ek)=(1+α)e0+1+⋯+αk(1+α)ek+1.
As n=2m=2e0+1+⋯+2ek+1, the desired result follows for n=2m. Suppose n=2m+1, where m=2e0+2e1+⋯+2ek, where e0>e1>⋯>ek. In this case n=2e0+1+⋯+2ek+1+20 and m+1=2e0+⋯+2ek+20. Thus
c(2m+1)=ac(m)+c(m+1)=α((1+α)e0+⋯+αk(1+α)ek)+((1+α)e0+⋯+αk(1+α)ek+αk+1)=(1+α)e0+1+⋯+αk(1+α)ek+1+αk+1(1+α)0.
Thus the relation is true for n=2m+1 as well. This completes the proof by induction on n.