|
|
A039090
|
|
Numbers whose base-9 representation has the same number of 1's and 8's.
|
|
1
|
|
|
0, 2, 3, 4, 5, 6, 7, 17, 18, 20, 21, 22, 23, 24, 25, 27, 29, 30, 31, 32, 33, 34, 36, 38, 39, 40, 41, 42, 43, 45, 47, 48, 49, 50, 51, 52, 54, 56, 57, 58, 59, 60, 61, 63, 65, 66, 67, 68, 69, 70, 73, 89, 107, 116, 125, 134, 143, 152, 153, 155, 156, 157, 158, 159, 160, 162
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Range[0, 200], DigitCount[#, 9, 1]==DigitCount[#, 9, 8]&] (* Harvey P. Dale, Aug 08 2012 *)
|
|
PROG
|
(PARI) isok(n) = my(d=digits(n, 9)); #select(x->(x==1), d) == #select(x->(x==8), d); \\ Michel Marcus, Nov 01 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|