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”).

A303115
Total area of the family of rectangles with side lengths p and q such that n = p + q, p < q, and |q-p| is not semiprime.
1
0, 0, 2, 3, 10, 8, 28, 15, 60, 33, 100, 55, 160, 94, 244, 139, 340, 207, 466, 302, 626, 428, 802, 566, 1018, 741, 1252, 930, 1532, 1162, 1862, 1441, 2246, 1771, 2654, 2121, 3086, 2528, 3580, 2957, 4100, 3449, 4688, 4008, 5348, 4638, 6084, 5296, 6900, 6031
OFFSET
1,3
FORMULA
a(n) = Sum_{1..floor((n-1)/2)} i * (n-i) * (1 - [Omega(n-2i) = 2]), where [] is the Iverson bracket and Omega = A001222.
MATHEMATICA
Table[Sum[i*(n - i) (1 - KroneckerDelta[PrimeOmega[n - 2 i], 2]), {i, Floor[(n - 1)/2]}], {n, 80}]
CROSSREFS
Sequence in context: A278561 A369991 A193729 * A074068 A351413 A283436
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Apr 18 2018
STATUS
approved