OFFSET
1,3
COMMENTS
Inverse Möbius transform of n * mu(n)^2 * c(n), where c(n) is the characteristic function of triangular numbers (A010054). - Wesley Ivan Hurt, Jun 21 2024
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
a(n) = Sum_{d|n} d * mu(d)^2 * c(d), where c = A010054.
MATHEMATICA
Table[Sum[d*MoebiusMu[d]^2 (Floor[Sqrt[2 d + 1] + 1/2] - Floor[Sqrt[2 d] + 1/2]), {d, Divisors[n]}], {n, 100}]
PROG
(PARI) a(n) = sumdiv(n, d, if (issquarefree(d) && ispolygonal(d, 3), d)); \\ Michel Marcus, Jan 16 2024
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Wesley Ivan Hurt, Jan 15 2024
STATUS
approved