Hofstadter Q sequence by nn

for(q=[i=m=n=1];i<301;n=q[i++]=q[i-m]+q[i-(m=n)])println m

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

download

return to the top page