Step 1: Translate to algebra.
Let the triangular arrangement have \(n\) balls on a side.
Initial balls \(= T_n = \dfrac{n(n+1)}{2}\) (triangular number).
After adding \(669\) balls, we get a square with side \(s\).
Given: the square's side is 8 less than the triangle's side \(\Rightarrow s = n - 8\).
Step 2: Form the equation.
Square count \(= s^2 = (n-8)^2\).
But \(s^2 = T_n + 669 = \dfrac{n(n+1)}{2} + 669\).
Thus \((n-8)^2 = \dfrac{n(n+1)}{2} + 669\).
Step 3: Solve for \(n\).
\( (n^2 - 16n + 64) = \dfrac{n^2 + n}{2} + 669 \).
Multiply by 2: \(2n^2 - 32n + 128 = n^2 + n + 1338\).
\(\Rightarrow n^2 - 33n - 1210 = 0\).
Discriminant: \(D = (-33)^2 + 4\cdot1210 = 1089 + 4840 = 5929 = 77^2\).
\(\Rightarrow n = \dfrac{33 + 77}{2} = 55\) (positive root).
Step 4: Compute the initial triangular number and verify.
Initial balls \(= T_{55} = \dfrac{55 \cdot 56}{2} = 55 \cdot 28 = \boxed{1540}\).
Check: square side \(s = 55 - 8 = 47\) \(\Rightarrow s^2 = 2209\).
\(T_{55} + 669 = 1540 + 669 = 2209 = 47^2\) (verified).
In a special racing event, the person who enclosed the maximum area would be the winner and would get ₹ 100 every square metre of area covered by him/her. Jonsson, who successfully completed the race and was the eventual winner, enclosed the area shown in the figure below. What is the prize money won?
\(\textit{Note: The arc from C to D makes a complete semi-circle. Given: }\) $AB=3$ m, $BC=10$ m, $CD=BE=2$ m.

A lawn is in the form of an isosceles triangle. The cost of turfing on it came to $₹ 1{,}200$ at ₹ 4 per m$^2$. If the base be 40 m long, find the length of each side.
There are two integers 34041 and 32506, when divided by a three-digit integer $n$, leave the same remainder. What is the value of $n$?
What is the remainder when $1!+2!+3!+\cdots+100!$ is divided by $7$?
If $(67^{67}+67)$ is divided by $68$, the remainder is:
Find the remainder when \[6^{\underbrace{66\cdots6}_{100 \text{ times}}}\] is divided by 10.
Find the remainder when the $41$-digit number $1234\ldots$ is divided by $8$.