I am trying to make the following program.
n should be input by the programmer.
I thought that using
would work, but it only gives me a series of
What I wish to get is the series itself and the total addition of it. Any help please?