I need help with this exercise. What I've done so far is:
1st: Prove it with $n = 1$ (for example):
$$ (2\times1-1) = 1^2 $$ $$ 1 = 1 $$
which is true
2nd: if $P(n)$ is true, then $P(n+1)$ should be true as well. So now I substitute $n$ for $m+1$
$$ n = m+1\\ \text{and}\\ P(n) \implies P(m+1) $$
Therefore:
$$1+3+\dots+(2(m+1)-1) = (m+1)^2 \\ 1+3+\dots+(2m+2-1) = (m+1)^2 \\ 1+3+\dots+(2m+1) = m^2+1+2m $$
Now, the problem is that I don't know how to prove it/conclude the exercise. Could someone help me please? Thank you so much
If something's not very clear, please let me know. I'll try to explain again
You've done it right, but: $$(a+b)^2+a^2+2ab+b^2$$ So: $$(m+1)^2=m^2+2m+1 \neq m^2+1+2$$ So, you've assumed that it's true for $n=m$, so: $$1+3+\dots+(2m-1)=m^2$$ For $n=m+1$, you've shown it: $$1+3+\dots+(2m+1) = m^2+1+2m $$ Now after using some more brackets and writing out more terms: $$[1+3+\dots + (2m-1)]+(2m+1) = [m^2]+(1+2m) $$ The parts in the [] brackets are equal because of the assumption, and the only thing left to prove is that $2m+1=2m+1$, which is true.