I'm trying to improve my math skills and I found this exercise in my book.
We have the following function: $$f: \mathbb R\to \mathbb R$$ $$f(x) = \frac {4x+1}3$$ I've been asked to find out one value for $x$ such that $f(x)$ is a whole number. I found some solutions and afterwards I determined that for all $$x_n=\frac {3^{2n}-1}4$$ where n is a natural number different from 0 , $f(x_n)$ is a whole number. I'm not 100% sure this is correct but it seems to work for all positive even powers of 3.
I've been trying to prove that this formula is corect, but I didn't succeed. Could anyone point me out on how to prove this kind of problems, and what to watch out for? Thanks.
$$ (4x+1)/3 = k $$
$$ (4x+1)=3k$$
$$ 4x=3k-1 $$
$$ x=(3k-1)/4$$
Thus for all integers $ k \ge 0 $ if you let $x=(3k-1)/4 $, you will get $f(x)=k$ which is a whole number.