OFFSET
1,2
COMMENTS
a(n) = n for n in A014847. - Reinhard Zumkeller
a(n) = gcd(n, C(n)), C(n) the Catalan numbers. - Peter Luschny Oct 06 2011
LINKS
T. D. Noe, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Central Binomial Coefficient
EXAMPLE
a(10) = gcd(10, binomial(20, 10)) = gcd(10, 184756) = 2.
MATHEMATICA
Table[GCD[n, Binomial[2n, n]], {n, 100}] (* Harvey P. Dale, Nov 10 2011 *)
PROG
(Python)
from math import prod
from sympy import factorint
from sympy.ntheory.factor_ import digits
def A071416(n):
f = factorint(n)
def s(n, p): return sum(digits(n, p)[1:])
return prod(p**min(f[p], ((s(n, p)<<1)-s(n<<1, p))//(p-1)) for p in f) # Chai Wah Wu, May 05 2026
CROSSREFS
KEYWORD
nonn,nice
AUTHOR
Reinhard Zumkeller, May 29 2002
STATUS
approved
