the caveat that when x=1, instead of the given formula, you need to use
n(n+1)/2
as the general formula leads to a division by zero.
blackjack
flooble's webmaster puzzle