OFFSET
1,1
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..1000
MAPLE
with(numtheory);
f:=n-> if n=1 then 2 else 2^(n-2) + (1/(2*n-2)) * add(phi(2*d)*2^((n-1)/d), d in divisors(n-1)); fi;
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 26 2012
STATUS
approved