login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A093701 a(n) = smallest m>a(n-1) such that 1+m*n is prime, a(1) = 1. 2
1, 2, 4, 7, 8, 10, 16, 17, 18, 19, 30, 31, 34, 35, 36, 37, 38, 41, 58, 59, 62, 64, 72, 73, 76, 77, 80, 81, 84, 85, 88, 95, 96, 97, 102, 103, 106, 111, 114, 118, 122, 123, 124, 125, 130, 132, 134, 135, 138, 140, 142, 144, 150, 152, 156, 158, 164, 166, 174, 175 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A093702(n) = 1+a(n)*n.

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

EXAMPLE

For n=3: we have a(2)=2, so we want the smallest number m > 2 such that n*m+1 = 3*m+1 is prime. m=3 fails but m=4 works, so a(3) = m = 4. - N. J. A. Sloane, Dec 13 2018

MATHEMATICA

nxt[{n_, a_}]:=Module[{m=a+1}, While[!PrimeQ[m(n+1)+1], m++]; {n+1, m}]; NestList[ nxt, {1, 1}, 60][[All, 2]] (* Harvey P. Dale, Dec 13 2018 *)

CROSSREFS

Cf. A013632, A093702.

Note that A081942 is a related but distinct sequence.

Sequence in context: A039581 A338420 A182218 * A045601 A167051 A151661

Adjacent sequences:  A093698 A093699 A093700 * A093702 A093703 A093704

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Apr 10 2004

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 17 05:13 EDT 2021. Contains 343965 sequences. (Running on oeis4.)