The prime factorization of 512 is :
2
512
256
128
64
32
16
8
4
1
The prime factorization of 729 is :
3
729
243
81
27
9
=