Browse · MathNet
PrintInternational Mathematical Olympiad
number theory
Problem
Call a rational number short if it has finitely many digits in its decimal expansion. For a positive integer , we say that a positive integer is -tastic if there exists a number such that is short, and such that is not short for any . Let be the set of -tastic numbers. Consider for . What is the maximum number of elements in ?
Solution
If , with , then is short if and only if divides . So we may (and will) suppose without loss of generality that . Define The -tastic numbers are then precisely the smallest exponents such that for some integer , that is, the set of orders of modulo . In other words, Since there are numbers with and , namely those such that , Now we find such that . Let and choose a positive integer such that every divides (e.g. , being the product of all primes in ), and let .
Claim. For every , we have As an immediate consequence, this implies , finishing the problem.
Proof. Obviously . Let . Then Hence for some . We will show that .
Denote by the number of prime factors in , that is, the maximum exponent for which . For every and , the Lifting the Exponent Lemma provides So The first such is , so .
Claim. For every , we have As an immediate consequence, this implies , finishing the problem.
Proof. Obviously . Let . Then Hence for some . We will show that .
Denote by the number of prime factors in , that is, the maximum exponent for which . For every and , the Lifting the Exponent Lemma provides So The first such is , so .
Final answer
807
Techniques
Multiplicative orderFermat / Euler / Wilson theoremsFactorization techniques