Prime's Prime

Let s ( n ) s(n) denotes the largest prime factor of n n and t ( n ) t(n) denotes the smallest prime factor of n n . How many possible value of n { 1 , 2 , 3 , 4 , 5 , , 100 } n \in \big \{ 1,2,3,4,5, \cdots,100 \big\} that satisfy t ( n ) + 1 = s ( n ) t(n) + 1 = s(n) ?


Try another problem on my new set! Warming Up and More Practice


The answer is 9.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Fidel Simanjuntak
Apr 30, 2017

Given that t ( n ) + 1 = s ( n ) s ( n ) t ( n ) = 1 t(n) +1 = s(n) \rightarrow s(n) - t(n) =1 .

Since both t ( n ) t(n) and s ( n ) s(n) are prime, then the only possible value of t ( n ) t(n) and s ( n ) s(n) is s ( n ) = 3 ; t ( n ) = 2 s(n) = 3 \space ; \space t(n) = 2 .

We can clearly see that n n is in a form of 2 p × 3 q 2^p \times 3^q , for some positive integer p , p, and q q .

For p = 1 p =1 , then q = { 1 , 2 , 3 } q = \big\{ 1,2,3 \big\} .

For p = 2 p= 2 , then q = { 1 , 2 } q = \big\{ 1,2 \big\} .

For p = 3 p = 3 , then q = { 1 , 2 } q = \big\{ 1,2\big\} .

For p = 4 p = 4 , then q = 1 q = 1 .

For p = 5 p =5 , then q = 1 q = 1 .

Hence, there are 9 9 possible value of n n .

Alternative 2

We know that n = 2 p × 3 q n = 2^p \times 3^q ; then n n is/are the multiple of 2 × 3 = 6 2 \times 3 = 6 that is/are not divisible by r r , where r r is/are positive prime number that satisfy r < 100 2 × 3 r < \left\lfloor \dfrac{100}{2 \times 3} \right\rfloor .

Then, we have r = ( 5 , 7 , 11 , 13 ) r = ( 5,7,11,13) .

Let S n S_n denotes the number of possible value of n n that satisfy t ( n ) + 1 = s ( n ) t(n) +1 = s(n) . Then,

S n = 100 6 ( 100 2 × 3 × 5 + 100 2 × 3 × 7 + 100 2 × 3 × 11 + 100 2 × 3 × 13 ) = 16 ( 3 + 2 + 1 + 1 ) = 9 \begin{aligned} S_n & = \left\lfloor \dfrac{100}{6} \right\rfloor - \left( \left\lfloor \dfrac{100}{2 \times 3 \times 5} \right\rfloor + \left\lfloor \dfrac{100}{2 \times 3 \times 7} \right\rfloor + \left\lfloor \dfrac{100}{2 \times 3 \times 11} \right\rfloor + \left\lfloor \dfrac{100}{2 \times 3 \times 13} \right\rfloor \right) \\ & = 16 - (3+2+1+1) = 9 \end{aligned} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...