Skip to main content
2 of 2
deleted 284 characters in body
CodeGolf
  • 1.8k
  • 11
  • 16

Looking for some function

Is there a continuous function $F: R\to R$ such that $F$ is a surjection but not an injection, $F(Q)\subset Q$ and the restriction $F: Q\to Q$ is an injection, but not a surjection. Here $Q$ denotes the set of rational numbers. Thx for the reply!

CodeGolf
  • 1.8k
  • 11
  • 16