view Test.hs @ 4402:7080efff59f0

<int-e> ` echo \'A coonspirator is caterpillar silk wrapped in collaborators.\' > wisdom/coonspirator
author HackBot
date Thu, 06 Feb 2014 20:04:23 +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