In an operation conducted primarily to raise morale in the United States and to avenge the attack on Pearl Harbor, 16 B-25 Mitchell medium bombers were carried from San Francisco to within range of Japan on the aircraft carrier .