Jeevan posted a puzzle. A matrix N x M containing integers is given. Isosceles triangles can be composed from elements in matrix by selecting elements in each row with formu