Write a number that represents triangular as well as square patterns.
There is a number 36 that can be represented as square and triangle.
Triangle pattern.
....................................
Square