Some identical balls are arranged in rows to form an equilateral triangle. The first row consists of one ball, the second row consists of two balls and so on. If 99 more identical balls are added to the total number of balls used in forming the equilateral triangle, then all these balls can be arranged in a square whose each side contains exactly 2 balls less than the number of balls each side of the triangle contains. Then the number of balls used to form the equilateral triangle is:
n(n+1)2+99=(n−2)2
⇒n2+n+198=2n2−8n+8
⇒n2−9n−190=0
⇒n2−19n+10n−190=0
⇒n(n−19)+10(n−19)=0
⇒(n−19)(n+10)=0
⇒n=19 or −10
⇒n=19[∵n≠−10]
Therefore, number of balls used to form an equilateral triangle =19×202=190