Number of times a multiple of four is encountered when iterating from 2^(n+1)-2 to (2^n)-2 with the map x -> x - (number of runs in binary representation of x).

A255125

Number of times a multiple of four is encountered when iterating from 2^(n+1)-2 to (2^n)-2 with the map x -> x - (number of runs in binary representation of x).

Terms

    a(0) =1a(1) =0a(2) =1a(3) =1a(4) =1a(5) =3a(6) =6a(7) =13a(8) =26a(9) =47a(10) =81a(11) =140a(12) =253a(13) =482a(14) =949a(15) =1875a(16) =3666a(17) =7088a(18) =13614a(19) =26100a(20) =50082a(21) =96246a(22) =185131a(23) =356123a(24) =684758a(25) =1316197a(26) =2530257a(27) =4868019a(28) =9378335a(29) =18096921

External references