OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Flatten[Table[FromDigits[#, 16]&/@Tuples[{3, 4}, n], {n, 5}]] (* Vincenzo Librandi, May 31 2012 *)
PROG
(Magma) [n: n in [1..265000] | Set(IntegerToSequence(n, 16)) subset {3, 4}]; // Vincenzo Librandi, May 31 2012
(Python)
def a(n): return int(bin(n+1)[3:].replace('1', '4').replace('0', '3'), 16)
print([a(n) for n in range(1, 37)]) # Michael S. Branicky, Aug 22 2021
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved