OFFSET
1,4
COMMENTS
Number of distinct rectangles with integer length and squarefree width such that L + W = n, W <= L. For example, a(14) = 6; the rectangles are 13 X 1, 12 X 2, 11 X 3, 9 X 5, 8 X 6, 7 X 7. - Wesley Ivan Hurt, Nov 04 2017
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = Sum_{i=1..floor(n/2)} mu(i)^2, where mu is the Möebius function (A008683).
a(n) = A013928(floor(n/2)+1). - Georg Fischer, Nov 29 2022
EXAMPLE
a(5)=2; there are two partitions of 5 into two parts: (4,1) and (3,2). Both of the smaller parts are squarefree, thus a(5)=2.
a(6)=3; there are three partitions of 6 into two parts: (5,1), (4,2) and (3,3). Among the three smaller parts, all are squarefree, thus a(6)=3.
MATHEMATICA
Table[Sum[MoebiusMu[i]^2, {i, Floor[n/2]}], {n, 100}]
Table[Count[IntegerPartitions[n, {2}][[All, 2]], _?SquareFreeQ], {n, 80}] (* Harvey P. Dale, Oct 17 2021 *)
PROG
(PARI) a(n) = sum(i=1, n\2, moebius(i)^2); \\ Michel Marcus, Oct 04 2015
(PARI) a(n)=my(s); n\=2; forsquarefree(k=1, sqrtint(n), s += n\k[1]^2*moebius(k)); s \\ Charles R Greathouse IV, Jan 08 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 03 2015
STATUS
approved