Daily

Random

Practice set

Baltic Way 1994 · Problem 6

Number Theory

Prove that any irreducible fraction pq\frac{p}{q}, where pp and qq are positive integers and qq is odd, is equal to a fraction n2k−1\frac{n}{2^{k}-1} for some positive integers nn and kk.

Change pool

When you’re ready

Review material becomes available with the next Daily.

Review

Topics

GCD and LCM · Divisibility and factorization · Orders and residues

Solutions

Solution

Solution:

Since the number of congruence classes modulo qq is finite, there exist two non-negative integers ii and jj with i>ji>j which satisfy 2i≡2j(modq)2^{i} \equiv 2^{j} \pmod{q}. Hence, qq divides the number 2i−2j=2j(2i−j−1)2^{i}-2^{j}=2^{j}\left(2^{i-j}-1\right). Since qq is odd, qq has to divide 2i−j−12^{i-j}-1. Now it suffices to multiply the numerator and denominator of the fraction pq\frac{p}{q} by 2i−j−1q\frac{2^{i-j}-1}{q}.

Contest context

Results from Baltic Way 1994

9 teams

Mean score
3.3 / 5
Scores of 4 or 5
6 / 9
Estonia
4 / 5

Score distribution

02
11
20
30
41
55
All team scores
TeamScore
St. Petersburg5 / 5
Latvia5 / 5
Poland5 / 5
Sweden5 / 5
Denmark0 / 5
Estonia4 / 5
Finland5 / 5
Lithuania0 / 5
Iceland1 / 5