OFFSET
1,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 1..10000
N. J. A. Sloane, Families of Essentially Identical Sequences, Mar 24 2021 (Includes this sequence)
FORMULA
a(n) = n^2 + (Sum_{i=2..2n} (2*n+1-i)*(4*n+2-i)*phi(i))/4. - Chai Wah Wu, Aug 17 2021
PROG
(Python)
from sympy import totient
def A331760(n): return n**2 + sum(totient(i)*(2*n+1-i)*(4*n+2-i) for i in range(2, 2*n+1))//4 # Chai Wah Wu, Aug 17 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 04 2020
STATUS
approved