Created
November 27, 2016 01:41
-
-
Save AndreUltrasi/0d94ef2905100c1def3b0d8eb52a4857 to your computer and use it in GitHub Desktop.
série 1/4+1/4**2...=1/3
This file contains hidden or 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
#1/4+1/4*2....=1/3 | |
x=0.25 | |
n=2 | |
while n!=30: | |
print(x,n) | |
x=x + 1/4**n | |
n+=1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment