OFFSET
1,1
COMMENTS
This is a subsequence of A023201: primes p such that p + 6 is also prime (sexy primes).
The largest tuple of primes of the form (p, p + m, p^2 + m, p^3 + m,..., p^k + m), where m is a digit from 1 to 9, is the 6-tuple (p, p + 6, p^2 + 6, p^3 + 6, p^4 + 6, p^5 + 6). Indeed, if m is an odd digit, then p must be 2 and the longest tuple is (2, 2+3, 2^2+3, 2^3+3, 2^4+3).
For p > 2 we consider the cases:
If m = 2, it is satisfied that p^2 + 2 == 0 (mod 3) for all p!= 3. In fact, (p, p + 2, p^2 + 2) are prime only if p = 3.
If m = 4, then p^4 + 4 == 0 (mod 5), for all p!= 5. Then the longest tuple is (p, p + 4, p^2 + 4, p^3 + 4), which are the p primes of A243734
If m = 6, then p^6 + 6 == 0 (mod 7), for all p!= 7. Thus, the largest tuple is (p, p + 6, p^2 + 6, p^3 + 6, p^4 + 6, p^5 + 6), where a(n) gives these primes.
If m = 8, then p^2 + 8 == 0 (mod 3) for all p!=3. In fact, (p, p + 8, p^2 + 8) are prime only if p = 3.
MATHEMATICA
Select[Prime[Range[32327000]], AllTrue[#^Range[0, 5]+6, PrimeQ]&] (* The program generates the first 10 terms of the sequence. *) (* Harvey P. Dale, Jun 13 2025 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Gonzalo MartÃnez, May 21 2025
STATUS
approved
