f=lambda n:n and 53*63**~-n-27*37**~-nfor n in (0,1,2,5,8,9): print(f(n))
Standard input is empty
0 26 2340 784304586 206202813193260 13057419408922746
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!