Flashing red means a hardware fault, and the number and position of the lights tell you which one. Three lights is by far the most common, so start there.
Microsoft repaired this fault free of charge for consoles returned within three years of purchase. The cause is overheating: either a manufacturing defect or blocked air vents let the machine get hot enough to melt the solder balls on the CPU or GPU. Because the motherboard flexes slightly, when the console cooled down those balls solidified again — but in the wrong position, or split in two. The three red lights are the 360 reporting that broken connection.
Keeping the vents clear and the console upright in open air is the practical prevention. If you have a different pattern of lights, count them and note which corners they occupy before assuming it is the same problem.