Sunday, 13 April 2014

divisibility - Determine all n-digit numbers that are divisible by the cyclic permutations of its digits





Given an integer n2, determine all n-digit numbers M0=¯a1a2an (ai0,i=1,2,,n) divisible by the numbers M1=¯a2a3ana1, M2=¯a3a4ana1a2,,Mn1=¯ana1a2an1.




We first note that ai4 for i>1 unless a1==an where a1>4. Thus assuming that is not the case, M0844n1 4s.



What do I do from here?


Answer



Suppose Mi=kiM0 for i=1,2,,n1, and we let k0=1. Since ai0, so ki0.




Case 1: if ki=kj for some i<j. Claim: this will be reduced to the same question with n=ji.



Proof: Since ki=kj, so Mi=Mj. Denote x=¯ai+1aj, and y=¯aj+1aj+n



¯xaj+1aj+2=Mi=Mj=¯yaj+n+1aj+n+2x=y



Using the same argument shows that Mi=¯xxxx, i.e. a repeating of the segment x. Then now x (possibly a reordering of x) is a solution to the same problem for a smaller n.




Case 2: if kikj,i. Clearly ki<10 because of the number of digits. So ki{1,,9}. So n9. Claim: there is no solution.



Proof: We first claim that a1=max{ai}. If not, suppose at>a1, then



Mt1kt1Mt1=M0<(a1+1)10n1at10n1Mt1,



a contradiction. Therefore a1=max{ai}. Then




(n1i=010i)na1(n1i=010i)(ni=1ai)=n1i=0Mi=(n1i=0ki)M0(n1i=0ki)10n1a1(n+1)10n1a1.



Cancel a1 on both sides of the inequality, we have



(n1i=010i)n(n+1)10n1n(n1i=110i)1>9,




a contradiction.



In conclusion, with only Case 1 possible, using induction on n, we will end up with the only solution M0=¯aaaa.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...