Skip to content

Instantly share code, notes, and snippets.

@willthames
Created September 22, 2020 01:14
Show Gist options
  • Save willthames/7ee886a36d9ee36e5a32a9d4cb3cbd9d to your computer and use it in GitHub Desktop.
Save willthames/7ee886a36d9ee36e5a32a9d4cb3cbd9d to your computer and use it in GitHub Desktop.
Mathematics Calendar 2020/09/20
from __future__ import print_function
import math
god_list = [1]
def odd_divisor_detector(num):
while num > 1:
if num % 2 != 0:
return num
num = num / 2
return 1
for i in range(2, 1025):
answer = ((odd_divisor_detector(i)))
god_list.append(answer)
S = sum(god_list)
total = (3 * S - 2)
print(math.log(total)/math.log(2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment