Skip to content

Instantly share code, notes, and snippets.

@juanmacuevas
Created April 26, 2015 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanmacuevas/31e28cb3b2ba11bff653 to your computer and use it in GitHub Desktop.
Save juanmacuevas/31e28cb3b2ba11bff653 to your computer and use it in GitHub Desktop.
1-2-5 series
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