mpo126.py

Created by schraf

Created on March 06, 2024

213 Bytes


def mpo126(n):
 s, i, pr, p = 0, 1.5, 0, 5
 while n > p:
  s += (p - pr) / int(i)
  i += 1
  pr = p
  p = round(i ** 4)
 return s + (n - pr) / int(i)

for n in 422825625, 1e9, 1e10:
 print(mpo126(n))