QlarIITy

MathematicsJEE Main 2023 · 8 AprilInteger

The largest natural number nn such that 3n3^n divides 66!66! is _______

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. Each multiple of a power of a prime adds one more factor of the prime.

Concept refresher. The exponent of a prime pp in n!n! is

E=[np]+[np2]+[np3]+…E = \left[\dfrac{n}{p}\right] + \left[\dfrac{n}{p^2}\right] + \left[\dfrac{n}{p^3}\right] + \ldots

where the brackets denote the greatest integer.

Picture the situation. The factorial is the product of the numbers from 1 to 66. A factor of 3 comes from every third number, a second factor from every ninth number, and a third from every twenty-seventh. Adding up these contributions gives the total number of factors of 3 in the product.

Approach. Add the numbers of multiples of each power of 3 up to 66.

  1. Step 1: Count the multiples

    Up to 66 there are [663]=22\left[\dfrac{66}{3}\right] = 22 multiples of 3, [669]=7\left[\dfrac{66}{9}\right] = 7 multiples of 9 and [6627]=2\left[\dfrac{66}{27}\right] = 2 multiples of 27, and none of 81.

  2. Step 2: The exponent

    So the exponent of 3 in 66!66! is 22+7+2=3122 + 7 + 2 = 31, and the largest nn is 31.

Answer. 31

Sanity check. The numbers 27 and 54 each contribute three factors of 3, the five other multiples of 9 contribute two each, and the fifteen other multiples of 3 one each: 6 plus 10 plus 15 is 31.

Common wrong answers

  • 22: Counting only the multiples of 3 gives 22.
  • 29: Stopping at the multiples of 9 gives 29; the two multiples of 27 add one more each.

Key takeaway

The trap. Higher powers of the prime keep adding until they exceed the number.

How toppers think. They divide repeatedly by the prime: 66, then 22, then 7, then 2.

Remember. E=[np]+[np2]+…E = \left[\dfrac{n}{p}\right] + \left[\dfrac{n}{p^2}\right] + \ldots

More on Combinations