view Test.hs @ 4411:b61754ffc7f3

<kmc> echo \'for w in $(words --eng-1M --esolangs 20); do echo -n "${w}coin "; done\' > bin/coins && chmod +x bin/coins
author HackBot
date Fri, 07 Feb 2014 22:00:48 +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