OFFSET
0,2
COMMENTS
The sequence relates arithmetic properties of roots of unity in the complex plane with number theoretic properties of integers. This connection often appears as intriguing identities showing products of specific values of the sine function or the gamma function reducing to simple values (see for instance the first formula below).
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 0..3322
Peter Luschny and Stefan Wehmeier, The lcm(1,2,...,n) as a product of sine values sampled over the points in Farey sequences, arXiv:0909.1838 [math.CA], Sep 2009.
Albert Nijenhuis, Short Gamma Products with Simple Values, The American Mathematical Monthly, Vol. 117, No. 8, Oct 2010, pp. 733-737.
J. Sándor and L. Tóth, A remark on the gamma function, Elemente der Mathematik, 44 (1989), pp. 73-76, Birkhäuser.
FORMULA
MAPLE
MATHEMATICA
a[n_] := 2^EulerPhi[n] * LCM @@ Most[Divisors[n]]; a[0] = 1; a[1] = 2; Table[a[n], {n, 0, 38}] (* Jean-François Alcover, Jan 22 2014 *)
PROG
(PARI) a(n)=if(n, my(p=n); if(isprime(n)||(ispower(n, , &p)&&isprime(p)), n/p, n)<<eulerphi(n), 1) \\ Charles R Greathouse IV, Jun 24 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Jun 22 2011
STATUS
approved