What is the factored form of n^3+512 (please answer) picture provided

[tex] {n}^{3} + 512 \\ = {(n)}^{3} + {(8)}^{3} \\ by \: using \: {a}^{3} + {b}^{3} = (a + b)( {a}^{2} - ab + {b}^{2}) we \: \: \: get \\ = (n + 8)( {(n)}^{2} - n \times 8 + {(8)}^{2} ) \\ = (n + 8)( {n}^{2} - 8n + 64)[/tex]
Hope you could get an idea from here.
Doubt clarification - use comment section.