view Test.hs @ 4444:07509b0153b6

<blotter> rm -f Test.o
author HackBot
date Mon, 17 Feb 2014 03:24:25 +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