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

A339480
Numbers of the form (k^2 - 2) / 2 where k - 1 and k + 1 are both odd composite numbers.
0
337, 577, 1249, 1567, 2047, 2887, 3697, 4231, 4417, 6727, 6961, 7199, 7441, 7687, 8977, 10081, 10367, 10657, 11857, 12799, 14449, 15487, 16927, 17297, 17671, 20401, 20807, 21217, 21631, 22897, 23327, 23761, 24199, 27847, 29767, 30257, 30751, 32257, 33799, 35377, 37537, 40897
OFFSET
1,1
FORMULA
a(n) = (A129820(2*n - 1) * A129820(2*n) - 1) / 2.
EXAMPLE
For k = 26, k - 1 = 25 and k + 1 = 27 are both odd composite numbers. So (26^2 - 2) / 2 = 337 is a term of the sequence.
PROG
(PARI) k = 1; forcomposite(c = 1, 287, if(c%2 <> 0, if(c-k == 2, print1((c * (c - 2) - 1) / 2", ")); k = c))
CROSSREFS
Sequence in context: A020358 A260540 A051962 * A214492 A157999 A152853
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Apr 24 2021
STATUS
approved