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!)
A152145 a(n) = least k such that 3*k*2^n-1 or 3*k*2^n+1 (or both) is prime. 1
1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 2, 1, 1, 3, 3, 3, 4, 2, 1, 9, 6, 3, 9, 15, 13, 11, 9, 5, 4, 2, 1, 5, 4, 2, 1, 2, 1, 2, 1, 4, 2, 1, 2, 1, 5, 18, 9, 9, 5, 18, 9, 7, 8, 4, 2, 1, 9, 17, 18, 9, 15 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,10
LINKS
MATHEMATICA
lk[n_]:=Module[{k=1}, While[NoneTrue[3*k*2^n+{1, -1}, PrimeQ], k++]; k]; Array[ lk, 70, 0] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Aug 03 2019 *)
CROSSREFS
Sequence in context: A097526 A051149 A293424 * A288251 A024553 A051758
KEYWORD
nonn
AUTHOR
Pierre CAMI, Nov 26 2008, Nov 27 2008
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 18 11:02 EDT 2024. Contains 371779 sequences. (Running on oeis4.)