Having established that Mathematica cannot calculate the following summation:
sum = Sum[(1 + Cos[k Pi/n])^n, {k, 1, n - 1}]
I implemented the classic "plan B", ie I tabulated some values and then searched for a sequence function:
Table[sum, {n, 10}] // FullSimplify;
sum = FindSequenceFunction[%, n] // Expand
obtaining:
-2^(-1 + n) + (2^n (-1/2 + n)!)/(Sqrt[Pi] (-1 + n)!)
On the other hand, I also know that:
sum == -2^(-1 + n) + n/2^n Binomial[2 n, n] // FullSimplify
and indeed:
True
So the question is: is there a way to "oblige" Mathematica to give me the result in this last form that is easier for me?
// FunctionExpand // FullSimplify
(in place ofExpand
) gives2^(-1 + n) (-1 + (2 Gamma[1/2 + n])/(Sqrt[\[Pi]] Gamma[n]))
$\endgroup$