How to work with big numbers in PHP?
such as
(6*27^0+17*27^1+11*27^2+18*27^3+25*27^4+4*27^5)^65537
You can go for BCMath to work with big numbers.