Prime factorising, we get,
512=2×2×2––––––––––×2×2×2––––––––––×2×2×2––––––––––
=8×8×8––––––––––.
Here, the factor 8 occur as triplet. Hence, it is a perfect cube.
Therefore, cube root of 512, i.e. 3√512=8.