OFFSET
1,2
COMMENTS
a(n) is a multiple of n^2 for all n.
FORMULA
a(p) = binomial(2*p,p) - 2, where p is prime.
MATHEMATICA
a[n_] := Sum[If[GCD[n, k] == 1, Binomial[n, k]^2, 0], {k, 1, n}]; Table[a[n], {n, 1, 25}]
PROG
(PARI) a(n) = sum(k=1, n, if (gcd(n, k) == 1, binomial(n, k)^2)); \\ Michel Marcus, Aug 12 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 10 2020
STATUS
approved