GO Solution For UVa 10302 - Summation of Polynomials. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

The following text was taken from a book of mathematics:

“The antidifference of a function f(x) is the function g(x) such that f(x) = g(x+ 1)− g(x). So, if we have a summation of f(x), it can be simplified by the use of its antidifference in the following way:

f(k) + f(k + 1) + f(k + 2) + . . .+ f


You can find the full details of the problem Summation of Polynomials at UVa Online Judge

Sample Input


Sample Output


Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985