login
The least common multiple of the first n terms of Doudna sequence, A005940.
3

%I #6 Jan 12 2024 10:25:25

%S 1,1,2,6,12,60,60,180,360,2520,2520,2520,2520,12600,12600,37800,75600,

%T 831600,831600,831600,831600,831600,831600,831600,831600,5821200,

%U 5821200,5821200,5821200,29106000,29106000,87318000,174636000,2270268000,2270268000,2270268000,2270268000,2270268000,2270268000,2270268000,2270268000

%N The least common multiple of the first n terms of Doudna sequence, A005940.

%F a(0) = 1, and for n > 0, a(n) = lcm(A005940(n), a(n-1)).

%F a(0) = 1, and for n > 0, a(n) = A368900(n) * a(n-1).

%o (PARI)

%o A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); (t) };

%o A368901(n) = lcm(vector(n,i,A005940(i)));

%Y Cf. A005940, A368900.

%Y Cf. also A003418.

%K nonn

%O 0,3

%A _Antti Karttunen_ and _David James Sycamore_, Jan 10 2024