n² is an n×n square of dots · n³ is an n×n×n cube of blocks
Set n with − and +, then flip between the flat n×n square and the n×n×n cube.
Side length n
3 × 3 = 9 dots
Result
32 = 9
Square numbers
Cube numbers