The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A037039 Least k such that 4*n*k+1 is a prime. 0
1, 2, 1, 1, 2, 3, 1, 3, 1, 1, 2, 2, 1, 2, 1, 3, 2, 1, 3, 3, 4, 1, 3, 1, 1, 3, 1, 1, 2, 2, 3, 2, 3, 1, 2, 3, 1, 3, 1, 4, 5, 2, 1, 2, 1, 7, 5, 1, 1, 2, 2, 6, 5, 2, 3, 2, 1, 1, 3, 1, 3, 6, 3, 1, 2, 5, 1, 5, 1, 1, 2, 2, 1, 2, 2, 4, 2, 1, 1, 2, 4, 7, 3, 1, 3, 3, 1, 1, 3, 5, 3, 9, 1, 3, 2, 2, 1, 8, 1, 1, 2, 1, 3, 3, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(5)=2 because for n=5: 4*5*2+1=41 is a prime.
PROG
(PARI) a(n) = my(k = 0); while (! isprime(4*n*k+1), k++); k; \\ Michel Marcus, Sep 28 2013
CROSSREFS
Cf. A016014.
Sequence in context: A097868 A025830 A083796 * A333856 A182972 A153452
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 June 4 22:04 EDT 2024. Contains 373102 sequences. (Running on oeis4.)