Recursive Function by croyal

def f(n):\x0d
 if n==0:return(0)\x0d
 elif n==1:return(1)\x0d
 elif n==2:return(0)      \x0d
 else:return(f(n-1)*f(n-3)+1)\x0d
print f(37)\x0d

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page