OFFSET
2,2
COMMENTS
The largest power of 3 in M(n) = A230640(n).
LINKS
Max Alekseyev, Table n, expression for a(n) for n=2..100
Max A. Alekseyev and N. J. A. Sloane, On Kaprekar's Junction Numbers, arXiv:2112.14365, 2021; Journal of Combinatorics and Number Theory 12:3 (2022), 115-155.
MAPLE
f:=proc(n) option remember; local B, M;
if n<=1 then RETURN([0, 0]);
else
B:=(f(ceil(n/2))[2] + f(floor(n/2))[2] + 2)/2;
M:=3^B+f(floor(n/2))[2]+1; RETURN([B, M]); fi;
end proc;
[seq(f(n)[1], n=1..9)];
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Oct 31 2013
EXTENSIONS
Terms a(10) onward from Max Alekseyev, Nov 02 2013
STATUS
approved