login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159611 Indices of the Fermat primes in the sequence of primes. 7
2, 3, 7, 55, 6543 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

COMMENTS

A098006(a(n)) = 0. - Reinhard Zumkeller, Mar 26 2013

LINKS

Table of n, a(n) for n=1..5.

Index entries for sequences that are related to primes dividing Fermat numbers

FORMULA

a(n) = A000720(A019434(n)). - Michel Marcus, Apr 29 2021

EXAMPLE

3, the 1st Fermat prime is the 2nd prime, so a(1) = 2.

17, the 3rd Fermat prime is the 7th prime, so a(3) = 7.

MATHEMATICA

PrimePi/@{3, 5, 17, 257, 65537} (* Harvey P. Dale, Aug 07 2022 *)

PROG

(Haskell)

import Data.List (elemIndices)

a159611 n = a159611_list !! (n-1)

a159611_list = map (+ 2) $ elemIndices 0 a098006_list

-- Reinhard Zumkeller, Mar 26 2013

(PARI) for(i=0, 10, isprime(f=2^2^i+1) & print1(primepi(f), ", ")) \\ Michel Marcus, Apr 28 2016

(PARI) a152155(n) = centerlift(Mod(3, 2^(2^n)+1)^(2^(2^n-1)))

print1(2, ", "); for(x=0, oo, if(a152155(x)==-1, print1(primepi(2^(2^x)+1), ", "))) \\ Felix Fröhlich, Apr 30 2021

CROSSREFS

Cf. A000040 (primes), A000720, A019434 (Fermat primes).

Cf. A098006.

Sequence in context: A253574 A343557 A238399 * A156585 A354744 A299923

Adjacent sequences: A159608 A159609 A159610 * A159612 A159613 A159614

KEYWORD

nonn,more

AUTHOR

Walter Nissen, Apr 16 2009

EXTENSIONS

Name edited by Felix Fröhlich, Apr 30 2021

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 30 19:14 EST 2022. Contains 358453 sequences. (Running on oeis4.)