OFFSET
1,4
COMMENTS
Number of distinct rectangles with prime length and squarefree width such that L + W = n, W <= L. For example, a(14) = 3; the rectangles are 1 X 13, 3 X 11 and 7 X 7. - Wesley Ivan Hurt, Nov 18 2017
FORMULA
MAPLE
MATHEMATICA
Table[Sum[MoebiusMu[k]^2 * (PrimePi[n - k] - PrimePi[n - k - 1]), {k, 1, Floor[n/2]}], {n, 1, 50}] (* G. C. Greubel, Jan 05 2017 *)
Table[Count[IntegerPartitions[n, {2}], _?(PrimeQ[#[[1]]] && SquareFreeQ[ #[[2]]]&)], {n, 90}] (* Harvey P. Dale, Feb 25 2018 *)
PROG
(PARI) for(n=1, 50, print1(sum(k=1, floor(n/2), isprime(n-k)*(moebius(k))^2), ", ")) \\ G. C. Greubel, Jan 05 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jan 04 2017
STATUS
approved