A065902 Smallest prime p such that n is a solution mod p of x^4 = 2, or 0 if no such prime exists.
7, 79, 127, 7, 647, 2399, 23, 937, 4999, 14639, 1481, 28559, 19207, 23, 31, 47, 73, 18617, 79999, 194479, 117127, 5711, 165887, 73, 4663, 113, 233, 707279, 47, 40153, 524287, 191, 167, 257, 439, 267737, 45329, 2313439, 182857, 2825759, 1555847
Offset: 2
Keywords
Examples
a(16) = 31, since 16 is a solution mod 31 of x^4 = 2 and 16 is not a solution mod p of x^4 = 2 for primes p < 31. Although 16^4 = 2 (mod 7), prime 7 is excluded because 7 < 16 and 16 = 2 (mod 7).
Programs
-
PARI
a065902(m) = local(n,f,a,j); for(n = 2,m,f = factor(n^4-2); a = matsize(f)[1]; j = 1; while(f[j,1]< = n&&jn,f[j,1],0),",")) a065902(45)
Formula
If n^4 - 2 has prime factors > n, then a(n) = smallest of these prime factors, else a(n) = 0.
Comments