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 :
JavaScript mandatory ! na !