OFFSET
1,1
COMMENTS
Conjecture: no integer occurs more than three times in this sequence. Confirmed for the first 2399 terms of A007522 (primes < 100000). There are integers which do occur thrice, e.g. 221, 1159.
FORMULA
a(n) = first (least) solution mod p of x^4 = 2, where p is the n-th prime such that x^4 = 2 has only two solutions mod p, i.e. p is the n-th term of A007522.
EXAMPLE
a(8) = 4, since 127 is the eighth term of A007522 and 4 is the first solution mod 127 of x^4 = 2.
PROG
(PARI): a065907(m) = local(s); forprime(p = 2, m, s = []; for(x = 0, p-1, if(x^4%p == 2%p, s = concat(s, [x]))); if(matsize(s)[2] == 2, print1(s[1], ", "))) a065907(1600)
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Nov 29 2001
STATUS
approved