view Test.hs @ 4637:a04e3cd8408d

<oerjan> mv *elcom* bin
author HackBot
date Tue, 13 May 2014 11:02:27 +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