507 = 3 × 132 = 232 - 23 + 1, which makes it a central polygonal number. The age Ming had before dying.