Find the sum of all positive integers $n$ such that when $1^3+2^3+3^3+\cdots +n^3$ is divided by $n+5$, the remainder is $17$.     .   .   .    .


Let's think step by step and output the final answer within \boxed{}.
user