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

A039563
Numbers whose base-5 representation has the same number of 0's, 1's and 2's.
2
3, 4, 18, 19, 23, 24, 27, 35, 51, 55, 93, 94, 98, 99, 118, 119, 123, 124, 138, 139, 142, 147, 178, 179, 190, 195, 202, 210, 227, 235, 258, 259, 266, 271, 278, 279, 290, 295, 326, 330, 351, 355, 382, 386, 402, 410, 426, 430, 468, 469, 473, 474, 493, 494, 498
OFFSET
1,1
LINKS
MAPLE
filter:= proc(n) local L, m;
L:= sort(select(`<=`, convert(n, base, 5), 2));
m:= nops(L)/3;
m::integer and L = [0$m, 1$m, 2$m];
end proc:
select(filter, [$1..1000]); # Robert Israel, Jan 17 2020
MATHEMATICA
Select[Range[500], DigitCount[#, 5, 0]==DigitCount[#, 5, 1] == DigitCount[ #, 5, 2]&] (* Harvey P. Dale, Dec 24 2021 *)
PROG
(Magma) f:=func<n, b, c|Multiplicity(Intseq(n, b), c)>; [k:k in [1..500]|f(k, 5, 0) eq f(k, 5, 1) and f(k, 5, 0) eq f(k, 5, 2)]; // Marius A. Burtea, Jan 17 2020
CROSSREFS
Cf. A007091 (numbers in base 5).
Sequence in context: A009208 A296283 A051473 * A032829 A039585 A025118
KEYWORD
nonn,base,easy
STATUS
approved