OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
FORMULA
a(n) = (1/2)*Sum_{j=0..n} T(j, n-j), for array T in A049695.
MATHEMATICA
PROG
(Magma)
A049703:= func< n | n eq 0 select 0 else (1 +(&+[(n-j+1)*EulerPhi(j): j in [1..n]]))/2 >;
[A049703(n): n in [0..60]]; // G. C. Greubel, Dec 08 2022
(SageMath)
@CachedFunction
def A049703(n): return 0 if (n==0) else (1 + sum((n-j+1)*euler_phi(j) for j in range(1, n+1)))/2
[A049703(n) for n in range(61)] # G. C. Greubel, Dec 08 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by N. J. A. Sloane, Apr 04 2007.
STATUS
approved