login
A331760
a(n) = A115004(2n)/4.
2
2, 20, 83, 237, 534, 1054, 1892, 3114, 4880, 7327, 10530, 14730, 20066, 26689, 34882, 44902, 56850, 70946, 87644, 106986, 129470, 155457, 184920, 218596, 256675, 299292, 347261, 400590, 459615, 525217, 597887, 677507, 764657, 860340, 964291, 1077693, 1201321
OFFSET
1,1
LINKS
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
Sequence in context: A259110 A135188 A161007 * A098077 A279264 A063663
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 04 2020
STATUS
approved