A145825 a(n) is in A145818 such that (4n-1-a(n))/2 is in A145818 as well.
1, 5, 1, 5, 17, 21, 17, 21, 1, 5, 1, 5, 17, 21, 17, 21, 65, 69, 65, 69, 81, 85, 81, 85, 65, 69, 65, 69
Offset: 1
This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
isa(n) = {my(d=Vecrev(digits(n, 3)), k=3); while (k <= #d, if (d[k], return (0)); k += 2;); d[1] == 1;} \\ A146085 isok(n) = !((n+2) % 3) && isa((n+2)/3); \\ Michel Marcus, Dec 09 2018
Comments