Problem:
Let f(n) and g(n) be functions satisfying
f(n)={nβ1+f(n+1)β if nβ is an integer otherwise β
and
g(n)={nβ2+g(n+2)β if nβ is an integer otherwise β
for positive integers n. Find the least positive integer n such that g(n)f(n)β=74β.
Solution:
Notice that f(n) is obviously nβ when n is a perfect square, but for n not being a perfect square consider bounding w2<n<(w+1)2.
In this case, notice that we have that f(n)=1+f(n+1) for non squares and so we can rewrite
Intuitively, think about each f(n)=1+f(n+1) as a "step". From going from (w+1)2 to n there are (w+1)2βn steps, and if this number of steps is even, g(n) will immediately equal f(n).
So for this ratio to exist, we need that (w+1)2 and n to have different parities, and more specifically for w and n to have the same parities.
After establishing this, let's find g(n).
Let's bound n but a little differently, in particular w2<n<(w+2)2.
Then we'd have that
g(n)=g(w+2)+(w+2)2βn=w2+5w+6βn
Now, after having our initial ratio, namely
g(n)f(n)β=74β
we rewrite this as
7f(n)=4g(n)β7(w2+3w+2βn)=4(w2+5w+6βn)
3w2+wβ10=3n
Notice that the right hand side is divisible by 3, so we need 3w2+wβ10β‘0mod3βwβ‘1mod3.
Along with this, since our intial bound was n>w2 notice that 3w2>3n and we need that wβ10>0βw>10.
For two solutions that work that have the same parity, we see that regardless of if w is odd or even, that 3w2+wβ10 is even and so since that would make n even w has to be even and the smallest solution that works is w=16
which yields n = \boxed