Force the calculation of a sum


I want this sum to be calculated to 1

total[Cos[(Pi*l*(2*m + 1))/(n + 1)], {l, 0, n}]

Only DiscretePlot3D returns the correct result, with all points displayed at 1