http://www.perlmonks.org?node_id=399619


in reply to Re: Triangle Numbers Revisited
in thread Triangle Numbers Revisited

Quick question regarding screening out "a few factors which would make a solution impossible": Didn't Gauss prove Fermat's polygonal theorem for triangle numbers, showing that every positive integer can be represented as a sum of at most three triangle numbers? If so, how can there be cases for which a solution is impossible? (Or are you saying that the method you're using only works for some cases?)