OFFSET
1,2
COMMENTS
If a(n)=1 then prime(a(n)) is a term in A049097. - Zak Seidov, Jul 20 2016
LINKS
Zak Seidov, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n=5, the fifth prime is 11, and the prime factorization of 11 + 1 = 12 is 2^2*3. This has exponents 2 and 1, so a(5) is the largest of these exponents, 2. - Michael B. Porter, Jul 20 2016
MATHEMATICA
Table[Max[#[[2]] & /@ FactorInteger[Prime[k] + 1]], {k, 10000}] (* Zak Seidov, Jul 19 2016 *)
PROG
(PARI) a(n) = vecmax(factor(prime(n)+1)[, 2]) \\ Michel Marcus, Jul 20 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved