Summing the N series

Problem Name:
Summing the N series
Site:HackerRank
Links:
Tags:
Problem setters: