OFFSET
1,2
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
filter:= n -> convert(convert(n, base, 3), `+`)=convert(convert(n, base, 10), `+`):
select(filter, [$1..10000]); # Robert Israel, Mar 11 2018
MATHEMATICA
Select[Range[1200], Total[IntegerDigits[#]]==Total[IntegerDigits[#, 3]]&] (* Harvey P. Dale, May 11 2018 *)
PROG
(PARI) isok(n) = sumdigits(n, 3) == sumdigits(n, 10); \\ Michel Marcus, Mar 12 2018
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved