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”).

Sum of nonsquarefree numbers between prime(n) and prime(n+1).
0

%I #5 Dec 09 2024 11:02:37

%S 0,4,0,17,12,16,18,20,104,0,68,40,0,89,199,110,60,127,68,72,151,161,

%T 172,278,297,0,104,108,112,849,128,403,0,579,150,461,322,164,680,351,

%U 180,561,192,196,198,819,648,449,228,232,470,240,1472,508,521,532,270

%N Sum of nonsquarefree numbers between prime(n) and prime(n+1).

%e The nonsquarefree numbers between prime(24) = 89 and prime(25) = 97 are {90, 92, 96}, so a(24) = 278.

%t Table[Total[Select[Range[Prime[n],Prime[n+1]],!SquareFreeQ[#]&]],{n,100}]

%Y For prime instead of nonsquarefree we have A001043.

%Y For composite instead of nonsquarefree we have A054265.

%Y Zeros are A068361.

%Y A000040 lists the primes, differences A001223, seconds A036263.

%Y A070321 gives the greatest squarefree number up to n.

%Y A071403 counts squarefree numbers up to prime(n), restriction of A013928.

%Y A120327 gives the least nonsquarefree number >= n.

%Y A378086 counts nonsquarefree numbers up to prime(n), restriction of A057627.

%Y For squarefree numbers (A005117, differences A076259) between primes:

%Y - length is A061398, zeros A068360

%Y - min is A112926, differences A378037

%Y - max is A112925, differences A378038

%Y - sum is A373197

%Y For nonsquarefree numbers (A013929, differences A078147) between primes:

%Y - length is A061399

%Y - min is A377783 (differences A377784), union A378040

%Y - max is A378032 (differences A378034), restriction of A378033 (differences A378036)

%Y - sum is A378618 (this)

%Y Cf. A007674, A045882, A053806, A067535, A072284, A073247, A179211, A224363, A373198, A377049, A377431.

%K nonn,new

%O 1,2

%A _Gus Wiseman_, Dec 09 2024