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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A221860 Indices k such that prime(k) - k is a power of 2. 1
1, 2, 3, 15, 39, 2119, 4189897, 5812974437 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

The only primes in this sequence below primepi(10^8) are 2, 3 and 4189897.

prime(5812974437) - 5812974437 = 2^37. - Giovanni Resta, Apr 10 2013

a(9) > 1.4*10^16, if it exists. - Chai Wah Wu, Apr 24 2018

LINKS

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

Re: 2^k - prime(p) or prime(p) - 2^k ?, SeqFan mailing list, Apr 10 2013

FORMULA

A000040(a(n))-a(n) = 2^floor(log[2](A000040(a(n)))) for all n>1.

PROG

(PARI) n=0; forprime(p=1, 10^8, n++; (t=p-n)==1<<valuation(t, 2)&print1(n", "))

CROSSREFS

Cf. A014689.

Sequence in context: A143880 A037388 A298370 * A216339 A048076 A203432

Adjacent sequences:  A221857 A221858 A221859 * A221861 A221862 A221863

KEYWORD

nonn,more

AUTHOR

M. F. Hasler, Apr 10 2013

EXTENSIONS

a(8) from Giovanni Resta, Apr 10 2013

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 October 15 00:14 EDT 2019. Contains 328025 sequences. (Running on oeis4.)