how many even number in the range between 20 to 100 inclusive are not divisible by 3
"we have to find the number of terms that are divisible by 2 but not by 6 ( as the question asks for the even numbers only which are not divisible by 3 ) for 2 , 20 , 22,24 . . . 100 using ap formula , we can say 100 = 20 + ( n - 1 ) * 2 or n = 41 . for 6 , 24,36 . . . 96 using ap formu 24 la , we can say 96 = 24 + ( n - 1 ) * 6 or n = 13 . hence , only divisible by 2 but not 3 = 41 - 13 = 28 . hence , answer a"
subtract(divide(subtract(subtract(100, 20), const_2), const_2), divide(divide(subtract(subtract(subtract(subtract(100, const_2), multiply(3, const_4)), 3), 3), 3), const_2))