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!)
A058345 a(1) = 1; a(n+1) = lcm(Sum_{k=1..n} a(k), Product_{k=1..n} a(k)). 2

%I #15 Dec 12 2017 00:51:31

%S 1,1,2,4,8,64,20480,21558722560,1896327099254067272089600

%N a(1) = 1; a(n+1) = lcm(Sum_{k=1..n} a(k), Product_{k=1..n} a(k)).

%H Reinhard Zumkeller, <a href="/A058345/b058345.txt">Table of n, a(n) for n = 1..13</a>

%e a(6) = lcm(1 + 1 + 2 + 4 + 8, 1*1*2*4*8) = lcm(16, 64) = 64.

%t Nest[Append[#, LCM[Total@ #, Times @@ #]] &, {1}, 13] (* _Michael De Vlieger_, Dec 11 2017 *)

%o (Haskell)

%o a058345 n = a058345_list !! (n-1)

%o a058345_list = 1 : f 1 1 where

%o f u v = w : f (u * w) (v + w) where w = lcm u v

%o -- _Reinhard Zumkeller_, Mar 20 2014

%Y Cf. A057194.

%K nonn

%O 1,3

%A _Leroy Quet_, Dec 14 2000

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 June 11 16:59 EDT 2024. Contains 373315 sequences. (Running on oeis4.)