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!)
A253398 Smallest odd k > 1 such that k*2^prime(n) + 1 is prime. 3
3, 5, 3, 5, 9, 5, 9, 11, 45, 23, 35, 15, 3, 9, 27, 51, 27, 53, 9, 39, 23, 249, 51, 51, 131, 221, 29, 105, 321, 179, 5, 221, 111, 411, 191, 65, 83, 75, 95, 101, 147, 83, 149, 111, 203, 131, 9, 245, 281, 15, 83, 65, 299 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
For n < 1275, the ratio a(n)/prime(n) is always < 6 and on average ~0.7.
From Robert G. Wilson v, Jan 27 2015: (Start)
Records: 3, 5, 9, 11, 45, 51, 53, 249, 321, 411, 611, 1383, 1875, 2423, 4239, 4623, 6549, 7095, 8091, 9003, 10065, 10719, 18005, 18545, 19251, 21111, 25409, 39741, 49709, 54455, ..., .
a(n)=3 for n = 1, 3, 13, 71, ...;
a(n)=5 for n = 2, 4, 6, 31, 466, ...;
a(n)=9 for n = 5, 7, 14, 19, 47, 342, 1167, ...;
a(n)=11 for n = 8, ...; etc.
(End)
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..1500 (first 1275 terms from Pierre CAMI)
FORMULA
a(n) = A247479(p_n). - Robert G. Wilson v, Jan 27 2015
EXAMPLE
3*2^2 + 1 = 13 (prime), so a(1)=3.
3*2^3 + 1 = 25 (composite), 5*2^3 + 1 = 41 (prime), so a(2)=5.
3*2^5 + 1 = 97 (prime), so a(3)=3.
MATHEMATICA
f[n_] := Block[{k = 3, p = 2^Prime@ n}, While[ !PrimeQ[ k*p + 1], k += 2]; k]; Array[f, 53] (* Robert G. Wilson v, Jan 25 2015 *)
PROG
(PFGW & SCRIPT)
SCRIPT
DIM i, 0
DIM j
OPENFILEOUT myf, a(n).txt
LABEL loop1
SET i, i+1
SET j, 1
LABEL loop2
SET j, j+2
PRP j*2^p(i)+1
IF ISPRP THEN WRITE myf, k
IF ISPRP THEN GOTO loop1
GOTO loop2
(PARI) a(n)=k=1; while(!isprime((2*k+1)*2^prime(n)+1), k++); 2*k+1
vector(100, n, a(n)) \\ Derek Orr, Dec 31 2014
CROSSREFS
Sequence in context: A188889 A219604 A296489 * A151568 A134429 A100667
KEYWORD
nonn
AUTHOR
Pierre CAMI, Dec 31 2014
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 July 7 23:07 EDT 2024. Contains 374148 sequences. (Running on oeis4.)