A number is divisible by 2 if it ends in 0,2,4,6,8. It is divisible by 3 if sum of ciphers is divisible by 3. It is divisible by 5 if it ends 0 or 5. These are simple criteria for divisibility.
I am interested in simple criteria for divisibility by 7,11,13,17,19.
Answer
(1)
The formulae for 2,3,5,9,11 can be derived from ∑0≤r≤nar10r
Observe that ∑0≤r≤nar10r≡a0(mod2)
∑0≤r≤nar10r≡a0(mod5)
∑0≤r≤nar10r≡∑0≤r≤nar(mod3) as 9∣(10r−1)
∑0≤r≤nar10r≡∑0≤r≤n(−1)rar(mod11) as 10r≡(−1)r(mod11)
∑0≤r≤nar10r≡(a0+a2+a4+⋯)−(a1+a3+a5+⋯)(mod11)
(2)
N=∑0≤r≤nar10r≡∑0≤r≤m−1ar10r(mod10m)≡∑0≤r≤m−1ar10r(mod2m) as 2s∣10s where integer s≥0
This explains why 2m∣N⟺ the numbers with lower m digits of N is divisible by 2m
For example, 2524 will be divisible by 22=4 as 24 is, but 2514 will not be divisible by 22=4 as 14 is not.
Similarly for 5m
(3)
For any number y co-prime with 10, we can have a reduction formula as follows:
If a number be 10a+b, we can find u,v in integers such that 10u+y⋅v=1 (using Bézout's Identity)
So, u(10a+b)+v⋅y⋅a=a(10u+y⋅v)+u⋅b=a+u⋅b⟹10a+b will be divisible by y⟺y∣(a+u⋅b)
For example if y=7, we find 3⋅7+(−2)10=1⟹u=−2,v=3
So, (a+u⋅b) becomes a−2b
If y=19, we find 2⋅10+(−1)19=1⟹u=2⟹a+u⋅b=a+2b
We can always use convergent property of continued fractions to find u,v.
There is no strong reason why this can not be generalized to any positive integer bases.
No comments:
Post a Comment