OFFSET
0,2
LINKS
Michael S. Branicky, Table of n, a(n) for n = 0..750 (contiguous terms not exceeding 1000 digits)
PROG
(Python)
def a(n):
if n == 0: return 1
pow10, s = 10**n, ""
for d in [8, 5, 4, 2]:
while pow10%d == 0: pow10//=d; s += str(d)
return int(s[::-1])
print([a(n) for n in range(18)]) # Michael S. Branicky, Jan 25 2021
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy, Nov 08 2003
EXTENSIONS
More terms from Robert G. Wilson v, Nov 22 2003
STATUS
approved