00:00

Question 108·Hard·Nonlinear Functions

Function gg is defined by

g(x)=krx1,g(x)=k\,r^{x}-1,

where kk and rr are constants with r>0r>0. In the xyxy-plane, the graph of y=g(x)y=g(x) passes through the points (1,7)(1,7) and (3,31)(3,31). What is the value of rr?

(Express the answer as an integer)