Does a function with periodicity properties opposite to Dirichlet function exist

algebra-precalculusperiodic functions

Dirichlet function is known to be periodic and every rational number appears to be its period thus no fundamental period is present.On the other side every irrational number is not its period.

I'm interested whether there exists a function with the opposite properties considering periodicity:

$$
f(x) = f(x + r), \; r \in \mathbb I \\
f(x) \ne f(x+q), \; q \in \mathbb Q
$$

Where $\mathbb I$ is a set of irrational numbers and $\mathbb Q$ is a set of rational ones.

I'm looking for a way to either prove or disprove such a function may be defined. Proving Dirichlet function properties is pretty straight forward but i'm not even sure where to start from for the opposite case.

My try is below:

I started from trying out different values of $x$. For example let some $r\in \mathbb I$ and $x = 0$. Put $r = t$, that means $f(0) = f(t)$, on the other hand when $t \in \mathbb Q$, let $x = t$ and $r = \sqrt{2} – t$, therfore $f(t) = f(\sqrt{2})$. Eventually we got that $f(\sqrt{2}) = f(0)$. So for any irrational number the function is constant, and constant function does not have a fundamental period. But i'm not sure the above proves anything.

Best Answer

Suppose $r$ is irrational, and $q$ is rational, then $q-r$ is irrational and we have $$f(x)\neq f(x+q)=f\left((x+r)+(q-r)\right)=f(x+r)=f(x)$$so your function can't have the properties you want.

Related Question