login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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