In the given equation, the total number of "a" that exists is n.
Therefore the equation can be simplified to: an+(1+2+...+(n−1))
1 + 2 + 3 + ... + n = n(n+1)2
Therefore the whole thing after the plus sign simplifies to: (n−1)(1+(n−1))2=n(n−1)2
Original equation becomes an+n(n−1)2=100
And then further simplify: 12n2+an−12n−100=0<--- I am trying to make it a quadratic here.
Take out the common factor n: 12n2+n(a−12)−100=0
To make it easier to solve, multiply each term by 2.
n2+n(2a−1)−200=0
It now becomes a quadratic equation with a is a constant and solving for n. Then we can find n in terms of a.
n=−(2a−1)±√(2a−1)2−(4)(1)(−200)2=1−2a±√4a2−4a+8012
Because n is an integer, √4a2−4a+801 must be an integer too, to make n an integer.
That implies that 4a2−4a+801 is a square number.
Also, (4a2−4a+801)(mod4)≡1.
We now think of a square number which mod 4 = 1.
The nearest square number to 801 which mod 4 = 1 is 841, therefore we assume that the quadratic there is = 841 first.
4a2−4a+801=841a2−a=10a(a−1)=10
No positive integer "a" satisfies the equation.
The second nearest square number to 801 which mod 4 = 1 is 729,
4a2−4a+801=729a2−a=−72a(a−1)=−72
Still no positive integer "a" satisfies the equation.
We should think of a bigger number.
31^2 = 961 and mod 4 = 1.
4a2−4a+801=961a2−a=40a(a−1)=40
Still no positive integer "a" satisfies the equation :(
Try 1089
4a2−4a+801=1089a2−a=72a(a−1)=72a=9
Yay! :D
We back-substitute a = 9 into the quadratic formula to find the corresponding n.
n=1−2(9)±332n=8 or n=−25(rejected)n=8
We get: a = 9, n = 8 (Finally after a lot of work XD)