Tooth pitch formula

Input

OR

Result