I noticed that when I potentiate some numbers in Python, they are not the same after the inverse operation (root), for example:
>>> n = 28108234917303648763818746285031
>>> m = (n ** 5) ** (1 / 5)
>>> n == int(m)
False
>>> print(f'{m:.0f}')
28108234917303762475100368011264
Using math.pow(n ** 5, 1 / 5)
yields the same result. Any ideas on why? I'd also appreciate a solution to make this consistent in Python.