The function $f(x) = x + 1$ generates the sequence
\[1, \ 2, \ 3, \ 4, \ \dots\]in the sense that plugging any number in the sequence into $f(x)$ gives the next number in the sequence.

What rational function $g(x)$ generates the sequence
\[\frac{1}{2}, \ \frac{2}{3}, \ \frac{3}{4}, \ \frac{4}{5}, \ \dots\]in this manner?
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
The function $f(x) = x + 1$ generates the sequence
\[1, \ 2, \ 3, \ 4, \ \dots\]in the sense that plugging any number in the sequence into $f(x)$ gives the next number in the sequence.

What rational function $g(x)$ generates the sequence
\[\frac{1}{2}, \ \frac{2}{3}, \ \frac{3}{4}, \ \frac{4}{5}, \ \dots\]in this manner?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
\frac{1}{2 - x}
The function $f(x) = x + 1$ generates the sequence
\[1, \ 2, \ 3, \ 4, \ \dots\]in the sense that plugging any number in the sequence into $f(x)$ gives the next number in the sequence.

What rational function $g(x)$ generates the sequence
\[\frac{1}{2}, \ \frac{2}{3}, \ \frac{3}{4}, \ \frac{4}{5}, \ \dots\]in this manner?
train