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

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
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:
select(filter, [$1..447]); # Robert Israel, Jul 18 2018
MATHEMATICA
Select[Range[500], DigitCount[#, 7, 0]==DigitCount[#, 7, 1]>0&] (* Harvey P. Dale, Jun 21 2019 *)
CROSSREFS
Cf. A007093.
Sequence in context: A320989 A015495 A056581 * A029525 A037500 A037677
KEYWORD
nonn,base,easy
STATUS
approved