Magadha was the most powerful Mahajanapada, but its first capital was Rajagriha, and Ajatasatru was not the first king.