A344892 Loxton-van der Poorten sequence: base-4 representation contains only -1, 0, +1, converted to ordinary base-4 digits 0,1,2,3.
0, 1, 3, 10, 11, 23, 30, 31, 33, 100, 101, 103, 110, 111, 223, 230, 231, 233, 300, 301, 303, 310, 311, 323, 330, 331, 333, 1000, 1001, 1003, 1010, 1011, 1023, 1030, 1031, 1033, 1100, 1101, 1103, 1110, 1111, 2223, 2230, 2231, 2233, 2300, 2301, 2303, 2310, 2311
Offset: 0
Links
- Kevin Ryde, Table of n, a(n) for n = 0..6561
Programs
-
PARI
a(n) = my(v=digits(n,3),prev=0); forstep(i=#v,1,-1, prev=(v[i]+=(v[i]>(prev<2)))); fromdigits(v);
Comments