• + 0 comments

    Epic haskell slution

    main = interact $ unlines . map (show . (\n -> (3*n*n-n) `div` 2) . read) . tail . lines