Hofstadter Q sequence by teebee(I., S.)

enum H{H;int a[]=new int[301],i,p,r;{for(;p++<++i;)System.out.println(a[i]=r=i<2?1:a[p]+a[p=i-r]);}}

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

download

return to the top page