Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. def Xi(a, x):
  2. if a > 1 and x > 0:
  3. count = 0
  4. while x % a == 0:
  5. x /= a
  6. count += 1
  7. return count
  8. else:
  9. return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement