Final Shape After Repeated Square Cuts from Rectangle · GCD and LCM. Mutual primality | Problems