OFFSET
0,2
LINKS
Eric Weisstein's World of Mathematics, Squarefree.
FORMULA
a(n) = Sum_{k=1..n} A013929(k)^2.
a(n) ~ c * n^3, where c = Pi^4/(3*(Pi^2-6)^2) = 2.168428... . - Amiram Eldar, Jan 19 2024
EXAMPLE
a(10) = 4^2 + 8^2 + 9^2 + 12^2 + 16^2 + 18^2 + 20^2 + 24^2 + 25^2 + 27^2 = 3215.
MATHEMATICA
Accumulate[Select[Range[0, 100], ! SquareFreeQ[#] &]^2] (* Amiram Eldar, Jan 19 2024 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Nov 18 2005
STATUS
approved