dxnge

11

Oct 19th, 2021
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. a = 0
  2. x = 81**20-(9**a)+50
  3. summa = 0
  4. while summa != 138:
  5.     while x != 0:
  6.         summa += x % 9
  7.         x = x//9
  8.     if summa != 138:
  9.         a += 1
  10.         x = 81 ** 20 - (9 ** a) + 50
  11.         summa = 0
  12. print(a)
Advertisement
Add Comment
Please, Sign In to add comment