A204093 Numbers whose set of base-10 digits is {0,6}.
0, 6, 60, 66, 600, 606, 660, 666, 6000, 6006, 6060, 6066, 6600, 6606, 6660, 6666, 60000, 60006, 60060, 60066, 60600, 60606, 60660, 60666, 66000, 66006, 66060, 66066, 66600, 66606, 66660, 66666, 600000, 600006, 600060, 600066, 600600, 600606, 600660, 600666
Offset: 0
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
Programs
-
Haskell
a204093 n = a204093_list !! n a204093_list = map (* 6) a007088_list
-
Mathematica
Map[FromDigits,Tuples[{0,6},6]] (* Paolo Xausa, Oct 30 2023 *)
-
Python
def a(n): return int(bin(n)[2:].replace('1', '6')) print([a(n) for n in range(40)]) # Michael S. Branicky, Jun 06 2021
Formula
a(n) = 6 * A007088(n).