Polynomial Sequences by 51b

a[9];n,c,d;main(x,k,i,j){for(;d=~scanf("%d%c",a+n++,&c);n=c/d%5?!printf("%d\n",x):n)for(x=0,i=k=n,j=1;i;k=-k*i/++j)x+=k*a[--i];}

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

download

return to the top page