OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Digit Sum
Eric Weisstein's World of Mathematics, Ternary
MAPLE
Res:= NULL: N:= 10^6:
for a from 0 to ilog2(N) do
for b from 0 do
v:= 2^a*3^b;
if v > N then break fi;
Res:= Res, v;
od od:
TS:= sort([Res]):
map(t -> convert(convert(t, base, 3), `+`), TS); # Robert Israel, Oct 08 2018
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, Jun 14 2007
STATUS
approved