Initial release
This commit is contained in:
12
Suite de Prouet-Thue-Morse.py
Normal file
12
Suite de Prouet-Thue-Morse.py
Normal file
@@ -0,0 +1,12 @@
|
||||
start = 2065
|
||||
stop = 2091
|
||||
|
||||
T = ["0","1"]
|
||||
|
||||
for n in range(1, stop//2+2):
|
||||
T.append(T[n])
|
||||
T.append(str(1-int(T[n])))
|
||||
|
||||
b=int("".join(T[start:stop+1]), 2)
|
||||
|
||||
print(b)
|
||||
Reference in New Issue
Block a user