summaryrefslogtreecommitdiff
path: root/progs/a164.py
blob: fae83d9ab64071b3ca7bcb703ad5dc8be577684a (plain)
1
2
3
4
import math 
def is_polite(n): 
	n = n + 1
	return (int)(n+(math.log((n + math.log(n, 2)), 2)))