Question: The first three terms in the expansion of $(1+ax)^n$ are $1+35x+490x^2$. Given that n is a positive integer, find the value of n and a.
So I have tried to construct a general equation $1+anx+\frac{n!}{(n-2)!2!}(ax)^2$ because using pascals triange, I know that the coefficient of the second term will be n. For the third term I have used the formula $nCr\equiv \frac{n!}{(n-r)!r!}$
Which means that $an=35$ and $\frac{n!}{(n-2)!2!}a^2=490$. I thought maybe from here I could solve them simultaneously by substituting $\frac{35}{a}$ into the other equation, although I cant rearrange due to the factorials.
Is there some way of simplifying the factorials or have I done something wrong?
The answer is $n=5$ and $a=7$
we get $$a=\frac{35}{n}$$ and so $$\frac{n(n-1)}{2}\cdot \frac{35^2}{n^2}=490$$ and form here we obtain $$1225n-1225=980n$$ Can you proceed?