Algebra · real student question

For which exponents n does a^n + b^n factor, and what is the factorisation?

Question

Determine when

an+bna^{n}+b^{n}

factors, and give the factorisation.

Step-by-step solution

  1. Test a=ba=-b to decide whether a+ba+b is a factor. By the factor theorem, (a+b)(a+b) divides the expression exactly when substituting a=ba=-b gives zero:

    (b)n+bn={bn+bn=0,n oddbn+bn=2bn0,n even(-b)^{n}+b^{n}=\begin{cases}-b^{n}+b^{n}=0,&n\text{ odd}\\ b^{n}+b^{n}=2b^{n}\neq0,&n\text{ even}\end{cases}

    So the parity of nn decides everything, and it does so for a single clean reason.

  2. Write the identity for odd nn. When nn is odd,

    an+bn=(a+b)(an1an2b+an3b2abn2+bn1)=(a+b)k=0n1(1)kan1kbka^{n}+b^{n}=(a+b)\left(a^{n-1}-a^{n-2}b+a^{n-3}b^{2}-\cdots-ab^{n-2}+b^{n-1}\right)=(a+b)\sum_{k=0}^{n-1}(-1)^{k}a^{n-1-k}b^{k}

    The alternating signs cause every middle term to cancel when the product is expanded. Verified exactly for n=3,5,7,9n=3,5,7,9 across 121121 integer pairs each ✓.

  3. See the small odd cases.

    a3+b3=(a+b)(a2ab+b2)a^{3}+b^{3}=(a+b)\left(a^{2}-ab+b^{2}\right)

    a5+b5=(a+b)(a4a3b+a2b2ab3+b4)a^{5}+b^{5}=(a+b)\left(a^{4}-a^{3}b+a^{2}b^{2}-ab^{3}+b^{4}\right)

    The cofactor always has nn terms, all of total degree n1n-1, and its signs alternate starting and ending with a plus.

  4. Understand the even case. For even nn there is no factorisation valid for all such nn: a2+b2a^{2}+b^{2} is irreducible over the reals, and numerically 22+32=132^{2}+3^{2}=13 while (2+3)(23)=5(2+3)(2-3)=-5 — so a+ba+b is genuinely not a factor ✓.

  5. Exploit odd factors hidden inside an even nn. If nn is even but divisible by an odd number m>1m>1, write n=mqn=m\cdot q and treat the expression as (aq)m+(bq)m\left(a^{q}\right)^{m}+\left(b^{q}\right)^{m}, which then factors by the odd rule. For n=6n=6 with m=3m=3, q=2q=2:

    a6+b6=(a2)3+(b2)3=(a2+b2)(a4a2b2+b4)a^{6}+b^{6}=\left(a^{2}\right)^{3}+\left(b^{2}\right)^{3}=\left(a^{2}+b^{2}\right)\left(a^{4}-a^{2}b^{2}+b^{4}\right)

    When nn is a power of two (2,4,8,2,4,8,\ldots) no odd factor exists, and an+bna^{n}+b^{n} is irreducible over Q\mathbb{Q} — although special forms such as a4+4b4a^{4}+4b^{4} still factor via Sophie Germain's identity.

Answer

n odd: an+bn=(a+b)k=0n1(1)kan1kbk; n even: no (a+b) factorn\text{ odd}:\ a^{n}+b^{n}=(a+b)\sum_{k=0}^{n-1}(-1)^{k}a^{n-1-k}b^{k};\ n\text{ even}:\ \text{no }(a+b)\text{ factor}

Need to solve a different problem like this? Open the solver →