/twelvedays

How many gifts are accumulated on each day of Christmas, according to the well-known carol.

Primary LanguageJavaScript

On the nth day of christmas you will have accumulated n*(n+1)*(n+2)/6 gifts.