A091282 Exponent of 2 in prime(n)^2 - 1.
0, 3, 3, 4, 3, 3, 5, 3, 4, 3, 6, 3, 4, 3, 5, 3, 3, 3, 3, 4, 4, 5, 3, 4, 6, 3, 4, 3, 3, 5, 8, 3, 4, 3, 3, 4, 3, 3, 4, 3, 3, 3, 7, 7, 3, 4, 3, 6, 3, 3, 4, 5, 5, 3, 9, 4, 3, 5, 3, 4, 3, 3, 3, 4, 4, 3, 3, 5, 3, 3, 6, 4, 5, 3, 3, 8, 3, 3, 5, 4, 3, 3, 5, 5, 4, 3, 7, 4, 3, 5, 3, 6, 4, 3, 3, 4, 3, 4, 3, 3, 3, 3, 3, 4, 3
Offset: 1
Keywords
Examples
a(1)=0 since -1+2^s is always odd...
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
IntegerExponent[Prime[Range[100]]^2 - 1, 2] (* Amiram Eldar, Jun 06 2024 *)
-
PARI
a(n) = valuation(prime(n)^2-1, 2); \\ Michel Marcus, Dec 20 2013
Formula
Extensions
Definition modified by Michel Marcus, Dec 20 2013
Comments