OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..386
FORMULA
From Vaclav Kotesovec, Sep 05 2020: (Start)
a(n) = hypergeometric2F1(1/2 - n, -n, 1/2, -n).
a(n) = (1 + i*sqrt(n))^(2*n)/2 + (1 - i*sqrt(n))^(2*n)/2, where i is the imaginary unit.
a(n) = cos(2*n*arctan(sqrt(n))) * (n + 1)^n. (End)
MATHEMATICA
a[0] = 1; a[n_] := Sum[(-n)^k * Binomial[2*n, 2*k], {k, 0, n}]; Array[a, 20, 0] (* Amiram Eldar, Sep 04 2020 *)
Table[Hypergeometric2F1[1/2 - n, -n, 1/2, -n], {n, 0, 20}] (* Vaclav Kotesovec, Sep 05 2020 *)
Table[Cos[2*n*ArcTan[Sqrt[n]]] * (n + 1)^n, {n, 0, 20}] // Round (* Vaclav Kotesovec, Sep 05 2020 *)
PROG
(PARI) {a(n) = sum(k=0, n, (-n)^k*binomial(2*n, 2*k))}
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Sep 04 2020
STATUS
approved