login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A068504 Highest power of 2 dividing prime(n)+1. 2
1, 4, 2, 8, 4, 2, 2, 4, 8, 2, 32, 2, 2, 4, 16, 2, 4, 2, 4, 8, 2, 16, 4, 2, 2, 2, 8, 4, 2, 2, 128, 4, 2, 4, 2, 8, 2, 4, 8, 2, 4, 2, 64, 2, 2, 8, 4, 32, 4, 2, 2, 16, 2, 4, 2, 8, 2, 16, 2, 2, 4, 2, 4, 8, 2, 2, 4, 2, 4, 2, 2, 8, 16, 2, 4, 128, 2, 2, 2, 2, 4, 2, 16, 2, 8, 4, 2, 2, 2, 16, 4, 32, 8, 4, 4, 8, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Robert Israel, Table of n, a(n) for n = 1..10000

FORMULA

a(n) = A006519(A008864(n)). - Michel Marcus, Nov 24 2013

a(n) = 2^A023512(n). - Michel Marcus, Nov 24 2013

MAPLE

f:= n -> 2^padic:-ordp(ithprime(n)+1, 2):

map(f, [$1..100]); # Robert Israel, Jan 13 2017

PROG

(PARI) a(n) = 2^valuation(prime(n)+1, 2); \\ Michel Marcus, Nov 24 2013

CROSSREFS

Sequence in context: A026142 A095399 A250718 * A080965 A083703 A066104

Adjacent sequences:  A068501 A068502 A068503 * A068505 A068506 A068507

KEYWORD

easy,nonn

AUTHOR

Benoit Cloitre, Mar 11 2002

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 18 20:02 EDT 2019. Contains 326109 sequences. (Running on oeis4.)