I'm struggling a bit to understand two of the problems we were given in class. Could someone look over my work and maybe give me a few hints?
State whether the following languages are regular or not and prove your answer. $$\{0^n1^m \mid m \geq 0 \text{ and } n = 2m+1\}$$ $$\{0^a1^b0^c \mid 0 \leq a \leq b \leq c \leq 100\}$$
The first one appears to me as non-regular as $m$ is not finite. Then to prove that it is not regular, I used the pumping lemma method with $0^P1^\frac{P-1}{2}$ as the string.
For the second language, I'm not really sure if it is regular or not. I can't come up with a DFA/NFA/RegExp for it nor can I figure out how to apply the pumping lemma method to it. Is it safe to use $0^P1^P0^P$ as the string and say that if $Y$ where $Y = 0^k, 1 \leq k \leq P$ is appears more than once (i.e. $XYYZ$), the resulting string is not in the language and thus the language is not regular?
Edit: I'm sorry if this question seems elementary. I've already read through most of the posts pertaining to this topic and some things were unclear to me. I was asking for someone to look over my work and make sure I followed the correct procedures. For instance, I'm still confused on the second question. The pumping lemma I used makes it seem like it is not regular but at the same time it is finite. Does that mean I used pumping lemma incorrectly? In what way did I use it incorrectly?