find the remainders when 2^50 and 41^65 are divided by 7