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!)
A113118 a(1) = 2. a(n) is smallest integer > a(n-1) which is a multiple of the largest prime <= a(n-1). 2
2, 4, 6, 10, 14, 26, 46, 86, 166, 326, 634, 1262, 2518, 5006, 10006, 19946, 39874, 79738, 159398, 318778, 637502, 1274998, 2549978, 5099902, 10199786, 20399534, 40799062, 81598082, 163196134, 326392258, 652784498, 1305568942, 2611137838 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
It appears that A113117 and this sequence agree except for the 5th term.
LINKS
FORMULA
a(n) = 2 * (largest prime <= a(n-1)), by Bertrand's postulate.
EXAMPLE
The greatest prime <= a(4) (= 10) is 7. The smallest multiple of 7 which is > 10 is 14. So a(5)= 14.
MATHEMATICA
sim[n_]:=Module[{pr=If[PrimeQ[n], n, NextPrime[n, -1]]}, pr*( Floor[ n/pr]+1)]; NestList[ sim, 2, 40] (* Harvey P. Dale, Sep 07 2012 *)
PROG
(PARI) {m=33; print1(a=2, ", "); for(n=2, m, p=precprime(a); k=a+1; while(k%p>0, k++); print1(a=k, ", "))} - (Brockhaus)
CROSSREFS
Sequence in context: A280611 A138016 A239787 * A287636 A032417 A152415
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 03 2006
EXTENSIONS
a(8) to a(33) from Klaus Brockhaus, Jan 07 2006
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 May 23 14:23 EDT 2024. Contains 372763 sequences. (Running on oeis4.)