login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60th year, we have over 367,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A172130 a(n) = the smallest k such that n(n+1)(n+2)...(n+k-1)-1 is a prime 1
3, 2, 1, 1, 2, 1, 3, 1, 2, 2, 2, 1, 2, 1, 2, 2, 3, 1, 2, 1, 2, 3, 3, 1, 17, 2, 4, 2, 6, 1, 2, 1, 10, 3, 2, 9, 3, 1, 2, 3, 2, 1, 4, 1, 2, 2, 3, 1, 4, 2, 8, 7, 2, 1, 2, 2, 3, 3, 2, 1, 11, 1, 3, 2, 2, 2, 5, 1, 3, 2, 11, 1, 4, 1, 3, 2, 7, 7, 5, 1, 4, 38, 2, 1, 2, 2, 7, 9, 2, 1, 4, 4, 2, 2, 4, 2, 3, 1, 14, 2, 2, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(534) = 624 is particularly large.
LINKS
MATHEMATICA
a[n_] := Block[{}, For[s = n; k = 1, ! PrimeQ[s - 1], s *= n + k; k++ ]; k]; Table[a[n], {n, 1, 300}]
CROSSREFS
Sequence in context: A247044 A083663 A085427 * A202449 A326613 A288627
KEYWORD
nonn
AUTHOR
Cheng Zhang (cz1(AT)rice.edu), Jan 26 2010, Mar 03 2010
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 December 5 21:07 EST 2023. Contains 367594 sequences. (Running on oeis4.)