OFFSET
1,10
COMMENTS
Number of distinct rectangles with nonsquarefree length and integer width such that L + W = n, W < L. For example, a(8) = 0 since none of the rectangles 1 X 7, 2 X 6 and 3 X 5 (4 X 4 is not considered since we have W < L) have nonsquarefree length, i.e., 7,6,5 are all squarefree. a(10) = 2 since there are two rectangles with nonsquarefree length, namely 1 X 9 and 2 X 8.
FORMULA
a(n) = Sum_{i=1..floor((n-1)/2)} (1 - mu(n-i)^2), where mu is the Möbius function (A008683).
EXAMPLE
a(14) = 3; the partitions of 14 into two parts are (13,1), (12,2), (11,3), (10,4), (9,5), (8,6), (7,7). Three of the larger parts of these partitions are nonsquarefree: 12, 9 and 8, so a(14) = 3.
MATHEMATICA
Table[Sum[1 - MoebiusMu[n - k]^2, {k, Floor[(n - 1)/2]}], {n, 80}]
Table[Count[IntegerPartitions[n, {2}], _?(#[[1]]!=#[[2]]&&!SquareFreeQ[ #[[1]]]&)], {n, 80}] (* Harvey P. Dale, Feb 02 2021 *)
PROG
(PARI) a(n) = sum(i=1, floor((n-1)/2), 1 - moebius(n-i)^2) \\ Iain Fox, Dec 08 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Nov 19 2017
STATUS
approved