Last visit was: 18 Nov 2025, 22:21 It is currently 18 Nov 2025, 22:21
Close
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.

Customized
for You

we will pick new questions that match your level based on your Timer History

Track
Your Progress

every week, we’ll send you an estimated GMAT score based on your performance

Practice
Pays

we will pick new questions that match your level based on your Timer History
Not interested in getting valuable practice questions and articles delivered to your email? No problem, unsubscribe here.
Close
Request Expert Reply
Confirm Cancel
User avatar
Bunuel
User avatar
Math Expert
Joined: 02 Sep 2009
Last visit: 18 Nov 2025
Posts: 105,355
Own Kudos:
Given Kudos: 99,964
Products:
Expert
Expert reply
Active GMAT Club Expert! Tag them with @ followed by their username for a faster response.
Posts: 105,355
Kudos: 778,103
 [17]
2
Kudos
Add Kudos
14
Bookmarks
Bookmark this Post
User avatar
Sayon
Joined: 08 Jan 2018
Last visit: 03 Jan 2023
Posts: 73
Own Kudos:
270
 [1]
Given Kudos: 374
Posts: 73
Kudos: 270
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
User avatar
Kinshook
User avatar
Major Poster
Joined: 03 Jun 2019
Last visit: 18 Nov 2025
Posts: 5,793
Own Kudos:
5,509
 [3]
Given Kudos: 161
Location: India
GMAT 1: 690 Q50 V34
WE:Engineering (Transportation)
Products:
GMAT 1: 690 Q50 V34
Posts: 5,793
Kudos: 5,509
 [3]
3
Kudos
Add Kudos
Bookmarks
Bookmark this Post
avatar
kitipriyanka
Joined: 26 Jan 2016
Last visit: 25 Nov 2019
Posts: 99
Own Kudos:
155
 [4]
Given Kudos: 61
Posts: 99
Kudos: 155
 [4]
3
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
For every positive integer x, f(x) represents the greatest prime factor of x!, and g(x) represents the smallest prime factor of 2^x+1. What is (g(f(12))?

Largest prime factor of f(12)=11
Now g(11)=2^11+1

Now, we know with power of 2...units digit can be 2,4,8,6
For 2^11, units digit would be 8.
2^3=8 and 8+1=9 which is divisible by 3
Similarly, 2^7=128 & 128+1=129 (again divisible by 3)

Hence based on pattern 2^11 +1 would be divisible by 3

Hence B
avatar
sanpreetsingh
Joined: 17 Apr 2018
Last visit: 11 Dec 2020
Posts: 45
Own Kudos:
59
 [4]
Given Kudos: 12
GRE 1: Q170 V160
GRE 1: Q170 V160
Posts: 45
Kudos: 59
 [4]
2
Kudos
Add Kudos
2
Bookmarks
Bookmark this Post
f(12) = largest prime divisor of 12! ==> 11

Now g(11) = smallest prime factor of 2^11 +1
2 cannot be the factor.

Try with 3
Remainder
(-1)^11 +1
-1+1=0
3 is smallest prime factor.

Hence, B is the answer.
User avatar
nick1816
User avatar
Retired Moderator
Joined: 19 Oct 2018
Last visit: 06 Nov 2025
Posts: 1,849
Own Kudos:
8,236
 [2]
Given Kudos: 707
Location: India
Posts: 1,849
Kudos: 8,236
 [2]
1
Kudos
Add Kudos
1
Bookmarks
Bookmark this Post
f(x) represents the greatest prime factor of x!.
12!=1*2*3*4*5......9*10*11*12
Distinct Prime factors of 12! are 2,3,5,7 and 11. Hence the greatest prime factor of 12! is 11

f(12)=11


g(x) represents the smallest prime factor of \(2^x+1\)
g(11) is the smallest prime factor of \(2^{11}+1\)

\(2^{11}\)+1 = 1 (Mod 2). Hence \(2^x+1\) is not divisible by 2.

\(2^{11}\)= \((-1)^{11}\) Mod 3
\(2^{11}+1\)= [(-1)+1] Mod 3
\(2^{11}\)+1= 0 Mod 3
\(2^{11}+1\) is divisible by 3. Hence the smallest prime factor of \(2^{11}+1\) is 3.

(g(f(12))=3

IMO B
User avatar
duchessjs
Joined: 14 Mar 2017
Last visit: 13 Mar 2022
Posts: 22
Own Kudos:
36
 [1]
Given Kudos: 42
Location: United States (VA)
GPA: 2.9
WE:Science (Pharmaceuticals and Biotech)
Products:
Posts: 22
Kudos: 36
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Question: For every positive integer \(x\), \(f(x)\) represents the greatest prime factor of \(x!\), and \(g(x)\) represents the smallest prime factor of \(2^x+1\). What is \((g(f(12))\)?

\(f(x) =\) The greatest prime factor of \(12!\)
\(f(12) =\) The greatest prime factor of \(12!\)
\(12! =\text{12 }\times\text{ }\)\(11\) \(\times\text{ 10 }\times\text{9 }\times\text{8 }\times\text{7 }\times\text{6 }\times\text{5 }\times\text{4 }\times\text{3 }\times\text{2 }\times\text{1 }\)
\(11\)\(=\) Greatest Prime Factor

\(g(x) =\) The smallest prime factor of \(2^x+1\)
\(g(\)\(11\)\() =2^{11}+1\)

Since \(2^{11}\) is a little much to calculate without a calculator, start small and look for a pattern.
\[
\begin{vmatrix*}
2^x & + & 1 & = & # & \to & \div 3?\\
2^1 & + & 1 & = & 3 & \to & Yes \\
2^2 & + & 1 & = & 5 & \to & No \\
2^3 & + & 1 & = & 9 & \to & Yes \\
2^4 & + & 1 & = & 17 & \to & No \\
2^5 & + & 1 & = & 33 & \to & Yes
\end{vmatrix*}
\\
\text{Pattern #1: Every answer is odd and therefore not divisible by 2.}\\
\text{Pattern #2: Every odd exponent of 2 with the addition of 1, equals an answer divisible by 3.}\\
\]
\(\text{Since }2^{11} \text{ has an odd exponent, the final answer will be divisible by 3.}\)
\(\text{Therefore, 3 is the smallest prime factor of } (2^{11}+1)\).

Correct Answer: B. 3
User avatar
Abhi077
User avatar
SC Moderator
Joined: 25 Sep 2018
Last visit: 18 Apr 2025
Posts: 1,084
Own Kudos:
2,403
 [1]
Given Kudos: 1,665
Location: United States (CA)
Concentration: Finance, Strategy
GPA: 3.97
WE:Investment Banking (Finance: Investment Banking)
Products:
Posts: 1,084
Kudos: 2,403
 [1]
1
Kudos
Add Kudos
Bookmarks
Bookmark this Post
For every positive integer xx, f(x)represents the greatest prime factor of x!, and g(x) represents the smallest prime factor of \(2^x\) + 1. What is (g(f(12))?

A. 2
B. 3
C. 5
D. 7
E. 11

Solution:
The above function is a compound function, in a compound function, the output of one function becomes the input of second function and so on. while solving this, the first function is the inner most function and the last function is the outermost.
We'll first solve the innermost function.

f(12) = 12! i.e 12 X 11 X 10 X 9 X 8 X 7 X 6 X 5 X 4 X 3 X 2 X 1

We observe the the greatest prime is 11.

We take 11 as the input for the outer most function, it will be g(11)

\(2^{11}\) + 1 = 2048 + 1
=2049.
We can try out the options and divide them by 2049, We see that the smallest prime factor is 3.

Hence the answer is B.
User avatar
bumpbot
User avatar
Non-Human User
Joined: 09 Sep 2013
Last visit: 04 Jan 2021
Posts: 38,583
Own Kudos:
Posts: 38,583
Kudos: 1,079
Kudos
Add Kudos
Bookmarks
Bookmark this Post
Hello from the GMAT Club BumpBot!

Thanks to another GMAT Club member, I have just discovered this valuable topic, yet it had no discussion for over a year. I am now bumping it up - doing my job. I think you may find it valuable (esp those replies with Kudos).

Want to see all other topics I dig out? Follow me (click follow button on profile). You will receive a summary of all topics I bump in your profile area as well as via email.
Moderators:
Math Expert
105355 posts
Tuck School Moderator
805 posts