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

UKMT Algebraic Proof: Why n to the Fourth Plus Four Is Composite for n Greater Than One

For a positive integer n greater than one, show that n to the fourth plus four cannot be prime. Small examples may suggest the pattern, but an answer needs factors that work for every allowed n. This original UKMT-style proof exercise develops the factorisation and then checks the size of its factors; a factorisation containing a factor equal to one would not establish compositeness.

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

Insert a term that creates a square

The expression n to the fourth plus four is close to the square of n squared plus two. That square expands to n to the fourth plus four n squared plus four. Subtracting four n squared restores the original expression. Thus the target becomes the square of n squared plus two minus the square of two n.

Use the difference-of-squares identity

The factors are n squared minus two n plus two and n squared plus two n plus two. Multiplying them is another way to check the identity: the middle cross terms cancel and the result is n to the fourth plus four. The added and subtracted term was a tool for finding factors, not a change to the problem.

Prove that the smaller factor is nontrivial

The first factor equals the square of n minus one plus one. Since n is an integer greater than one, n minus one is at least one, so this factor is at least two. Merely writing it as a positive expression would not be enough, because a positive integer factor could still be one.

Check the second factor and conclude

The second factor equals the square of n plus one plus one, which is certainly greater than one for the allowed n. Both factors are integers, so their product expresses the target as a product of two integers greater than one. This is precisely the required compositeness conclusion, without assuming the factors themselves must be prime.

Test the excluded boundary value

At n equal to one, the original expression is five. The first factor is one and the second is five, so the identity remains true but no longer proves a nontrivial factorisation. This explains why the hypothesis greater than one matters. At n equal to two, the factors are two and ten, giving twenty as a quick numerical check.

Keep the scope of the identity visible

The proof uses integer n and the stated lower bound. It is not an argument that every expression resembling a sum of squares is composite, nor does it classify all values of the two factors. Official UKMT resources are linked for further independent practice. This explanation is original algebraic proof training and does not reproduce an official question or claim a particular current competition level.

Continue reading: UKMT Proof Practice: Integer Polynomial Values Remember the Difference Between Their Inputs.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send UKMT-S2-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-S2-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