Created
April 26, 2015 14:31
-
-
Save juanmacuevas/31e28cb3b2ba11bff653 to your computer and use it in GitHub Desktop.
1-2-5 series
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
def f1(i): | |
v = i%3 | |
if v == 0: | |
v=5 | |
return v * 10**((i-1)/3) | |
for i in range(1,100): | |
print i, f1(i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment