This problem is a programming version of Problem 142 from projecteuler.net
Print triples of integers such that , , and , , , , , are all perfect squares.
The input contains a single integer, .
Output lines, where each line contains three integers separated by single spaces: , and .
472226642633 463877982992 452392145408
The problem asks us to output a single triple . The sample output gives:
You can verify that:
You can output other triples aside from this, as long as they satisfy the constraints.