view Test.hs @ 4692:34da8e1b124d

<coppro> rm alise
author HackBot
date Thu, 24 Jul 2014 06:44:02 +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