Look I know this stuff. I know this function is periodic although the period is not defined. I just found it a little bizarre for such a function to be periodic. So I just wanted an expert to analyse it and sort of state what they think. Is that alright?
Maybe it would be good to start fresh, with your real question. Here is what I think you really wanted to ask:
f(x)={1,when x is rational
0,when x is irrational}
I know this function is periodic although the period is not defined. I found it a little bizarre for such a function to be periodic. What do you think about it?
Yes, it is indeed a bizarre example; this function, and others like it (sometimes called pathological functions), are given specifically for that purpose, to stretch our minds and help us see where we may have oversimplified images of concepts like periodicity.
So to start a conversation about it, I'd like to lead you through some thinking, rather than just tell you my off-the-cuff answer, so we can deal with your specific issues. That can begin with you showing how you proved that it is periodic, so we can then look at that together.
Note that the function actually has
many periods; when you say the period is not defined, you probably mean it has no
fundamental period. This may be a point on which it will be helpful for you to not only show your work, but also state the definitions you have been given, as this is one where books sometimes differ (though I would think that a textbook that gives this exercise would have given very careful definitions!). For example,
Wikipedia distinguishes between "a period" and "the fundamental period";
MathWords does not, so that its definition is deficient. It sounds like you used the latter approach, which is not appropriate for this exercise.
After we get past the basics, we can discuss what you see as bizarre, and then how that can help us correct misunderstandings of concepts like periodicity.