Suppose $a$ be a 28-digit palindromic number. Given that $a$ is a multiple of $13$ and all the digits except the 13th, 14th, 15th, and 16th are $1$. Let $A, B, C, D$ be the 13th, 14th, 15th, and 16th digits respectively. What is the possible minimum value of $A+B+C+D$?
I am trying to track the divisibility rule of $13$, but seems can't solve the problem above. It is just too complicated and long.
Would you help me? Thanks for that.
Use the fact that $13$ divides $1001$. So, like the divisibility test for $11$ but in base $1000$ instead of base $10$, set off groups of three digits from the right and take the alternating sum.
You should find that the $1$ digits cancel and at the end, $BCD-A$ must be a multiple of $13$.
Since the number is palindromic $B=C$ and $A=D$. Thus $BB0$ is to be a multiple of $13$, forcing $B=0$ but allowing a free choice for $A$. Therefore the minimal sum is $0+0+0+0=0$.