A262868 Number of squarefree numbers appearing among the larger parts of the partitions of n into two parts.
0, 1, 1, 2, 1, 2, 2, 3, 3, 3, 3, 4, 3, 4, 4, 5, 5, 6, 6, 7, 6, 7, 7, 8, 8, 8, 8, 8, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 15, 14, 14, 14, 15, 15, 15, 15, 16, 15, 16, 16, 17, 17, 18, 18, 19, 18, 19, 19, 19, 19, 20, 20, 21, 20, 21, 21, 22, 22
Offset: 1
Examples
a(4)=2; there are two partitions of 4 into two parts: (3,1) and (2,2). Both of the larger parts are squarefree, thus a(4)=2. a(5)=1; there are two partitions of 5 into two parts: (4,1) and (3,2). Among the larger parts, only 3 is squarefree, thus a(5)=1.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 150 terms from G. C. Greubel)
- Index entries for sequences related to partitions
Crossrefs
Programs
-
Maple
with(numtheory): A262868:=n->add(mobius(n-i)^2, i=1..floor(n/2)): seq(A262868(n), n=1..100);
-
Mathematica
Table[Sum[MoebiusMu[n - i]^2, {i, Floor[n/2]}], {n, 100}] Table[Count[IntegerPartitions[n,{2}][[All,1]],?SquareFreeQ],{n,80}] (* _Harvey P. Dale, Jan 03 2022 *)
-
PARI
a(n) = sum(i=1, n\2, moebius(n-i)^2); \\ Michel Marcus, Oct 04 2015
-
PARI
f(n)=my(s); forfactored(k=1,sqrtint(n),s+=n\k[1]^2*moebius(k)); s a(n)=n--; f(n) - f(n\2) \\ Charles R Greathouse IV, Nov 04 2017
Formula
a(n) = Sum_{i=1..floor(n/2)} mu(n-i)^2, where mu is the Möbius function A008683.
a(n) ~ 3*n/Pi^2. - Charles R Greathouse IV, Nov 04 2017
Comments