view Test.hs @ 4701:cc4530de268e

<oerjan> delquote 141
author HackBot
date Mon, 28 Jul 2014 04:14:58 +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