OFFSET
1,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
FORMULA
EXAMPLE
The seventh prime is 17, and 16 = 2^4, so a(7) = 4.
The eighth prime is 19, and 18 = 2^1 * 3^2, and since 2 is the greater exponent, a(8) = 2.
MATHEMATICA
Join[{0}, Max[FactorInteger[#][[All, 2]]]&/@(Prime[Range[2, 120]] - 1)] (* Harvey P. Dale, Aug 29 2017 *)
PROG
(PARI) a(n) = if(n == 1, 0, vecmax(factor(prime(n) - 1)[, 2])); \\ Amiram Eldar, Sep 08 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved