OFFSET
1,1
COMMENTS
Inspired by A350964.
In the first 100000 terms, greatest prime encountered was 204114067.
Records: 5, 31, 89, 283, 643, 2711, 4133, 4603, 8317, 23561, 25819, 45083, ...
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..10000
Robert G. Wilson v, Table of n, a(n) for n = 1..100000
EXAMPLE
a(1) = 5 since A001132(1) | 2^5 - 5^2 = 32 - 25 = 7.
PROG
(PARI) f(q) = forprime(p=5, oo, if(Mod(2, q)^p == Mod(p, q)^2, return(p)));
lista(nn) = forprime(q=7, nn, if((q+2)%8<4, print1(f(q), ", "))); \\ Jinyuan Wang, Jul 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Mar 14 2022
EXTENSIONS
Name edited by Jinyuan Wang, Jul 14 2022
STATUS
approved