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