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”).

A039089
Numbers whose base-9 representation has the same number of 1's and 7's.
1
0, 2, 3, 4, 5, 6, 8, 16, 18, 20, 21, 22, 23, 24, 26, 27, 29, 30, 31, 32, 33, 35, 36, 38, 39, 40, 41, 42, 44, 45, 47, 48, 49, 50, 51, 53, 54, 56, 57, 58, 59, 60, 62, 64, 72, 74, 75, 76, 77, 78, 80, 88, 106, 115, 124, 133, 142, 144, 146, 147, 148, 149, 150, 152, 160, 162
OFFSET
1,2
LINKS
MATHEMATICA
Select[Range[0, 500], DigitCount[#, 9, 1] == DigitCount[#, 9, 7] &] (* G. C. Greubel, Nov 01 2017 *)
PROG
(PARI) isok(n) = my(d=digits(n, 9)); #select(x->(x==1), d) == #select(x->(x==7), d); \\ Michel Marcus, Nov 01 2017
CROSSREFS
Sequence in context: A102516 A156981 A271949 * A044956 A297139 A044818
KEYWORD
nonn,base,easy
STATUS
approved