Condition for aN=1 when N is even:
If N is an even number, aN=⌈aN−1/2⌉. For aN to be 0, aN−1 must be 0.
For aN−1 to be 0, N−1 must be odd and aN−2=1. This is consistent with N being even.
So, if N is even, aN=0⟺aN−1.
Let's examine if aN−2 can be 1 for a0 in the range IN=(2N−1,2N] (which define N).
Let Mk be the set of a0 values such that ak(a0)=1.
M0={1}.
M1={2,3}.
M2={2,3,4,5}.
M3={6,7,8,9,10,11,12,13}.
M4={6,…,21}.
Mk=[xk,yk].
x0=1,y0=1.
x1=2,y1=3.
x2=2,y2=5.
x3=6,y3=13.
x4=6,y4=21.
xk,yk are derived from ak−1∈{1,2} (if k even) or ak−1∈{2,3} (if k odd).
A general observation is that xk for even k is xk=xk−2, and for odd k is xk=2yk−2+2.
Also yk for even k is yk=2yk−2+y. No, this is incorrect.
yk: yk=yk−2⋅2+(?
The key insight is that N=⌈log2a0⌉, so 2N−1<a0≤2N.
For N=2 (even), a0∈(2,4]. a2=0⟺a0=1. But 1∈/(2,4]. So a2=0.
For N=4 (even), a0∈(8,16]. a4=0⟺a2=1. a2=1 for a0∈{2,3,4,5}. None of these values are in (8,16]. So a4=0.
In general, for N=2j (even), a2j=0⟺a2j−2=. The values a0 that yield a2j−2=1 are M2j−2=[x2j−2,y.
The property yk<2k implies that if ak=1, then a0<2k.
So a2j−2=1 implies a0≤y2j−2. The range for N=2j is a0∈(22j−1,22j].
The maximum value y2j−2 is always less than 22j−1+1.
For example, y0=1<21+1. y2=5<23+1. y4=21<25+1.
It can be shown that y2j−2<22j−1+1 for all j≥1.
Therefore, no a0 in the range (22j−1,22j] (i.e. a0 having N=2j) can satisfy a2j−2=1.
Thus, for even N, aN is always 1.