UKMT Number Theory: An Odd Square Can Identify a Triangular Number

A nonnegative integer k is triangular when it can be written as n times n plus one divided by two for a nonnegative integer n. Show that k is triangular exactly when eight k plus one is an odd perfect square. This original proof exercise asks for a necessary and sufficient condition, so the reverse implication matters as much as the familiar expansion.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send UKMT-S3-1126 and tell us your school year and question.

Start from a triangular representation

If k equals n times n plus one divided by two, then eight k plus one equals four n squared plus four n plus one. That expression is the square of two n plus one. Since two n plus one is an odd integer, every triangular number passes the proposed test.

Do not stop after the forward direction

The calculation so far says that a triangular number produces an odd square. It has not yet proved that every k passing the square test is triangular. A condition that all valid examples satisfy can still admit extra numbers unless the converse is established. State which direction is currently being proved.

Recover the index from an odd square

Suppose eight k plus one equals r squared for an odd positive integer r. Define n as r minus one divided by two. Because r is odd, n is an integer, and because r is positive, n is nonnegative. Expanding n times n plus one divided by two gives r squared minus one divided by eight, which is k.

Check a positive example and a rejection

For k equal to fifteen, eight k plus one is one hundred twenty-one, or eleven squared. The recovered index is five, and five times six divided by two is fifteen. For k equal to fourteen, the test gives one hundred thirteen, which lies strictly between ten squared and eleven squared, so fourteen is not triangular.

Include the zero boundary and uniqueness

When k is zero, the square is one and the recovered index is zero, so the boundary satisfies the definition. Using the positive square root gives the unique nonnegative index. A negative square root should not be turned into an extra nonnegative solution without checking the definition.

Separate exact squares from rounded roots

A decimal approximation near an integer is not proof of a perfect square. For large examples, compare exact integer products or verify the proposed root by squaring. Official UKMT resources are linked for further independent practice; this is original elementary proof training, not an official question, a current-level claim or a guarantee that pattern recognition alone is a complete solution.

Continue reading: UKMT Proof Practice: Every Odd Square Leaves Remainder One Modulo Eight.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-S3-1126. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send UKMT-S3-1126.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service