Jack defines a function as where is the largest non-negative integer such that is an integer. He also defines
Trying various numbers in this function, he somehow ends up finding a positive integer such that He also notes that and are positive integers such that and
What is the value of
Inspired by a Collatz problem
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.
Note that f1 (3^a . 2^b - 1) = (3(3^a . 2^b - 1) + 1)/(2^n) = (3^(a+1) . 2^b - 2) / (2^n)
As long as b > 1, we know that (3^(a+1) . 2^b - 2) is even and (3^(a+1) . 2^b - 2) / 2 is odd.
Thus, we can see that f1 (3^a . 2^b - 1) = (3^(a+1) . 2^b - 2) / 2 = 3^(a+1) . 2^(b - 1) - 1.
If we apply it to the problem, we can see that q+r = 111.
Now that we know that gcd(q,r) > 8 and gcd (q,r) divides 111, we know that gcd (q,r) can only be 1, 3, or 37.