I have been asked to write a function that calculates the sum of the series;
where i = 1,3,5... I currently have
function s = summation(N)
s = 0;
for i = 1:N
s = s + 2^(5*i-1);
i = i+2;
which calculates the sum for i=1,2,3.... How do I change the increment of i?