OFFSET
1,12
LINKS
EXAMPLE
a(20) = 40; there are two partitions of n into two squarefree semiprimes: (14,6) and (10,10). The sum of the parts in these partitions is 40.
MAPLE
MATHEMATICA
Table[n Sum[Floor[PrimeOmega[i] MoebiusMu[i]^2/2] Floor[2 MoebiusMu[i]^2 / PrimeOmega[i]] Floor[PrimeOmega[n - i] MoebiusMu[i]^2 / 2] Floor[2 MoebiusMu[n - i]^2 / PrimeOmega[n - i]], {i, 2, Floor[n/2]}], {n, 1, 70}] (* Indranil Ghosh, Mar 09 2017, translated from Maple code * )
spp[n_]:=Total[Flatten[Select[IntegerPartitions[n, {2}], AllTrue[#, SquareFreeQ] && PrimeOmega[ #]=={2, 2}&]]]; Array[spp, 70] (* Harvey P. Dale, Jun 12 2022 *)
PROG
(PARI) for(n=1, 70, print1(n * sum(i=2, floor(n/2), floor(bigomega(i) * moebius(i)^2 / 2) * floor(2*moebius(i)^2 / bigomega(i)) * floor(bigomega(n - i)* moebius(i)^2 / 2) * floor(2*moebius(n - i)^2 / bigomega(n - i))), ", ")) \\ Indranil Ghosh, Mar 09 2017, translated from Maple code
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Jan 08 2017
STATUS
approved