$ n=B^2=1001\times A+1 $
Which suggests we rearrange this (a common manoeuvre for such problems) as:
$ B^2 -1=1001\times A $
$ (B+1)(B-1)=1001\times A $
Which tells us we want to rearrange the RHS of this last equation as the product of two integers that differ by $2$. Also we can quickly eliminate the possibilities that the RHS is $1001\times 999$ and $1001\times 1002$ as one is not a square and the other has more than six digits.
That $B^2$ has six digits give constraints on possible values of $B$: $999\ge B \ge 317 $
The prime factorisation of $1001=7\times 11 \times 13$ and two of these factors must be factors of one of terms $(B+1)$ or $(B-1)$ and the remaining factor of the other term, so for some partition(s) $(p_1,p_2,p_3)$ of $(7,11,13)$ we may write:
$ (B+1)(B-1)=(p_1 \times p_2 \times U) \times (p_3 \times V) $
where the first barracked term on the RHS differs from the second by $\pm 2$.
So lets take $p_1=7$ and $p_2=11$, then we have:
$ (B+1)(B-1)=(77 \times U) \times (13 \times V) $
No comments:
Post a Comment