I studied this subject when I was building FPV sim from scratch. I noticed that yaw action is often misunderstood, falsely believing that it's caused by a change in angular momentum (think reaction wheels). There is a good SE answer about deriving net torques given each props' thrust force in less PhD language than this article: https://drones.stackexchange.com/a/416/11402 If anyone is interested in tackling UAV simu…
Why does four seem optimal? Why not three or five? or eight?
As other replies note, 4 is the simplest arrangement mechanically and control-wise, as the control math is quite simple (just rotor speeds/torque) and the only moving parts are the fixed-pitch rotors.
The minimum, as seen in real (and model) helicopters, is either two (approximately) constant-speed rotors with swashplate control, or one (approximately) constant-speed rotor with swashplate control and one tail rotor, either with (approximately) constant speed and variable pitch, or with variable speed. At the scale of real helicopters, two rotors may often be more powerful and efficient (e.g. CH-47, V-22) but the size and weight of the gearbox needed to transmit so much power is a significant contribution to the weight and cost of the helicopter, and thus having a single main gearbox is much lighter and cheaper. The notable difficulties of shaft drive between multi-rotor helicopters, particularly with distributed engines (see a number of V-22 issues) strongly discourages helicopters with more than 2 rotors.