How many number of ordered pairs of positive integer $(a,d)$ satisfies:
$$\frac{1}{\frac{1}{a+2d}-\frac{1}{a+3d}}-\frac{1}{\frac{1}{a}-\frac{1}{a+d}}=2012$$
This question is too complicated. Like I tried to multiply by the common denominator, but it's not going anywhere since it's very complex. I tried to put it on wolframalpha and my ti89 they don't return me with anything.
Any clues?
Thanks!
The equation simplifies as
\begin{align} &\frac{1}{\frac{1}{a+2d}-\frac{1}{a+3d}}-\frac{1}{\frac{1}{a}-\frac{1}{a+d}}=\frac{1}{\frac{d}{(a+2d)(a+3d)}}-\frac{1}{\frac{d}{a(a+d)}}\\ &=\frac{(a+2d)(a+3d)}{d}-\frac{a(a+d)}{d}\\&=\frac{a^2+5ad+6d^2-a^2-ad}{d}\\&=\frac{4ad+6d^2}{d}\\&=4a+6d\\&=2012 \end{align}
Thus, $2a+3d=1006$. Then, we can take this equation by modulo $2$, getting $d\equiv 0\ (mod \ 2)$, thus $d$ is even.
Now let $d=2x$, thus $x\in\mathbb{N}$. Taking the equation in modulo $3$, we get $2a\equiv 1\ (mod \ 3)$, thus $a\equiv 2\ (mod\ 3)$. Now, let $a=3y-1$, thus $y\in\mathbb{N}$.
By doing substitution, we get:
$$2(3y-1)+3(2x)=1006\implies 6y-2+6x=1006\implies x+y=168$$
Thus, there're $\boxed{167}$ ordered pairs where $a,d\in\mathbb{N}$.