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

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A087372 Smallest k such that 3^k + 2n is a prime, or 0 if no such k exists. Index of the smallest power of 3 which when increased by the n-th even number yields a prime. 0
1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 2, 0, 1, 1, 0, 2, 1, 0, 1, 1, 0, 1, 3, 0, 1, 2, 0, 1, 1, 0, 2, 1, 0, 1, 1, 0, 2, 1, 0, 1, 3, 0, 1, 2, 0, 2, 1, 0, 1, 1, 0, 1, 1, 0, 1, 3, 0, 4, 2, 0, 2, 1, 0, 1, 2, 0, 1, 1, 0, 2, 2, 0, 1, 1, 0, 3, 1, 0, 2, 1, 0, 1, 3, 0, 1, 2, 0, 1, 1, 0, 2, 2, 0, 1, 1, 0, 1, 1, 0, 3, 2, 0, 3, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,11
COMMENTS
Most of the terms are 0, 1 or 2. Subsidiary sequence: Index of the first occurrence of n. Conjecture: There exists a finite M such that a(n) < M for all n.
LINKS
EXAMPLE
a(10) = 1 as 3^1 + 20 = 23 is a prime.
a(23) = 3 as 3^3 +46 = 73 is a prime but 46+3 and 46+9 are not.
CROSSREFS
Cf. A087371.
Sequence in context: A140080 A345927 A065359 * A036431 A029407 A259285
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 09 2003
EXTENSIONS
More terms from David Wasserman, May 24 2005
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 April 23 18:16 EDT 2024. Contains 371916 sequences. (Running on oeis4.)