OFFSET
1,2
COMMENTS
Also, exponent of 2 in -1+prime(n)^s if s is an exponent of the form 4k+2 (previous definition). - Michel Marcus, Dec 20 2013
Primes that give records for this sequence can be found in A233930. - Michel Marcus, Dec 20 2013
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
a(1)=0 since -1+2^s is always odd...
MATHEMATICA
IntegerExponent[Prime[Range[100]]^2 - 1, 2] (* Amiram Eldar, Jun 06 2024 *)
PROG
(PARI) a(n) = valuation(prime(n)^2-1, 2); \\ Michel Marcus, Dec 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Jan 20 2004
EXTENSIONS
Definition modified by Michel Marcus, Dec 20 2013
STATUS
approved