The formula of frog climbing well problem: a frog fell into a well m meters deep. Frogs climb n meters every day and drop one meter at night. Frogs can climb out of the well in (M-A)/(N-A) days.
The formula is a general format and expressed by mathematical symbols. The formula of a certain relationship (such as law or theorem) between quantities can generally be applied to the ways and means of similar things.