Semi-triangular and also Square

Triangular numbers are 1, 3, 6, 10, 15 etc. Square numbers are 1, 4, 9, 16, 25 etc. Semi-triangular numbers are numbers of the form (2n+1)∗T, here (0 <= n < 8) and T is a triangular number. You will have to print all such numbers less than 16E34 or 160000000000000000000000000000000000, which are semi- triangular and also square. Input This program has no input. Output The output file contains several lines. Each line contains a number which is semi-triangular and also square. The numbers are printed in ascending order. Note: Remember that there are no input for this problem. The sample output is only a partial solution. Sample Input Sample Output 1 9 36 196 225 324 900 .... .... ..... ..... ..... .....