Hofstadter Q sequence by jingoro

b=c=1
300.times{|n|p c=$*[n]=n<2?1:$*[n-b]+$*[n-b=c]}

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

download

return to the top page