# Using a Summation or an Integral to Add Multiple Sequential Sums of an Algebraic Equation

So, as the title states, I'm trying to make a single summation or integral that will solve for the sequential sums of an already defined algebraic equation. The equation in question is this: $$y=2x+101$$ It's been a few years since I've had to deal with questions like this, so I'm very rusty. In essence, the summation should do something along the lines of this: $$y=101+103+105+107+...+(n-4)+(n-2)+n$$ However, I do want to set up the formula in such a way that I can start anywhere in the sequence, for instance like: $$y=151+153+...+175+177$$ For this reason, I've asked for summation or integral.
At one point, I thought I had it using $y=\int_a^n(2x+101)dx$, but that didn't work the way I wanted. It was 5 off, either way I went.

So, as it stands, I'm a bit stuck. Any help would be greatly appreciated.

• So, I did some more research and found out the problem I was having was an overly basic one. Apparently, I wasn't using the same variable under sigma as I was in the formula, which is what was throwing off the calculations. Sorry to have wasted anyone's time, although I don't know how to close this question. – Obsidian Otter May 30 '18 at 12:03

We recall the summation formula $\sum_{k=1}^n k=\frac{1}{2}n(n+1)$.
We obtain for non-negative integers $0\leq m \leq n$ \begin{align*} \color{blue}{\sum_{k=m}^n(2k+1)}&=2\sum_{k=m}^nk+(n-m+1)\\ &=2\left(\sum_{k=1}^nk-\sum_{k=1}^{m-1}k\right)+(n-m+1)\\ &=2\left(\frac{1}{2}n(n+1)-\frac{1}{2}(m-1)m\right)+n-m+1\\ &\color{blue}{=n^2+2n-m^2+1} \end{align*}
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://math.stackexchange.com/questions/2801440/using-a-summation-or-an-integral-to-add-multiple-sequential-sums-of-an-algebraic", "fetch_time": 1566211039000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2019-35/segments/1566027314721.74/warc/CC-MAIN-20190819093231-20190819115231-00037.warc.gz", "warc_record_offset": 545189437, "warc_record_length": 31066, "token_count": 517, "char_count": 1611, "score": 4.15625, "int_score": 4, "crawl": "CC-MAIN-2019-35", "snapshot_type": "latest", "language": "en", "language_score": 0.9490358829498291, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00038-of-00064.parquet"}