view Test.hs @ 4487:8b9db31bc694

<ion> printf \'%s\\n\' \'if [ "$#" -gt 0 ]; then printf \'\\\'\'%s\\n\'\\\'\' "$*"; else cat; fi | tr a-zA-Z n-za-mN-ZA-M\' | tee bin/rot13
author HackBot
date Sat, 22 Feb 2014 02:21:01 +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