OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= n -> convert(convert(n, base, 4), `+`)=convert(convert(n, base, 5), `+`):
select(filter, [$1..1000]); # Robert Israel, Mar 11 2018
MATHEMATICA
Select[Range[400], Total[IntegerDigits[#, 4]]==Total[IntegerDigits[#, 5]]&] (* Harvey P. Dale, Sep 15 2018 *)
PROG
(PARI) isok(k) = sumdigits(k, 4) == sumdigits(k, 5); \\ Michel Marcus, Jun 02 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved