Lets say there is a number 30, and this sum of numbers
3 + 5 + 7 + 9 ...
Now I want to find where this sum and a multiple of 30 gets equal.
for 30 its 4 = 30 * 4 = 3 + 5 + 7 + 9 + 11 + 13 + 15 + 17 + 19 + 21
I don't have any math experience, just wanted to know if this could be calculated by some formula.
I can imagine, that it must somehow be related to circles/sine-waves, where 30 is the length of the circle and the sum of this numbers must somehow match a multiple of it.
Maybe there is some kind of formula for this already, would like to know, thanks
PS: would be nice, if you could also put the right tags to this question
We know that the sum of first $n$ odd numbers is $n^2$ . So the sum $$1+3+5+\cdots+(n+1) = n^2 \\ \implies 3+5+7+\cdots+(n+1)=(n+1)^2-1$$Since we want it to be a multiple of $30$ , We have the following equation:
$$(n+1)^2- 1= 30k \implies n^2+2n-30k = 0$$
Using quadratic formula , we get:
$$n = \dfrac{-2\pm\sqrt{4+120k}}2\implies n = -1+\sqrt{1+30k}$$
Since $n$ is an integer , it follows that $(1+30k)$ must be a perfect square of an odd number.
$$1+30k = (2x+1)^2 \implies k = \dfrac{2x(x+1)}{15}$$
Since $2$ is not divisible by $15$ , it follows that $x^2+x\equiv 0\mod 15$ and we get the possible values of $x \equiv 0,5,9,14 \mod 15$ $($The proof is left to the readers .$)$
Our previous equation becomes ,
$$n = -1 + 2x+1 \implies n = 2x$$
So for $x \equiv 0,5,9,14 \mod 15$ , you can get a possible solution $$(n,k) = \left(2x , \dfrac{2x(x+1)}{15}\right)$$