OFFSET
1,1
COMMENTS
Terms not in A049437 include 2, 11, 727 and 22571. Are there others?
Are there primes p other than 7 such that p^q == q^p (mod r), or primes p other than 41 such that p^r == r^p (mod q), where p,q,r are consecutive primes?
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(3) = 29 is a term because 29, 31 and 37 are consecutive primes and 37^31 == 31^37 == 19 (mod 29).
MAPLE
q:= 2: r:= 3: R:= NULL: count:= 0:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
if q&^r - r&^q mod p = 0 then count:= count+1; R:= R, p fi
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Jun 10 2021
STATUS
approved