Mercurial > repo
view Test.hs @ 4707:bdede92d5f3f
<mroman> touch bin/analogy
author | HackBot |
---|---|
date | Thu, 31 Jul 2014 11:22:04 +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