This is LaTeX code:

[latex]
f(x)=4^{\left\lfloor\frac{2-thx}{1+thx}\right\rfloor-1}
[/latex]