It seems to me that the functions $f(x) = \left(1 + \frac {1}{x}\right)^x$ and $g (x) = \left(1 + \frac {1}{x}\right)^{x+1}$, defined for every positive real $x$, assume simultaneously rational values if, and only if, $x$ is integer. I tested by assigning values to $x$, but I could not elaborate proof of this statement.
Suppose that f (x) and g (x) are rational. Let A, B, C and D be positive integers, with gcd (A, B) = gcd (C, D) = 1. Let f (x) = A / B and g (x) = C / D.
So:
C / D = (A / B) (1 + 1 / x) and, therefore, after the calculations:
x = (BC-AD) / AD
Well, now I would like to conclude that x is integer, but I do not know if it is possible.
I need help.