Hofstadter Q sequence by inaniwa

Q[];main(i,p){for(;i<301;printf("%d\n",p=Q[i++]=i<3?:Q[i-p]+Q[i-Q[i-2]]));}

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

download

return to the top page