Challenge problem

How does this input 1000000000000000, 10 result 31 as output?

Hey @VinayakSingh11111
31^10 closest to 1000000000000000