login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A303336
Number of rectangles with semiprime area and dimensions p,q where n = p+q and p <= q.
1
0, 0, 0, 1, 2, 1, 2, 1, 1, 3, 1, 1, 1, 2, 2, 3, 0, 2, 1, 2, 1, 4, 1, 3, 1, 4, 1, 2, 0, 3, 1, 2, 1, 5, 1, 5, 0, 2, 2, 4, 0, 4, 1, 3, 1, 4, 1, 5, 1, 5, 0, 4, 0, 5, 1, 4, 0, 5, 1, 6, 1, 3, 2, 5, 0, 7, 0, 2, 1, 6, 0, 6, 1, 5, 2, 5, 0, 8, 0, 4, 1, 5, 1, 8, 1, 6
OFFSET
1,5
FORMULA
a(n) = Sum_{i=1..floor(n/2)} [Omega(i*(n-i)) = 2], where [] is the Iverson bracket and Omega = A001222.
MATHEMATICA
Table[Sum[KroneckerDelta[PrimeOmega[i (n - i)], 2], {i, Floor[n/2]}], {n, 100}]
PROG
(PARI) a(n) = sum(i=1, n\2, bigomega(i*(n-i)) == 2); \\ Michel Marcus, Apr 22 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 21 2018
STATUS
approved