From: Ralph Shnelvar Date: 2009-11-26T02:07:01+09:00 Subject: Re: Ruby internals & other questions >> >> (2) What's the best Ruby way to do a sum from 1 to 1_000_000 MLK> Gauss's method: MLK> def triangular(n) MLK> (n + 1) * n / 2 MLK> end Ugh ... you _know_ that is not what I meant!