Hofstadter Q sequence by hallvabo

q=1,
n=0;exec'v=q[n-1];print v;n+=1;q+=q[n-q[n-1]]+q[n-v],;'*300

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

download

return to the top page