Quantrex Quantrex AcademyJEE · NEET · NDA PYQs with solutions Open app
Olympiad workbook
Exam
Olympiad workbook
Subject
IOQM
Chapter
Permutation and Combination

Olympiad workbook · IOQM · Permutation and Combination

A 1 × n rectangle (n ≥ 1) is divided into n unit (1 × 1) squares....

A 1×n1 \times n rectangle (n≥1)(n \geq 1) is divided into nn unit (1×1)(1 \times 1) squares. Each square of this rectangle is coloured red, blue or green. Let f(n)f(n) be the number of colourings of the rectangle in which there are an even number of red squares. What is the largest prime factor of f(9)/f(3)f(9) / f(3) ? (The number of red squares can be zero)

Correct answer

37

Step-by-step solution

f(n)={ }^n C_0 2^n+{ }^n C_2 2^{n-2}+{ }^n C_4 2^{n-4}+\ldots \ldots \ldots \ldots .NowNow(2+1)^{\mathrm{n}}={ }^{\mathrm{n}} \mathrm{C}_0 2^{\mathrm{n}}+{ }^{\mathrm{n}} \mathrm{C}_1 2^{\mathrm{n}-1}+{ }^{\mathrm{n}} \mathrm{C}_2 2^{\mathrm{n}-2}+{ }^{\mathrm{n}} \mathrm{C}_3 2^{\mathrm{n}-3}+...(i)...(i)(2-1)^n={ }^n C_0 2^n-{ }^n C_1 2^{n-1}+{ }^n C_2 2^{n-2}-{ }^n C_3 2^{n-3}+....(ii)add(1)and(2)add (1) and (2)3^n+1=2[nC02n+nC22n−2+nC42n−4+…………]\left[{ }^n C_0 2^n+{ }^n C_2 2^{n-2}+{ }^n C_4 2^{n-4}+\ldots \ldots \ldots \ldots\right] f(n)=3n+12f(n)=\frac{3^n+1}{2} f(9)=39+12,f(3)=33+12f(9)=\frac{3^9+1}{2}, f(3)=\frac{3^3+1}{2} f(9)f(3)=39+133+1=36−33+1=703=19×37\frac{f(9)}{f(3)}=\frac{3^9+1}{3^3+1}=3^6-3^3+1=703=19 \times 37 ⇒\Rightarrow Largest prime factor is 37 .
Practice Permutation and Combination on Quantrex Academy →

More from Permutation and Combination

All Permutation and Combination questions Full Permutation and Combination list All Olympiad workbook PYQs