OFFSET
1,1
COMMENTS
The common difference d of the arithmetic progression must necessarily be even. All terms are necessarily odd.
EXAMPLE
a(1) = 9: The progression is (3, 5, 7) with d = 2. The next term is 7 + 2 = 9, which is composite.
a(2) = 15: The progression is (3, 7, 11) with d = 4. The next term is 11 + 4 = 15, which is composite.
a(3) = 25: The progression is (7, 13, 19) with d = 6. The next term is 19 + 6 = 25, which is composite (5 * 5).
a(6) = 35: The progression is (5, 11, 17, 23, 29) with d = 6. The next term is 29 + 6 = 35, which is composite (5 * 7). Note that 5 * (6 + 1) = 35.
PROG
(PARI) isok(k) = if(k%2 && !isprime(k), forprime(p=2*k\3+1, k-1, if(isprime(2*p-k)&&isprime(3*p-2*k), return(k-p)))); 0 \\ Andrew Howroyd, Feb 07 2026
CROSSREFS
KEYWORD
nonn
AUTHOR
César Martínez, Feb 06 2026
STATUS
approved
