when positive integer n is divided by 3 , the remainder is 2 . when n is divided by 7 , the remainder is 6 . how many values less than 100 can n take ?
"a quick approac to this q is . . the equation we can form is . . 3 x + 2 = 7 y + 5 . . 3 x - 3 = 7 y . . . 3 ( x - 1 ) = 7 y . . . so ( x - 1 ) has to be a multiple of 7 as y then will take values of multiple of 3 . . here we can see x can be 1 , 8,15 , 22,29 so 5 values till 100 is reached as ( 29 - 1 ) * 3 = 84 and next multiple of 7 will be 84 + 21 > 100 . . ans 6 . . d"
subtract(100, reminder(6, 7))