OFFSET
1,2
COMMENTS
Let b(q) be the number of pairs of consecutive nonzero squares in the finite field F_q for odd prime powers q, then b(q) = b(q') for q < q' if and only if q = 4*k-1 and q' = 4*k+1 for k being a term of this sequence, in which case we have b(q) = b(q') = k-1.
LINKS
Jianing Song, Table of n, a(n) for n = 1..10000
EXAMPLE
6 is a term since 4*6-1 = 23 is a prime, and 4*6+1 = 25 is a prime power.
PROG
(PARI) isA365411(n) = isprimepower(4*n-1) && isprimepower(4*n+1)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Jianing Song, Oct 22 2023
STATUS
approved