I have to either give an example or show that no such function exists:(adsbygoogle = window.adsbygoogle || []).push({});

A real valued function f(x) continuous at all irrationals and at all the

integers, but discontinuous everywhere else.

I think such function exists and I would define it as follows:

f(x) = 0 if x is an irrational or an integer

1/q if x is rational (p/q) but not an integer.

This way the proof is similar to the case for continuous for irrationas, discontinuous everywhere else. Each rational can be viewed as a limit of a sequence of irrationals, right? So those rationals that have the same value as that sequence (integers in my case) will be continuous, those that don't won't be.

Does this sound right?

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Function continuous at irrationas and integers

Loading...

Similar Threads for Function continuous irrationas | Date |
---|---|

I Continuity of composition of continuous functions | May 9, 2017 |

I Differentiability of multivariable functions | Oct 28, 2016 |

B Continuous Function | Aug 31, 2016 |

I Continuous Functions with Piecewise Functions | Jun 18, 2016 |

I Continuity of a function implies its existence in the neighbourhood? | Jun 16, 2016 |

**Physics Forums - The Fusion of Science and Community**