Add the whole numbers from 1 to 49 and the workbench answers 1225; multiply 35 by itself and it answers 1225 again. So one pile of dots is simultaneously a triangle 49 rows deep and a square 35 a side. The smallest non-trivial case is on the third link — 1 through 8 is 36, which is 6² — and after 1225 come 41 616 (= 204², the 288th triangular number) and 1 413 721 (= 1189²).
These cases are not found by searching, they are generated. Setting n(n + 1)/2 = m² and clearing the fraction gives (2n + 1)² − 8m² = 1, a Pell equation, whose solutions are the powers of 3 + √8. Taking (3 + √8)¹, ², ³, ⁴ gives x = 3, 17, 99, 577 and m = 1, 6, 35, 204, and since n = (x − 1)/2 that is exactly the list above. Each step multiplies the side by 3 + √8 ≈ 5.83, so the count of dots grows by a factor of about 34 — which is why the fourth case is already five digits.
Answer
1225
How to read it
The triangular sum 1 + 2 + … + 49. The second link squares 35, and the third is the smaller case 36 = 6².
Source
Square triangular numbers 1, 36, 1225, 41616, 1413721 … arise from the Pell equation (2n+1)² − 8m² = 1; distinct from Lucas's cannonball problem, which asks for a square pyramidal number and is solved only by 1 and 70²
Work it in the calculator
These links open the right calculator with this problem's numbers already typed in. The line above is what the screen should show — check it yourself.