729 is both a perfect cube and a perfect square