|
|
A039308
|
|
Numbers whose base-7 representation has the same nonzero number of 0's and 1's.
|
|
2
|
|
|
7, 51, 52, 53, 54, 55, 63, 70, 77, 84, 91, 99, 105, 148, 154, 197, 203, 246, 252, 295, 301, 344, 350, 359, 360, 361, 362, 363, 366, 367, 368, 369, 370, 373, 374, 375, 376, 377, 380, 381, 382, 383, 384, 387, 388, 389, 390, 391, 392, 443, 444, 445, 446, 447
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
MAPLE
|
filter:= proc(n) local L, t;
L:= convert(n, base, 7);
t:= numboccur(0, L);
t=numboccur(1, L) and t>0
end proc:
|
|
MATHEMATICA
|
Select[Range[500], DigitCount[#, 7, 0]==DigitCount[#, 7, 1]>0&] (* Harvey P. Dale, Jun 21 2019 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|