If the 18-digit number $A3640548981270644B$ is divisible by $99$, what are all the possible values of $(A, B)$?
I understand that the multiples of $99$, must end with $1$ or $9$. So, I took different combinations of $1 \& 9$ as : $1,9\;; 9,1\;; 1,1$ and $9,9$
I divided $136405489812706449/99=15156165534745161/11$ (not exact);
$936405489812706441/99=9458641311239459$ (exact);
$136405489812706441/99=$Irreducible;
$936405489812706449/99=$Irreducible.
So, the answer should be $A=9$ and $B=1$, which is one pair of $A$ & $B$ only.
Is this solution correct?... Please advise.
The condition of divisibility by 9 gives:
$A +71 + B= 9 k_1$
Where 71 is the sum of digits between A and B and $k_1$ is an integer. The condition of divisibility by 11 by alternating sum of digits gives:
$A +3 -B= 11 k_2$
Where 3 is alternating sum of digits between A and B and $k_2$ is an integer. The minimum possible multiple of 11 is when $k_2=1$, that is we have $A+3-B=11$ the only solution of this equation is $A=9$ and $B=1$ which also satisfy the first relation.