Decomposition as a sum of triangular numbers

This script writes N as a sum of three triangular numbers by brute force.
A triangular number is T(n) = n(n+1)/2
Number :

 

Home Arithmetic Geometric Misc Topics Scripts Games Exercices Mail Version Française Previous topic Next topic