Problem Archive

Let $S(k)$ be the sum of three or more distinct positive integers having the following properties:

$S(4) = 4 + 2 + 1 = 7$
$S(10) = 9 + 6 + 4 = 19$
$S(12) = 12 + 6 + 3 = 21$
$S(1000) = 1000 + 900 + 810 + 729 = 3439$

Let $T(n) = \sum_{k=4}^n (-1)^k S(k)$.
$T(1000) = 2268$

Find $T(10^{17})$.

Solution
No solution yet. Write yours at solutions/s542.md.
Problems sourced from Project Euler · Non-commercial & educational use only · CC BY-NC-SA 4.0