view Test.hs @ 4665:53cf0b04351c

<mroman> forget protocol:
author HackBot
date Wed, 11 Jun 2014 12:57:38 +0000
parents 7f957c1f4661
children
line wrap: on
line source

import Data.List(inits);main = let p = 1 : zipWith (+) (map (*4) p) (map (sum . zipWith (*) p . reverse) (inits p)) in print $ p !! 1000