OFFSET
0,3
LINKS
Michael De Vlieger, Table of n, a(n) for n = 0..1000
FORMULA
EXAMPLE
a(6) = gcd(30030,5760) = 30.
MAPLE
[seq(igcd(product(ithprime(k), k=1..m), product(ithprime(k)-1, k=1..m)), m=1..50)];
MATHEMATICA
GCD[#, EulerPhi[#]]&/@Rest[FoldList[Times, 1, Prime[Range[30]]]] (* Harvey P. Dale, Dec 19 2012 *)
Fold[Append[#1, {#1, #2, GCD[#1, #2]} & @@ {#4 #1, #2 (#4 - 1)} & @@ Append[#1[[-1]], #2]] &, {{1, 1, 1}}, Prime@ Range[29]][[All, -1]] (* Michael De Vlieger, Apr 25 2019 *)
PROG
(PARI) a(n) = my(pr=prod(k=1, n, prime(k))); gcd(pr, eulerphi(pr)); \\ Michel Marcus, Apr 13 2019
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Labos Elemer, Dec 05 2000
EXTENSIONS
a(0) = 1 inserted by Michael De Vlieger, Apr 13 2019
STATUS
approved