How many numbers are there from 1 to 1000 which when successively divided by 5, 6, 7 give remainders 2, 4, 5.
The first number in this AP can be found as given below.
The first term =((((5×6)+4)×5)+2)
Common difference =5×6×7=210
General form of the AP is therefore 172+210k,
So the numbers will be 172, 382, 592 and 802.