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!)
A060361 a(n) = { Smallest prime > k } - k, where k = lcm(1..n). 1
1, 1, 1, 1, 1, 1, 1, 1, 13, 1, 1, 13, 13, 31, 31, 31, 23, 19, 19, 1, 1, 1, 1, 41, 41, 1, 1, 31, 31, 43, 43, 1, 41, 41, 41, 41, 41, 53, 53, 53, 53, 79, 79, 59, 59, 59, 59, 1, 1, 59, 59, 59, 59, 61, 61, 61, 61, 61, 61, 113, 113, 97, 97, 97, 179, 179, 179, 73 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,9
LINKS
MATHEMATICA
f[n_]:=Module[{lcm=LCM@@Range[n]}, NextPrime[lcm]-lcm]; Join[{1}, Array[f, 70]] (* Harvey P. Dale, May 20 2011 *)
PROG
(PARI) a(n) = my(lc = lcm([1..n])); nextprime(lc+1) - lc; \\ Michel Marcus, Mar 18 2018
CROSSREFS
Sequence in context: A010226 A066834 A010225 * A141596 A108477 A176204
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 01 2001
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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)