OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
Flatten[Table[FromDigits[#, 9]&/@Tuples[{1, 2}, n], {n, 5}]] (* Vincenzo Librandi, Jun 04 2012 *)
PROG
(Magma) [n: n in [1..9000] | Set(IntegerToSequence(n, 9)) subset {1, 2}]; // Vincenzo Librandi, Jun 04 2012
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved