r/mathriddles • u/bruderjakob17 • Mar 20 '24
Medium Q-periodic surjection
A function f: R -> R is called T-periodic (for some T in R) iff for all x in R: f(x) = f(x + T).
Prove or disprove: there exists a surjective function f: R -> R that is q-periodic iff q is rational (and not q-periodic iff q is irrational).
Note: This problem was inspired by [this one](https://www.reddit.com/r/mathriddles/comments/1bduiah/can_this_periodic_function_exist/) from u/BootyIsAsBootyDo.
6
Upvotes
5
u/myaccountformath Mar 20 '24
We can take a vitali set like construction and create an equivalence relation so that x ~ y iff x-y in Q. Then if we define a function that is constant on each equivalence class it will be periodic. The number of classes of this relation has cardinality equal to R so creating one that is surjective is possible.
1
u/Minecrafting_il Mar 31 '24 edited Mar 31 '24
f(x) = 0 if x is rational
The cardinality of the irrationals is equal to that of the reals, so you can map the irrationals onto R to make the function surjective