Overview
As you may have experienced, factoring is key to simplifying an equation and make key conclusions about a problem. This is particularly true when the equation involves solely integers (also called diophantine equations).
However, we run into a caveat as some equations are difficult to factor into nice numbers in just their given state. For instance, it is not immediately obvious how to factor:
into a product of two expressions each involving integer coefficients. Simon's Favorite Factoring Trick (SFFT) is a technique used to accomplish exactly this. It involves adding a certain constant to an equation (and also subtracting it so that the equation does not change) in such a way that the equation can be factored.
Motivation
Again, consider the equation:
If we factor out from the first two terms, we get:
.
We are now quite close to being able to factor except for the fact that there is no other term. However, consider splitting into and :
By splitting the into and we are able to factor the equation! Generally, SFFT can be formalized as follows:
The equation: , can be factored as
We will now consider more examples into how even adding a constant can help factor such equations:
1)
Taking from the first two terms: . Now, we can easily factor by adding (and also subtracting it to preserve the original equation).
2)
Seeing only and terms, substitute and :
; Since we need a term and we have a term, we need a outside the parentheses, but this requires adding to both sides so we get:
Integers!
Perhaps one of the most prominent use-cases of SFFT is in dealing with integer equations or diophantines. For instance, if we are asked to find all integer solutions to a certain equation, we can isolate variables and factor them via SFFT and iterate over factor pairs that multiply to the constant on the other side of the equation. Consider one of our primary examples:
Factor by adding to both sides:
Now, we can find all factors pairs that multiply to :
In each pair, we can make be the left integer and be the right integer to get
This technique can be structured as follows to solve diophantines:
- Construct the equation if needed, i.e, convert word statement to equation
- Isolate all variables to one side
- Add a constant for SFFT and factor
- Iterate over factor pairs of the constant on the other side and isolate for the variables to find all valid pairs. Be careful to not include any extraneous solutions!
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
| AMC 10A | Easy | |||||
| AMC 10B | Easy | |||||
| AMC 12 | Easy | |||||
| AMC 12B | Easy | |||||
| AIME | Easy | |||||
Module Progress:
Join the AoPS Community!
Stuck on a problem, or don't understand a module? Join the AoPS community and get help from other math contest students.
