OFFSET
1,1
COMMENTS
It is somewhat nontrivial that the definition uniquely defines a(n). - M. F. Hasler, Feb 02 2026
LINKS
Ray Chandler, Table of n, a(n) for n = 1..1000
FORMULA
a(n+1) = a(n) + 10^n * (8 + [a(n)/2^n mod 2]), i.e., a(n) ends with a(n-1); if (n-1)-th term is divisible by 2^n then n-th term begins with an 8, if not then n-th term begins with a 9.
PROG
(PARI) first(n, t=0)=vector(n, k, t+=(8+(t%2^k>0))*10^(k-1)) \\ M. F. Hasler, Feb 02 2026
CROSSREFS
KEYWORD
base,nonn,easy
AUTHOR
Henry Bottomley, Mar 06 2000
STATUS
approved
