The answer online is
So I assumed my solution was wrong until I expanded my solution of 1 + (n*(n+1)) / 2
= 1 + (n^2 + n) / 2 #algebra
= (n^2 + n + 2) / 2 #put the one in the fraction
So, YAY!
Unscholarly Sources:
http://en.wikipedia.org/wiki/Lazy_caterer's_sequence
No comments:
Post a Comment