This is my code so far:
For[i=2, i<10, i++, Solve[x^i == x+1 && x >0]]
I would like to sum up all the x values that it outputs. How can I do so?
Quick answer
Total@Table[ x /. Solve[x^i == x + 1 && x > 0][[1]] , {i, 2, 9}]//N
(*9.76035*)
Sum[x /. Solve[x^i == x + 1 && x > 0][[1]], {i, 2, 9}] // N
$\endgroup$
Total@Table[x /. First@NSolve[x^i == x + 1 && x > 0], {i, 2, 9}]
$\endgroup$