OFFSET
1,1
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
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Apr 24 2021
STATUS
approved