So the problem is here:(adsbygoogle = window.adsbygoogle || []).push({});

https://www.physicsforums.com/showthread.php?p=3532161&posted=1#post3532161

And I understand the answer and all, but I want to go further. MATLAB will be main tool for upcoming years so I have to learn.

I want to plot this:

[itex]\sum 2^{i}= 500 000[/itex]

where sum goes from i=0 to n. n are number of iterations i am looking for.

First how can make a combination of functions, that plots a sum. Next how can I plot that so its discreet, and only exists for 1 2 3 4...

So my graph contain x axis which will be representing "i".

And my y axis should represent the value of the sum. Ergo 1 3 7 15 etc. All up to something close to 500 000(I think this will come close to like 19 iterations)

EDIT: Can anybody show me purely mathematical way to solve the problem stated in the provided post.

[itex]\sum_{i=0}^n 2^{i}= 500 000[/itex]

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB MATLAB question-sum of sequence

**Physics Forums | Science Articles, Homework Help, Discussion**