OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n=25: prime(25)=97, prime(26)=101; a(25) = lcm(96,100)/gcd(96,100) = 2400/4 = 600.
MAPLE
P:= seq(ithprime(i), i=1..100):
seq(ilcm(P[i+1]-1, P[i]-1)/igcd(P[i+1]-1, P[i]-1), i=1..99); # Robert Israel, Jun 11 2017
MATHEMATICA
f[x_] := Prime[x]-1 Table[LCM[f[w+1], f[w]]/GCD[f[w+1], f[w]], {w, 1, 128}]
(* Second program: *)
Table[Apply[LCM[#1, #2]/GCD[#1, #2] &, Prime[n + {1, 0}] - 1], {n, 49}] (* Michael De Vlieger, Jun 11 2017 *)
PROG
(PARI) first(n)=my(v=vector(n), p=2, k, g); forprime(q=3, , g=gcd(p-1, q-1); v[k++]=(p-1)*(q-1)/g^2; p=q; if(k==n, break)); v \\ Charles R Greathouse IV, Jun 11 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, May 22 2003
STATUS
approved