Ian Macphail wrote:
put 100 into n
put n * (n + 1) * (2 * n - 2) / 6 into total

;)

_________________
Oops! forgot it was the square of the sum.

put 100 into n
put n * (n + 1) / 2 into a
put n * (n + 1) * (2 * n + 1) / 6 into b
put a * a - b into total
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to