Find the number of integers $n$ of the form $30a0b03$ that are divisible by $13$.

divisibilityelementary-number-theorymodular arithmeticproblem solving

Find the number of integers $n$ of the form $30a0b03$ that are divisible by $13$.

What I Tried: This problem looks simple but I cannot find it's solution. I recalled all the divisible rules of $13$ and tried to put them here, but none of them really worked. One thing which I got was :-
$$\rightarrow 13 | bo3 – 0a0 + 3$$
I only got this by applying one divisibility rule of $13$.
I might try and test for each values of $a$ and $b$ but there will be $100$ configurations, and I don't want to do that.

Can anyone help me?

Edit: After the hints @Daniel gave me, I figured out the solution and found $7$ solutions, can anyone tell me if this is correct or not?

Best Answer

For four or more digit numbers, we do have a divisibility test by $13$ owing to $1001$ being divisible by $13$ ie, $1000$ leaving remainder $-1$. One checks the alternating sum of blocks of three consecutive digits. Eg, $\overline{abcdefgh}$ is divisible by $13$ if $\overline{ab}-\overline{cde}+\overline{fgh}$ is.

So we check how many $n$ there for which following is multiple of $13$ $$\overline{3}-\overline{0a0}+\overline{b03}=\overline{(b-1)(10-a)6}$$

We have $130+26=156$ one such number $\Rightarrow b=2$, $a=5$.

Others can be found by adding/subtracting $130$.

Related Question