Quantrex Quantrex AcademyJEE · NEET · NDA PYQs with solutions Open app
Olympiad workbook
Exam
Olympiad workbook
Subject
IOQM
Chapter
Basics of Mathematics

Olympiad workbook · IOQM · Basics of Mathematics

For each positive integer n , consider the highest common factor h_...

For each positive integer n , consider the highest common factor hn\mathrm{h}_{\mathrm{n}} of the two numbers n!+1\mathrm{n}!+1 and (n+1)!(n+1)!. For n<100n < 100, find the largest value of hnh_n.

Correct answer

97

Step-by-step solution

n!+1\mathrm{n}!+1 is not divisible by 1,2,…,n1,2, \ldots, \mathrm{n} (n+1)(\mathrm{n}+1) ! is divisible by 1,2,…,n1,2, \ldots, \mathrm{n} so HCF≥n+1\mathrm{HCF} \geq \mathrm{n}+1 also ( n+1\mathrm{n}+1 )! is not divisible by n+2,n+3…\mathrm{n}+2, \mathrm{n}+3 \ldots. so HCF can be n+1\mathrm{n}+1 only Let us start by taking n=99\mathrm{n}=99 ⇒99!+1\Rightarrow 99!+1 and 100 ! HCF=100\mathrm{HCF}=100 is not possible as 100 divides 99 ! composite number will not be able to make it so let us take prime i.e. n=97\mathrm{n}=97 now 96 ! +1 and 97 ! are both divisible by 97 so HCF=97\mathrm{HCF}=97 (by Wilson's theorem (p−1)!+1(p-1)!+1 ) is divisible by pp )
Practice Basics of Mathematics on Quantrex Academy →

More from Basics of Mathematics

All Basics of Mathematics questions Full Basics of Mathematics list All Olympiad workbook PYQs