solved num of powers