The Golden Ratio by flagitious

i,j,p=4e3,c,q;a[9999];main(){for(;i<499;printf(i++?"%d":"1.6",--a[i]))for(;q=p,a[p^=2000]<125;a[q]=c,a[i]++,a[q+2*i]++)for(j=504;j--;a[q+j]=c%10)c=a[p+j]+2*a[j-i&8191]+c/10;}

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

download

return to the top page