Computational Physics Lab I: Spring-2023 Challenge : Due Week 0
Triangle of squares of squares
S0 4243S
A smaller solution, with a perimeter of 12 squares.
You aim to build a triangle out of small squares like that in the figure on the right. The triangle is made out of three squares, each of which is composed of small square tiles identical in size. You will use small square tiles of two colors, and must use an equal number of each color. Your goal is to construct a triangle out of squares like this, such that the perimeter of the triangle is 1000 squares.
Write a program that will solve for and print out the lengths of the three squares that will allow you to construct this triangle with a perimeter of 1000. Please make your program also print the number of tiles of each color that will be needed.