Help for this page

Select Code to Download


  1. or download this
    8M + 3 = (2A+1)^2 + (2B+1)^2 + (2C+1)^2
    then
    M = trinum(A) + trinum(B) + trinum(C)
    
  2. or download this
    # Find a triangle-number decomposition by converting to
    # a Diophantine squares problem.
    
    ...
          exit(0);
       }
    }