Created
September 22, 2020 01:14
-
-
Save willthames/7ee886a36d9ee36e5a32a9d4cb3cbd9d to your computer and use it in GitHub Desktop.
Mathematics Calendar 2020/09/20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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