The rainbow method is a systematic approach to finding all factor pairs of a number by using counting numbers and checking for divisibility.