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!)
A037034 Least k such that 4*n*k-1 is a prime. 1
1, 1, 1, 2, 1, 1, 3, 1, 2, 2, 1, 1, 2, 3, 1, 2, 1, 1, 2, 1, 1, 3, 4, 2, 2, 1, 1, 2, 3, 2, 5, 1, 1, 2, 1, 3, 3, 1, 2, 3, 1, 1, 5, 7, 1, 2, 3, 1, 3, 1, 5, 5, 1, 2, 2, 1, 1, 2, 13, 1, 2, 3, 1, 5, 4, 1, 6, 1, 3, 3, 1, 3, 5, 3, 2, 2, 1, 1, 2, 4, 2, 3, 1, 7, 3, 3, 1, 5, 4, 1, 2, 1, 2, 2, 1, 1, 3, 4, 3, 5, 6, 3, 2, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,4
LINKS
EXAMPLE
a(5)=1 because 4*5*1-1=19 is a prime
MATHEMATICA
lk[n_]:=Module[{c=4n, k=1}, While[!PrimeQ[c*k-1], k++]; k]; Array[lk, 110] (* Harvey P. Dale, Jun 05 2012 *)
CROSSREFS
Cf. A016014.
Sequence in context: A228351 A124734 A337259 * A340056 A229897 A343796
KEYWORD
nonn
AUTHOR
EXTENSIONS
More terms from Erich Friedman
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 25 16:45 EDT 2024. Contains 371989 sequences. (Running on oeis4.)