What kind of formula is there that can be used for calculating the sum of power of $x$ of numbers from $1$ to $a$?
I know that the sum of numbers from $1$ to $a$ is $\ (n^2 + n)/ 2 \ $ and that the sum of the squared numbers from $1$ to $a$ is $n^3/3+n^2/2+n/6 $.
If possible, please give a solution that excludes Bernoulli numbers and works for negative numbers too.