When using hall effect sensors in your Electronic Speed Control design, how do you know the optimal number of Hall effect sensors and how best to place them?. I know that 3 are typically used but I can't seem to find any resources on why exactly 3 is the optimal number to use.

PS. I am designing a 6 pole BLDC motor.

Thanks in advance.