dxnge

11

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