An arithmetic sequence of 10 positive integers has first term a and common difference d. The terms are a, a + d, a + 2d, ..., a + 9d.
The fourth term is 30, so a + 3d = 30. This gives a = 30 − 3d.
Another term equals 42, so for some integer k between 0 and 9, a + kd = 42.
Substitute a = 30 − 3d into this equation:
(30 − 3d) + kd = 42
30 + (k − 3)d = 42
(k − 3)d = 12
Since k is an integer, k − 3 must be a divisor of 12. The possible values are ±1, ±2, ±3, ±4, ±6, ±12.
This is a crucial point: d need not be positive!
This gives valid k values of 4, 5, 6, 7, 9 for positive d, and 2, 1, 0 for negative d.
Now compute a = 30 − 3d.
For positive d:
d = 6 → a = 12
d = 4 → a = 18
d = 3 → a = 21
d = 2 → a = 24
All of these produce sequences of positive integers.
For negative d, we must ensure all 10 terms are positive by checking that a + 9d > 0.
d = −12 → a = 66 → last term = −42 (invalid)
d = −6 → a = 48 → last term = −6 (invalid)
d = −4 → a = 42 → last term = 6 (valid)
So the valid first terms are 12, 18, 21, 24, and 42.
Their sum is 12 + 18 + 21 + 24 + 42 = 117.
The answer is 117.