A355544 Numbers k such that the arithmetic mean of the first k squarefree numbers is an integer.
1, 3, 6, 37, 75, 668, 1075, 37732, 742767, 1811865, 3140083, 8937770, 108268896, 282951249, 633932500, 1275584757, 60455590365
Offset: 1
Examples
3 is a term since the arithmetic mean of the first 3 squarefree numbers, (1+2+3)/3 = 2, is an integer.
Links
Crossrefs
Programs
-
Mathematica
s = Select[Range[10^6], SquareFreeQ]; r = Accumulate[s]/Range[Length[s]]; ind = Position[r, _?IntegerQ] // Flatten
-
PARI
upto(n) = my(s=0,k=0); forsquarefree(m=1, n, s+=m[1]; k+=1; if(s%k == 0, print1(k, ", "))); \\ Daniel Suteu, Jul 06 2022
Extensions
a(17) from Daniel Suteu, Jul 06 2022
Comments