Pythagorean Triplets and Its Algebraic Patterns