Polynomial Sequences by primo(recursion)

g=lambda a:a>[]and g([i-j for i,j in zip(a[1:],a)])+a[-1]
while 1:print g(map(int,raw_input().split()))

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

download

return to the top page