# Get formula for the sum of integers raised to the kth power

%By Chukwunomnso Agunwamba

%Get formula for the sum of integers raised to the kth power

%You can use this to get the formula of the sum of a discrete polynomial, v.

%In that case, specify the v coefficients in increasing powers.

%The output, S, is the sum formula.

%The Lth column of D is the formula for summing v^(L-1).

##EXAMPLES:

##sumkthpw(3); %get the formula for summing 3rd powers of integers

##sumkthpw(5); %get the formula for summing fifth powers of integers

##sumkthpw('',[0 1]); %get the formula for summing 0+1*V

##sumkthpw('',[2 1]); %get the formula for summing 2+1*V

##sumkthpw('',[1 2 3]); %get the formula for summing 1+2*V+3*V^2

##sumkthpw('',[1 2 3 4]); %get the formula for summing 1+2*V+3*V^2+4*V^3

##and so on...

##General Syntax:

##[S,D]=sumkthpw(k,v);