(a) Except as otherwise provided in this section, results in nonpartisan municipal elections in municipalities using the election and runoff election method shall be determined by a majority of the votes cast. A majority within the meaning of this section shall be determined as follows:

(1) When more than one person is seeking election to a single office, the majority shall be ascertained by dividing the total votes cast for all candidates by two. Any excess of the sum so ascertained shall be a majority and the candidate who obtains a majority shall be declared elected.

(2) When more persons are seeking election to two or more offices (constituting a group) than there are offices to be filled, the majority shall be ascertained by dividing the total vote cast for all candidates by the number of officers to be filled and by dividing the result by two. Any excess of the sum so ascertained shall be a majority and the candidates who obtain a majority shall be declared elected. If more candidates obtain a majority than there are offices to be filled, those having the highest vote (equal to the number of offices to be filled) shall be declared elected.

(b) If no candidate for a single office receives a majority of the votes cast in the first election or if an insufficient number of candidates receives a majority of the votes cast for a group of offices, a runoff election shall be held as herein provided:

(1) If no candidate for a single office receives a majority of the votes cast in the first election, a second election shall be conducted two weeks later between the two candidates receiving the largest number of votes in the first election who do not withdraw. The candidate receiving a majority of the votes cast in the runoff election shall be declared elected.

(2) If candidates for two or more offices (constituting a group) are to be selected and aspirants for some or all of the positions within the group do not receive a majority of the votes cast in the first election, a second election shall be conducted two weeks later between one more than the number of candidates necessary to fill the vacant offices. The candidates receiving the highest number of the votes cast in the second election equal in number to the number to be elected shall be declared elected.