login
Numbers whose set of base-10 digits is {0,6}.
15

%I #22 Oct 30 2023 13:01:13

%S 0,6,60,66,600,606,660,666,6000,6006,6060,6066,6600,6606,6660,6666,

%T 60000,60006,60060,60066,60600,60606,60660,60666,66000,66006,66060,

%U 66066,66600,66606,66660,66666,600000,600006,600060,600066,600600,600606,600660,600666

%N Numbers whose set of base-10 digits is {0,6}.

%H Reinhard Zumkeller, <a href="/A204093/b204093.txt">Table of n, a(n) for n = 0..10000</a>

%F a(n) = 6 * A007088(n).

%t Map[FromDigits,Tuples[{0,6},6]] (* _Paolo Xausa_, Oct 30 2023 *)

%o (Haskell)

%o a204093 n = a204093_list !! n

%o a204093_list = map (* 6) a007088_list

%o (Python)

%o def a(n): return int(bin(n)[2:].replace('1', '6'))

%o print([a(n) for n in range(40)]) # _Michael S. Branicky_, Jun 06 2021

%Y Cf. A007088, A078245.

%Y Cf. A169965, A169966, A169967, A169964, A204094, A204095, A097256.

%K nonn,base

%O 0,2

%A _Reinhard Zumkeller_, Jan 10 2012