A beautiful use of Pythagorean triplet