1225 is the 49th triangular number and 35 squared

The same 1225 dots that fill a triangle 49 rows deep fill a square 35 a side.

Arithmetic and functions · Level: Classic result · Updated on 2026-11-10

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.

This is an independent third-party tool site. It is not affiliated with, sponsored by, or authorised by Casio, Texas Instruments or their distributors. Model names and product names are trademarks of their respective owners and appear here only to identify devices.

The keystroke sequences in these manuals were written from this site's own layout data — the same data the online calculator renders — plus publicly available product facts. Specifications and regional configurations are confirmed against the physical device and the manufacturer's most recent material.