To solve the problem, we need to find all positive integers n such that the average of all positive divisors of n is 42. We denote the sum of all positive divisors of n by σ(n) and the number of positive divisors of n by d(n). The average of all positive divisors of n is given by:
A(n)=d(n)σ(n)
Given A(n)=42, we have:
d(n)σ(n)=42⟹σ(n)=42⋅d(n)
We need to find all n such that σ(n)=42⋅d(n). We will consider different cases based on the number of divisors d(n).
1. **Case d(n)=2**:
- If n has exactly 2 divisors, n must be a prime number. Let n=p, where p is a prime.
- Then, σ(n)=1+p and d(n)=2.
- We need 1+p=42⋅2=84, so p=83.
- Thus, n=83.
2. **Case d(n)=3**:
- If n has exactly 3 divisors, n must be the square of a prime number. Let n=p2, where p is a prime.
- Then, σ(n)=1+p+p2 and d(n)=3.
- We need 1+p+p2=42⋅3=126.
- Solving p2+p+1=126 gives no integer solutions for p.
3. **Case d(n)=4**:
- If n has exactly 4 divisors, n can be either p3 or p1p2, where p and p1,p2 are primes.
- For n=p1p2:
- σ(n)=(1+p1)(1+p2) and d(n)=4.
- We need (1+p1)(1+p2)=42⋅4=168.
- Possible pairs (1+p1,1+p2) are (3,56),(4,42),(6,28),(7,24),(8,21),(12,14).
- Valid pairs are (3,56) and (12,14):
- For (3,56), p1=2 and p2=55 (not prime).
- For (12,14), p1=11 and p2=13, so n=11⋅13=143.
4. **Case d(n)=6**:
- If n has exactly 6 divisors, n can be p5 or p12p2, where p and p1,p2 are primes.
- For n=p12p2:
- σ(n)=(1+p1+p12)(1+p2) and d(n)=6.
- We need (1+p1+p12)(1+p2)=42⋅6=252.
- Possible pairs (1+p1+p12,1+p2) are (3,84),(4,63),(6,42),(7,36),(9,28),(12,21).
- Valid pairs are (3,84) and (12,21):
- For (3,84), p1=2 and p2=83, so n=22⋅83=332.
- For (12,21), p1=3 and p2=20 (not prime).
5. **Case d(n)=8**:
- If n has exactly 8 divisors, n can be p7 or p13p2 or p1p2p3, where p and p1,p2,p3 are primes.
- For n=p1p2p3:
- σ(n)=(1+p1)(1+p2)(1+p3) and d(n)=8.
- We need (1+p1)(1+p2)(1+p3)=42⋅8=336.
- Possible triplets (1+p1,1+p2,1+p3) are (2,7,24),(3,4,28),(3,6,14),(4,6,14).
- Valid triplets are (2,7,24) and (3,6,14):
- For (2,7,24), p1=1 (not prime).
- For (3,6,14), p1=2, p2=5, p3=13, so n=2⋅5⋅13=130.
Summarizing all valid solutions:
- n=83,143,332,130.
The sum of all solutions is:
83+143+332+130=688