A284632 Numbers n with digits 2 and 6 only.
2, 6, 22, 26, 62, 66, 222, 226, 262, 266, 622, 626, 662, 666, 2222, 2226, 2262, 2266, 2622, 2626, 2662, 2666, 6222, 6226, 6262, 6266, 6622, 6626, 6662, 6666, 22222, 22226, 22262, 22266, 22622, 22626, 22662, 22666, 26222, 26226, 26262, 26266, 26622, 26626
Offset: 1
Crossrefs
Programs
-
Magma
[n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {2, 6}]
-
Mathematica
Table[Map[FromDigits, Tuples[{2, 6}, {k}]], {k, 5}] // Flatten (* Michael De Vlieger, Mar 30 2017 *)
Formula
a(n) = 2 * A032917(n).
Comments