|
|
A039061
|
|
Numbers whose base-8 representation has the same number of 1's and 7's.
|
|
1
|
|
|
0, 2, 3, 4, 5, 6, 15, 16, 18, 19, 20, 21, 22, 24, 26, 27, 28, 29, 30, 32, 34, 35, 36, 37, 38, 40, 42, 43, 44, 45, 46, 48, 50, 51, 52, 53, 54, 57, 71, 87, 95, 103, 111, 119, 120, 122, 123, 124, 125, 126, 128, 130, 131, 132, 133, 134, 143, 144, 146, 147, 148, 149, 150
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
MATHEMATICA
|
Select[Range[0, 150], DigitCount[#, 8, 1]==DigitCount[#, 8, 7]&] (* Harvey P. Dale, Feb 08 2011 *)
|
|
PROG
|
(PARI) isok(n) = my(d=digits(n, 8)); #select(x->(x==1), d) == #select(x->(x==7), d); \\ Michel Marcus, Nov 01 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|