This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Maybe | |
import Data.Set as S | |
import Data.List as L | |
-- Problem 44 | |
-- Pentagonal item and list definitions. | |
pentagonal :: Integral a => a -> a | |
pentagonal n = n*(3*n - 1) `div` 2 |