convert 9^6+2*9^4+30 to base 3