OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
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
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved