OFFSET
1,2
COMMENTS
For even n, a(n) is an even divisor of n.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 1..10000
FORMULA
a(2k+1) = 2k+1. a(2k) = A058005(k).
MAPLE
swing := n -> n!/iquo(n, 2)!^2: seq(igcd(n, swing(n)), n=1..82); # Peter Luschny, May 17 2013
MATHEMATICA
a[n_] := GCD[n, Binomial[n, Floor[n/2]]]; Array[a, 100] (* Jean-François Alcover, Jun 03 2019 *)
PROG
(PARI) a(n) = gcd(n, binomial(n, n\2)); \\ Michel Marcus, Mar 22 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Nov 13 2000
EXTENSIONS
Offset changed to 1 by Peter Luschny, May 17 2013
STATUS
approved