login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A182425
a(n) the largest integer K such that (prime(n+1)-1)^(2^k)+1 for 0<=k<=K is prime.
0
4, 3, 2, 1, 0, 2, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 2, 0, 0, 0, 0, 0
OFFSET
1,1
COMMENTS
This sequence is a generalized reference to Fermat primes.
MATHEMATICA
Table[k = 0; While[PrimeQ[(Prime[n+1] - 1)^(2^k) + 1], k++]; k - 1, {n, 100}] (* T. D. Noe, Apr 28 2012 *)
CROSSREFS
Cf. A182199.
Sequence in context: A023446 A258447 A066440 * A071692 A378371 A307335
KEYWORD
nonn
AUTHOR
Thomas Ordowski, Apr 28 2012
STATUS
approved