Given a prime number p>3, we need to analyze the sets S⊆{1,2,…,p−1} and the derived sets Sa for a∈N. The set Sa is defined as:
Sa={x∈{0,1,2,…,p−1}∣(∃s∈S)x≡pa⋅s}
### Part (a)
We need to determine how many sets S⊆{1,2,…,p−1} exist such that the sequence S1,S2,…,Sp−1 contains exactly two distinct terms.
1. Primitive Root Representation:
Suppose g is a primitive root of p. Any element ai∈S can be written as gbi(modp). Thus, S={gb1,gb2,…,gbt}.
2. Transformation of Sets:
For each i, the set Si can be written as:
Si={i⋅a1,i⋅a2,…,i⋅at}(modp)
Using the primitive root, this becomes:
Si={gb1+j,gb2+j,…,gbt+j}
where gj≡i(modp).
3. Distinct Sets Analysis:
We need S1,S2,…,Sp−1 to contain exactly two distinct sets. This implies that the sets Mj={b1+j,b2+j,…,bt+j} (considered modulo p−1) must form exactly two distinct sets.
4. Conditions for Two Distinct Sets:
- If t=p−1, then S={1,2,…,p−1}, leading to S1=S2=…=Sp−1, which contradicts the requirement of having exactly two distinct sets.
- Therefore, t=p−1.
5. Structure of Sets:
- We need M1,M2,…,Mp−1 to form exactly two distinct sets. This can be achieved if M1=M3=…=Mp−2 and M2=M4=…=Mp−1.
- The sets M1 and M2 must be such that they repeat every two steps.
6. **Determining t**:
- The sets M1 and M2 must be of the form {x,x+2,x+4,…,x+2(t−1)} modulo p−1.
- This implies t=2p−1.
7. Conclusion:
- The sets S that satisfy the condition are those where t=2p−1.
- There are exactly 2 such sets: {1,3,5,…,p−2} and {2,4,6,…,p−1}.
### Part (b)
We need to determine all numbers k∈N for which there exists a set S⊆{1,2,…,p−1} such that the sequence S1,S2,…,Sp−1 contains exactly k distinct terms.
1. **Partitioning into k Groups**:
- We partition M1,M2,…,Mp−1 into k groups G1,G2,…,Gk such that each group contains identical sets.
2. Injective Mapping:
- Let c be a number such that gcd(c,p−1)=1. Define a map f:Mi1→Mi1+c⋅r for r=1,2,…,p−2.
- Since gcd(c,p−1)=1, c⋅r will cover all residues modulo p−1.
3. Equal Group Sizes:
- The map f ensures that each group Gi has the same size.
- Therefore, ∣G1∣=∣G2∣=…=∣Gk∣.
4. Divisibility Condition:
- Since the total number of sets is p−1, we have k∣(p−1).
5. Conclusion:
- For any k that divides p−1, there exists a set S such that the sequence S1,S2,…,Sp−1 contains exactly k distinct terms.
The final answer is: