512 = 29.
512 has a representation as a sum of two squares: 512 = 162 + 162.
512 is the number of integer partitions of 34 into distinct parts.
512 is the smallest integer (except 1) that is the cube of the sum of its digits: 512 = (5 + 1 + 2)3.
512 is 1000000000 in base 2, 20000 in base 4, 1331 in base 7, 1000 in base 8, 242 in base 15, and 200 in base 16.
Source: Number Gossip