summaryrefslogtreecommitdiff
path: root/progs/a164.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a164.py')
-rw-r--r--progs/a164.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/progs/a164.py b/progs/a164.py
new file mode 100644
index 0000000..fae83d9
--- /dev/null
+++ b/progs/a164.py
@@ -0,0 +1,4 @@
+import math
+def is_polite(n):
+ n = n + 1
+ return (int)(n+(math.log((n + math.log(n, 2)), 2))) \ No newline at end of file