login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A128247
a(n) = A001783(n)/A038610(n).
2
1, 1, 1, 1, 2, 1, 12, 1, 8, 3, 1440, 1, 17280, 3, 112, 45, 29030400, 1, 522547200, 3, 12800, 945, 4828336128000, 1, 38626689024, 4725, 512512000, 2025, 3796230997278720000, 1, 113886929918361600000, 42525, 10436608000, 1403325, 551910745571328, 175
OFFSET
1,5
EXAMPLE
The positive integers which are <= 10 and are coprime to 10 are 1,3,7,9. So a(10) = 1*3*7*9/lcm(1,3,7,9) = 189/63 = 3.
MATHEMATICA
Table[s = Select[Range[1, n], GCD[#, n] == 1 &]; (Times @@ s)/(LCM @@ s), {n, 30}] (* T. D. Noe, Oct 04 2012 *)
PROG
(Sage)
def Gauss_factorial(N, n): return mul(j for j in (1..N) if gcd(j, n) == 1)
def L(N, n): return lcm([j for j in (1..N) if gcd(j, n) == 1])
def A128247(n): return Gauss_factorial(n, n)/L(n, n)
[A128247(n) for n in (1..34)] # Peter Luschny, Oct 02 2012
CROSSREFS
Sequence in context: A112284 A167401 A069249 * A161150 A163088 A105608
KEYWORD
nonn
AUTHOR
Leroy Quet, May 03 2007
EXTENSIONS
More terms from Sean A. Irvine, Jun 21 2011
STATUS
approved