in reply to Re: Re: Triangle Numbers
in thread Triangle Numbers
This algorithm generates a sum of triangle numbers, but not necessarily a sum of _three_ triangle numbersEGAD! you're right. i've fixed it to generate a list of three or less (i think.) if you want precisely three, i'll have to do a little more thinking.
Update: unless of course zero is valid. i can't see how it's not, because 1 must be 1, 0, 0. so i'll update my code (once more) to reflect that.
~Particle ;Þ
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^3: Triangle Numbers
by Anonymous Monk on Sep 26, 2002 at 03:45 UTC | |
by Anonymous Monk on Dec 08, 2005 at 04:15 UTC |