Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Xi(a, x):
- if a > 1 and x > 0:
- count = 0
- while x % a == 0:
- x /= a
- count += 1
- return count
- else:
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement