8. For each natural $n$, which is not a perfect square, all values of the variable $x$ are calculated for which both numbers $x+\sqrt{n}$ and $x^{3}+$ param1 $\sqrt{n}$ are integers. Find the total number of such values of $x$.

| param1 | answer |
| :---: | :---: |
| 1524 |  |
| 1372 |  |
| 1228 |  |
| 1092 |  |
| 964 |  |
8. For each natural $n$, which is not a perfect square, all values of the variable $x$ are calculated for which both numbers $x+\sqrt{n}$ and $x^{3}+$ param1 $\sqrt{n}$ are integers. Find the total number of such values of $x$.

| param1 | answer |
| :---: | :---: |
| 1524 | 39 |
| 1372 | 33 |
| 1228 | 35 |
| 1092 | 27 |
| 964 | 29 |