OFFSET
0,4
COMMENTS
The Gauss factorial n_k! is defined to be Product_{1<=j<=n, gcd(j,k)=1} j.
LINKS
J. B. Cosgrave and K. Dilcher, An introduction to Gauss factorials, Amer. Math. Monthly, 118 (2011), 810-828.
J. B. Cosgrave and K. Dilcher, The Gauss-Wilson theorem for quarter-intervals, Acta Mathematica Hungarica, Sept. 2013.
MAPLE
Gf:=proc(N, n) local j, k; k:=1;
for j from 1 to N do if gcd(j, n)=1 then k:=j*k; fi; od; k; end;
f:=n->[seq(Gf(N, n), N=0..40)];
f(10);
PROG
(Magma) k:=10; [IsZero(n) select 1 else &*[j: j in [1..n] | IsOne(GCD(j, k))]: n in [0..40]]; // Bruno Berselli, Dec 10 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Dec 08 2013
STATUS
approved