OFFSET
1,1
COMMENTS
All terms except the first are composite.
LINKS
Michael S. Branicky, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
Join @@ ((FromDigits /@ Tuples[{5, 8}, #]) & /@ Range@ 5) (* Giovanni Resta, Mar 28 2017 *)
PROG
(Magma) [n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {5, 8}]
(Python)
def a(n): return int(bin(n+1)[3:].replace('0', '5').replace('1', '8'))
print([a(n) for n in range(1, 45)]) # Michael S. Branicky, May 08 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Jaroslav Krizek, Mar 28 2017
STATUS
approved