fork(2) download
  1. f=lambda n:0**n*2or~-f(n-1)*f(n-1)+1
  2.  
  3. print(f(0))
  4. print(f(1))
  5. print(f(2))
  6. print(f(3))
  7. print(f(4))
Success #stdin #stdout 0.01s 9024KB
stdin
Standard input is empty
stdout
2
3
7
43
1807