Let I &#x2286;<!-- ⊆ --> <mrow class="MJX-TeXAtom-ORD"> <mi mathvariant="double-struck">R

Akira Huang

Akira Huang

Answered question

2022-05-27

Let I R be an interval and f : I R a continuous function. We’ll say that f is totally rational if the following propositions are true for any x I:
1. If x Q then f ( x ) Q
2. If f ( x ) Q then x Q
A simple example of such a function is the identity function f(x)=x. More generally any function of the form f(x)=ax+b with a , b Q will do. Another class of functions that are totally rational are those of the form
f ( x ) = a x + b c x + d with   a , b , c , d Q   and   x d c .
Besides functions of these kinds (and piecewise combinations thereof) I cannot find any other examples of such functions. It is easy to see, for instance, that any higher-order polynomial or rational function will fail condition (2).
But do other totally rational functions exist?

Answer & Explanation

Stacy Johns

Stacy Johns

Beginner2022-05-28Added 8 answers

Here's a different type of example with the property:
f ( n + 0. a 1 a 2 a 3 ) = 0.0 a 1 0 a 2 0 a 3
or
f ( n + i 1 a i 10 i ) = i 1 a i 100 i
In other words, the function takes the decimal expansion of the fractional part and inserts a 0 between every digit. Or it writes it in base 10 and reads it again in base 100.
The function maps numbers with eventually periodic expansions (rational numbers) to numbers with eventually periodic expansions, and the converse is also true. Also it is continuous.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?