OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n = 14: binomial(15,7) = 3432 = 2*2*2*3*11*13, which has 32 divisors. Of those divisors, 16 are unitary: {1, 3, 8, 11, 13, 24, 33, 39, 88, 104, 143, 264, 312, 429, 1144, 3432}; 16 are squarefree: {1, 2, 3, 6, 11, 13, 22, 26, 33, 39, 66, 78, 143, 286, 429, 858}. Only 8 of the divisors belong to both classes: {1, 3, 11, 13, 33, 39, 143, 429}. Thus, a(14) = 8.
MATHEMATICA
Table[With[{m = Binomial[n, Floor[n/2]]}, DivisorSum[m, 1 &, And[CoprimeQ[#, m/#], SquareFreeQ@ #] &]], {n, 62}] (* Michael De Vlieger, Sep 05 2017 *)
f[p_, e_] := If[e == 1, 2, 1]; a[1] = 1; a[n_] := Times @@ (f @@@ FactorInteger[ Binomial[n, Floor[n/2]]]); Array[a, 60] (* Amiram Eldar, Sep 06 2020 *)
PROG
(PARI) a(n) = my(b=binomial(n, n\2)); sumdiv(b, d, issquarefree(d) && (gcd(d, b/d) == 1)); \\ Michel Marcus, Sep 05 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Labos Elemer, Aug 10 2000
STATUS
approved