Initial commit

This commit is contained in:
2020-06-21 23:53:32 +02:00
commit 7ca64a7a82
67 changed files with 1698 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
counter = [0, 0]
for i in range(1, 1000001):
x=1
i2= i
while i>1:
if i%2==0:
i=i/2
x+=1
else:
i=3*i+1
x+=1
if x > counter[1]:
counter[0] = i2
counter[1] = x
print(counter)