let be a positive integer written in the form
$$ \sum_{n=0}^{k}a(n)10^{n} $$
my question is how can i deduce using mathematics if the number is divisible by 2 , 4 or another higher integer using congruences or another math theorem?
here $a(n)=0,1,2,3,4,5,6,7,8,9 $ for every 'n'
for example we know that a number can be divided by 2 if it ends in 2, it can be divided by 3 if the sum of its ciphers can be divided by 3 and so on