Farey sequence by *yuko*

input""n:j=1:k=n:do?i,"/",j:m=n+j:i=int(i*k/j)+(j-i)^0:j=k:k=n-mod(m,k)loop

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

download

return to the top page