https://profilbaru.com/en/Largest_remainder_method