how mathematical pattern works in a clock?​