how many even number in the range between 10 to 120 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 , 10 , 12,14 . . . 120 using ap formula , we can say 120 = 10 + ( n - 1 ) * 2 or n = 56 . for 6 , 12,18 , . . . 120 using ap formula , we can say 120 = 12 + ( n - 1 ) * 6 or n = 19 . hence , only divisible by 2 but not 3 = 56 - 19 = 37 . hence , answer d"
subtract(divide(subtract(subtract(120, 10), const_2), const_2), divide(divide(subtract(subtract(subtract(subtract(120, const_2), multiply(3, const_4)), 3), 3), 3), const_2))