• + 1 comment

    I do understand d=d%n but in this instance it isn't necessary, question's constraints says 1<d<n