I am a 10th grader in high school and my math teacher asked me to add from 1 to 100 and I came up with the formula $$f(x)=\frac{x}{2}\times x+\frac{x}{2}$$ and it gives me the exact answer to any number added up to that number. $F(100) = 5050$. What I want to know is this equivalent to $n(n+1)/2$ and if I indeed found another formula?
Asked
Active
Viewed 123 times
-1
-
You are on the same tracks as this 12th grader. – Jean Marie Sep 30 '24 at 17:15
2 Answers
3
Yes, this is equivalent to the standard formula.
$$ \frac{n(n+1)}{2} = \frac{n^2 + n}{2} = \frac{n^2}{2} + \frac{n}{2} = \frac{n}{2}\cdot n + \frac{n}{2} $$
MJD
- 67,568
- 43
- 308
- 617
MartianInvader
- 7,896
2
Great job on your discovery! Yes, the formula you've found is indeed equivalent to $n(n+1)/2$. Here is a proof:
$$\begin{align*} f(x) &= ((x/2)\cdot x) + x/2 \\ &= \frac{x}{2}\cdot x + \frac{x}{2}\\ &= \frac{x^2}{2} + \frac{x}{2}\\ &= \frac{x^2 + x}{2}\\ &= \frac{x(x+1)}{2} \end{align*}$$
Then of course you would swap the variable $x$ for $n$, but there is no difference between computing $1 + 2 + \cdots +x$ versus $1+2+\cdots+n$.
Rob
- 7,520