OFFSET
1,4
COMMENTS
a(n) = 1 iff n is 1 or a prime.
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..300
FORMULA
a(n) = A051696(n)/n.
EXAMPLE
a(10) = gcd(9!, 10^10) = gcd(2^7*3^4*5*7, 2^10*5^10) = 2^7*5 = 640.
PROG
(PARI) a(n)=gcd((n-1)!, n^n); \\ Harry J. Smith, Aug 10 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Jul 16 2001
STATUS
approved