view Test.hs @ 4503:c984c640ae0d

<oerjan> mv paste/paste.30692 paste/paste-30692.txt
author HackBot
date Wed, 26 Feb 2014 19:19:05 +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