For positive numbers , define to be one more than the largest proper divisor of . (For example, , as the proper divisors of are , and .) For how many in the range do we have ?
This problem is a part of Tessellate S.T.E.M.S. (2019)
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- g ( n ) = 2 iff n is a prime number.
2- g ( g ( p ) ) = g ( 2 ) = 2 , when p is a prime number. Therefore, all the prime numbers, from 2 to 1 0 0 are part of the solution. there are 2 5 of them.
3- If n = a b is a composite number, with b ≥ a and b being the greatest proper divisor of n , then g ( g ( a b ) ) = g ( b + 1 ) . Then, g ( b + 1 ) would be equal to 2 , if b + 1 is a prime (according to 1). Therefore b = p − 1 , where p is a prime number.
g ( g ( a ( p − 1 ) ) )
notice that p − 1 is an even number. So, a cannot be greater than 2 , for p − 1 has a factor of 2 and, consequently p − 1 cannot become the greatest proper divisor. So, a = 2
g ( g ( 2 ( p − 1 ) ) ) = g ( p ) = 2
there would be 1 4 prime numbers that satisfy 2 < 2 ( p − 1 ) ≤ 1 0 0 .
the final solution is 2 5 + 1 4 = 3 9