You are viewing a single comment's thread. Return to all comments →
Epic haskell slution
main = interact $ unlines . map (show . (\n -> (3*n*n-n) `div` 2) . read) . tail . lines
Seems like cookies are disabled on this browser, please enable them to open this website
Pentagonal Numbers
You are viewing a single comment's thread. Return to all comments →
Epic haskell slution