A284921 Numbers with digits 2 and 7 only.
2, 7, 22, 27, 72, 77, 222, 227, 272, 277, 722, 727, 772, 777, 2222, 2227, 2272, 2277, 2722, 2727, 2772, 2777, 7222, 7227, 7272, 7277, 7722, 7727, 7772, 7777, 22222, 22227, 22272, 22277, 22722, 22727, 22772, 22777, 27222, 27227, 27272, 27277, 27722, 27727
Offset: 1
Crossrefs
Programs
-
Magma
[n: n in [1..100000] | Set(IntegerToSequence(n, 10)) subset {2, 7}]
-
Mathematica
Flatten@ Array[FromDigits /@ Tuples[{2, 7}, #] &, 5] (* Michael De Vlieger, Apr 06 2017 *)
Comments