Gottfried Sequence by leonid

s=-1
a=(s..1e5).map{|i|s+=(-1.0)**i/i-=~i}
eval"[#{[*$<]*'];p a['}]"

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

download

return to the top page