Problem 42321. given number is power of n or not?
38.11% Correct | 61.89% Incorrect
Last Solution submitted on Oct 21, 2022
James on 20 May 2015
Including a value where x<=15 and the formula is true (like the x=8; n=2 example in your problem description) will make this solution wrong.
Problem Recent Solvers75
Test if two numbers have the same digits
Sum of first n positive integers
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!