fork download
  1. f=lambda x:reduce(int.__mul__,[2]+[f(y)for y in range(x-1)])+1
  2.  
  3. for i in range(6):
  4. print i, f(i)
Success #stdin #stdout 0s 9024KB
stdin
Standard input is empty
stdout
0 3
1 3
2 7
3 19
4 127
5 2395