login
A032929
Numbers whose set of base-8 digits is {1,2}.
1
1, 2, 9, 10, 17, 18, 73, 74, 81, 82, 137, 138, 145, 146, 585, 586, 593, 594, 649, 650, 657, 658, 1097, 1098, 1105, 1106, 1161, 1162, 1169, 1170, 4681, 4682, 4689, 4690, 4745, 4746, 4753, 4754, 5193, 5194, 5201, 5202, 5257, 5258
OFFSET
1,2
LINKS
MATHEMATICA
Flatten[Table[FromDigits[#, 8]&/@Tuples[{1, 2}, n], {n, 5}]] (* Vincenzo Librandi, Jun 03 2012 *)
PROG
(Magma) [n: n in [1..5500] | Set(IntegerToSequence(n, 8)) subset {1, 2}]; // Vincenzo Librandi, Jun 03 2012
CROSSREFS
Sequence in context: A369205 A306998 A047468 * A226832 A320919 A046975
KEYWORD
nonn,base
STATUS
approved