I'm proofreading this in a friend's paper:
There is the same number of elements in the set of odd numbers as there are in the even numbers.
The same number is singular and it's the thing being compared, so it does seem like is is the right word to use, but then it bothers me that it switches to are in the second half of the sentence. Shouldn't it parallel the first half, as in "There is the same number of elements in the set of odd numbers as there is in the even numbers."? But that sounds wrong.
Note: This is not a duplicate of 'Does “the same number of people” behave as singular or plural?' That question refers to a verb clause modifying "people", and not "the number". Also, I am primarily concerned with the switch to plural in the second half of the sentence, which is not covered in that other question.