OFFSET
1,3
PROG
(Python)
from sympy.ntheory.factor_ import core
def A361671(n): return core(n*(n*(n + 3) + 2)//6) # Chai Wah Wu, Mar 20 2023
(PARI) a(n) = core(n*(n+1)*(n+2)/6); \\ Michel Marcus, Mar 22 2023
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Mar 20 2023
STATUS
approved