a(n){return n?n-a(a(a(n-1))):0;}main(){printf("%d %d %d %d %d", a(0), a(1), a(5), a(15), a(20));}
Standard input is empty
0 1 4 10 14
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!