n = 1×2×3×4×......×49×50 + 23
facem un artificiu
n = (1×2×3×4)×5×..×49×50 + 23
n = 24×(5×..×49×50) + 23
notam (5×..×49×50) cu x
n = 24x + 23
n : 24 = x + rest 23
restul impartirii este 23