view Test.hs @ 4586:dd7f566433be

<oerjan> fetch http://oerjan.nvg.org/url
author HackBot
date Sat, 19 Apr 2014 23:50:25 +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