OFFSET
1,4
LINKS
FORMULA
EXAMPLE
a(5)=5 because 5th prime is 11 and 11=5*2^1+1.
MATHEMATICA
Table[p = Prime[n]; ie = IntegerExponent[p - 1, 2]; (p - 1)/2^ie, {n, 100}] (* Zak Seidov, Mar 25 2014 *)
PROG
(PARI) lista(nn) = forprime (p=2, nn, my(m = p-1); print1(m >> valuation(m, 2), ", ")); \\ Michel Marcus, Jan 30 2016
(PARI) a(n) = {my(m = prime(n) - 1); m >> valuation(m, 2); } \\ Michel Marcus, Jan 30 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Henry Bottomley, Jul 24 2000
STATUS
approved