OFFSET
1,1
EXAMPLE
The first pair (5, 3) is in the sequence because |2*5 - 3*3| = 1;
The second pair (7, 5) is in the sequence because |2*7 - 3*5|= 1.
MAPLE
nn:=100:for i from 3 to nn do:
p:=ithprime(i):r:=irem(p, 3):q:=(2*p + (-1)^(r+1))/3:
if isprime(q)
then
printf(`%d, `, p): printf(`%d, `, q):
else
fi:
od:
PROG
(PARI) lista(n)=forprime(i=3, n, j=(1.5*i)\1; j+=((j+1)%2); if(isprime(j), print1(j", "i", "))) \\ David A. Corneth, Aug 09 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Aug 09 2016
STATUS
approved