Given any integer $z$, what are all the integer solutions possible that create a square prism of length $x$ with a height of length $y$? For example, if $z=25$, some possibles solutions are a $5\times 5$ square prism with a height of $1$ or a square prism that is $1\times 1$ with a height of $25$.
Would the formula $yx^2=z$ be a way to figure this out and would this be a diophantine equation?