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!)
A135507 a(1)=1; for n>1, a(n)=2*a(n-1)+lcm(a(n-1),n). 1
1, 4, 20, 60, 180, 540, 4860, 19440, 58320, 174960, 2274480, 6823440, 20470320, 184232880, 552698640, 1658095920, 31503822480, 94511467440, 283534402320, 850603206960, 7655428862640, 99520575214320, 2488014380358000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence has properties related to primes and especially to twin primes. For instance a(n+1)/a(n)-2 is never the largest prime of a twin pair (except for 7).
LINKS
MATHEMATICA
a[1] = 1; a[n_] := a[n] = 2*a[n-1] + LCM[a[n-1], n]; Table[a[n], {n, 1, 23}] (* Jean-François Alcover, Dec 06 2012 *)
nxt[{n_, a_}]:={n+1, 2a+LCM[a, n+1]}; Transpose[NestList[nxt, {1, 1}, 30]][[2]] (* Harvey P. Dale, Oct 16 2014 *)
PROG
(PARI) x1=1; for(n=2, 40, x2=2*x1+lcm(x1, n); t=x1; x1=x2; print1(x2, ", "))
(Haskell)
a135507 n = a135507_list !! (n-1)
a135507_list = 1 : zipWith (+)
(map (* 2) $ a135507_list) (zipWith lcm a135507_list [2..])
-- Reinhard Zumkeller, Mar 25 2012
CROSSREFS
Cf. A106108.
Sequence in context: A196680 A033488 A018211 * A197404 A355990 A169637
KEYWORD
nonn,nice
AUTHOR
Benoit Cloitre, Feb 09 2008, Feb 10 2008
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 25 07:53 EDT 2024. Contains 371964 sequences. (Running on oeis4.)