"The number of residents has grown" vs. "the number of residents have grown" [duplicate]
Solution 1:
It’s singular, has, because number is the head of the subject phrase. It would be plural if the subject phrase was a number of residents in, for example, A number of residents have complained. There, a number of is a pre-modifying element.