Olympiad Maths Prep

Track / Stage 7 / 207 of 300 #1607 of 2000

Problem 1607

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.4 Find the answer

Let p>3p > 3 be a given prime number. For a set SZS \subseteq \mathbb{Z} and aNa \in \mathbb{N} , define
Sa={x{0,1,2,...,p1}S_a = \{ x \in \{ 0,1, 2,...,p-1 \} | (sS)xpas}(\exists_s \in S) x \equiv_p a \cdot s \} .
(a)(a) How many sets S{1,2,...,p1}S \subseteq \{ 1, 2,...,p-1 \} are there for which the sequence
S1,S2,...,Sp1S_1 , S_2 , ..., S_{p-1} contains exactly two distinct terms?
(b)(b) Determine all numbers kNk \in \mathbb{N} for which there is a set S{1,2,...,p1} S \subseteq \{ 1, 2,...,p-1 \} such
that the sequence S1,S2,...,Sp1S_1 , S_2 , ..., S_{p-1} contains exactly kk distinct terms.

[i]Proposed by Milan Basic and Milos Milosavljevic[/i]

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Given a prime number p>3 p > 3 , we need to analyze the sets S{1,2,,p1} S \subseteq \{1, 2, \ldots, p-1\} and the derived sets Sa S_a for aN a \in \mathbb{N} . The set Sa S_a is defined as:
Sa={x{0,1,2,,p1}(sS)xpas} S_a = \{ x \in \{0, 1, 2, \ldots, p-1\} \mid (\exists s \in S) \, x \equiv_p a \cdot s \}

### Part (a)
We need to determine how many sets S{1,2,,p1} S \subseteq \{1, 2, \ldots, p-1\} exist such that the sequence S1,S2,,Sp1 S_1, S_2, \ldots, S_{p-1} contains exactly two distinct terms.

1. Primitive Root Representation:
Suppose g g is a primitive root of p p . Any element aiS a_i \in S can be written as gbi(modp) g^{b_i} \pmod{p} . Thus, S={gb1,gb2,,gbt} S = \{g^{b_1}, g^{b_2}, \ldots, g^{b_t}\} .

2. Transformation of Sets:
For each i i , the set Si S_i can be written as:
Si={ia1,ia2,,iat}(modp) S_i = \{i \cdot a_1, i \cdot a_2, \ldots, i \cdot a_t\} \pmod{p}
Using the primitive root, this becomes:
Si={gb1+j,gb2+j,,gbt+j} S_i = \{g^{b_1+j}, g^{b_2+j}, \ldots, g^{b_t+j}\}
where gji(modp) g^j \equiv i \pmod{p} .

3. Distinct Sets Analysis:
We need S1,S2,,Sp1 S_1, S_2, \ldots, S_{p-1} to contain exactly two distinct sets. This implies that the sets Mj={b1+j,b2+j,,bt+j} M_j = \{b_1+j, b_2+j, \ldots, b_t+j\} (considered modulo p1 p-1 ) must form exactly two distinct sets.

4. Conditions for Two Distinct Sets:
- If t=p1 t = p-1 , then S={1,2,,p1} S = \{1, 2, \ldots, p-1\} , leading to S1=S2==Sp1 S_1 = S_2 = \ldots = S_{p-1} , which contradicts the requirement of having exactly two distinct sets.
- Therefore, tp1 t \neq p-1 .

5. Structure of Sets:
- We need M1,M2,,Mp1 M_1, M_2, \ldots, M_{p-1} to form exactly two distinct sets. This can be achieved if M1=M3==Mp2 M_1 = M_3 = \ldots = M_{p-2} and M2=M4==Mp1 M_2 = M_4 = \ldots = M_{p-1} .
- The sets M1 M_1 and M2 M_2 must be such that they repeat every two steps.

6. **Determining t t **:
- The sets M1 M_1 and M2 M_2 must be of the form {x,x+2,x+4,,x+2(t1)} \{x, x+2, x+4, \ldots, x+2(t-1)\} modulo p1 p-1 .
- This implies t=p12 t = \frac{p-1}{2} .

7. Conclusion:
- The sets S S that satisfy the condition are those where t=p12 t = \frac{p-1}{2} .
- There are exactly 2 such sets: {1,3,5,,p2} \{1, 3, 5, \ldots, p-2\} and {2,4,6,,p1} \{2, 4, 6, \ldots, p-1\} .

### Part (b)
We need to determine all numbers kN k \in \mathbb{N} for which there exists a set S{1,2,,p1} S \subseteq \{1, 2, \ldots, p-1\} such that the sequence S1,S2,,Sp1 S_1, S_2, \ldots, S_{p-1} contains exactly k k distinct terms.

1. **Partitioning into k k Groups**:
- We partition M1,M2,,Mp1 M_1, M_2, \ldots, M_{p-1} into k k groups G1,G2,,Gk G_1, G_2, \ldots, G_k such that each group contains identical sets.

2. Injective Mapping:
- Let c c be a number such that gcd(c,p1)=1 \gcd(c, p-1) = 1 . Define a map f:Mi1Mi1+cr f: M_{i_1} \rightarrow M_{i_1} + c \cdot r for r=1,2,,p2 r = 1, 2, \ldots, p-2 .
- Since gcd(c,p1)=1 \gcd(c, p-1) = 1 , cr c \cdot r will cover all residues modulo p1 p-1 .

3. Equal Group Sizes:
- The map f f ensures that each group Gi G_i has the same size.
- Therefore, G1=G2==Gk |G_1| = |G_2| = \ldots = |G_k| .

4. Divisibility Condition:
- Since the total number of sets is p1 p-1 , we have k(p1) k \mid (p-1) .

5. Conclusion:
- For any k k that divides p1 p-1 , there exists a set S S such that the sequence S1,S2,,Sp1 S_1, S_2, \ldots, S_{p-1} contains exactly k k distinct terms.

The final answer is:

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.