Saturday, December 14, 2019

elementary number theory - Divisibility criteria for 7,11,13,17,19



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 0rnar10r




Observe that 0rnar10ra0(mod2)



0rnar10ra0(mod5)



0rnar10r0rnar(mod3) as 9(10r1)



0rnar10r0rn(1)rar(mod11) as 10r(1)r(mod11)



0rnar10r(a0+a2+a4+)(a1+a3+a5+)(mod11)




(2)



N=0rnar10r0rm1ar10r(mod10m)0rm1ar10r(mod2m) as 2s10s where integer s0



This explains why 2mN 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+yv=1 (using Bézout's Identity)



So, u(10a+b)+vya=a(10u+yv)+ub=a+ub10a+b will be divisible by yy(a+ub)



For example if y=7, we find 37+(2)10=1u=2,v=3




So, (a+ub) becomes a2b



If y=19, we find 210+(1)19=1u=2a+ub=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

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...