# Maximum power for the given value

Find Perfect Square/Maximum power for the given value. Value can vary from negative Int. to positive Integer and Rational/Decimal Numbers.

(For example:- 625 the value is 4, {5 to the power 4, so 4 would be answer})

GCD/HCD Logic if there would be 2 different powers (For Example:- 75, it would be 3 to the power 1 and 5 to the power two, so in this case find GCD to get value so 1 would be the answer.)

For 0.5 it would be 5/10= ½ , so Power would be 2...

By: StackOverFlow - Friday, 9 November

# Related Posts

- Older News
- How to add power function to sigma StackOverFlow (3 days ago) - i've written this code, that's compute the sum of the positive divisors, and all the values hove to be to the power of a.For instance sigma(0,14) = 1^0 + 2^0...