login
A032926
Numbers whose set of base-5 digits is {1,2}.
1
1, 2, 6, 7, 11, 12, 31, 32, 36, 37, 56, 57, 61, 62, 156, 157, 161, 162, 181, 182, 186, 187, 281, 282, 286, 287, 306, 307, 311, 312, 781, 782, 786, 787, 806, 807, 811, 812, 906, 907, 911, 912, 931, 932, 936, 937, 1406, 1407, 1411, 1412
OFFSET
1,2
LINKS
MATHEMATICA
Flatten[Table[FromDigits[#, 5]&/@Tuples[{1, 2}, n], {n, 5}]] (* Vincenzo Librandi, Jun 03 2012 *)
PROG
(Magma) [n: n in [1..1500] | Set(IntegerToSequence(n, 5)) subset {1, 2}]; // Vincenzo Librandi, Jun 03 2012
CROSSREFS
Sequence in context: A242330 A376131 A039568 * A214991 A286995 A088227
KEYWORD
nonn,base
STATUS
approved