Mercurial > repo
view Test.hs @ 4699:cd658f881a6a
<elliott> ` rm bin/{node,ello}
author | HackBot |
---|---|
date | Sun, 27 Jul 2014 14:43:27 +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