Mercurial > repo
view Test.hs @ 4382:c64a2504001f
<boily> learn tetrapleur is the new name of quadrilaterals.
author | HackBot |
---|---|
date | Thu, 30 Jan 2014 19:06:08 +0000 |
parents | 1baee8e6ee55 |
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