OFFSET
1,1
COMMENTS
This sequence is also the lesser of two twin primes (p1,p2) given by: (p1+1)^2 = 2(p3+1) where (p3,p4) is also a twin prime pair with p4 = p3 + 2. There is at least one other value of h such that the more general equation (p1+1)^h = h*(p3+1) is true for two pairs of twin primes beyond the h=2 case: (p1,p2) = (29,31) satisfies the more general equation with h=8, corresponding to (p3,p4) = (82012499999, 82012500001). - Austin Hinkel, Dec 29 2022
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
EXAMPLE
5*7 = 17+19-1, so 5 is a term.
11*13 = 71+73-1, so 11 is a term.
PROG
(PARI) list(lim)=my(v=List(), p=3, r); forprime(q=5, lim+2, if(q-p==2 && isprime(r=p*q\2) && isprime(r+2), listput(v, p)); p=q); Vec(v) \\ Charles R Greathouse IV, Sep 29 2015
(PARI) is(n)=isprime(n) && isprime(n+2) && isprime(n*(n+2)\2) && isprime(n*(n+2)\2+2) \\ Charles R Greathouse IV, Sep 29 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved