login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A111732
Sum of the squares of the first n nonsquarefree numbers (A013929).
0
0, 16, 80, 161, 305, 561, 885, 1285, 1861, 2486, 3215, 3999, 5023, 6319, 7919, 9855, 11880, 14184, 16585, 19085, 21789, 24705, 27841, 31441, 35410, 39506, 44130, 49314, 54939, 60715, 67115, 73676, 80732, 88476, 96576, 105040, 114256, 123860
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