Menu Close

How-many-numbers-between-1-2017-that-aren-t-divisible-by-5-6-7-8-




Question Number 11754 by Joel576 last updated on 31/Mar/17
How many numbers between 1 − 2017  that aren′t divisible by 5, 6, 7, 8 ?
Howmanynumbersbetween12017thatarentdivisibleby5,6,7,8?
Answered by mrW1 last updated on 31/Mar/17
let a=count of numbers which are multiple of 5  let b=count of numbers which are multiple of 6  let c=count of numbers which are multiple of 7  let d=count of numbers which are multiple of 8    a=2017/5=403  a_1 =2017/(5×6)=67 (also in b)  a_2 =2017/(5×7)=57 (also in c)  a_3 =2017/(5×8)=50 (also in d)    b=2017/6=336  b_1 =2017/(6×7)=48 (also in c)  b_2 =2017/(6×8)=42 (also in d)    c=2017/7=288  c_1 =2017/(7×8)=36 (also in d)    d=2017/8=252    a_1 ,a_2 ,a_3 ,b_1 ,b_2 ,c_1  are count of numbers  which are double counted.    count of numbers which are divisible  by 5,6,7,8:  a+b+c+d−a_1 −a_2 −a_3 −b_1 −b_2 −c_1   =403+336+288+252−67−57−50−48−42−36  =979    count of numbers which are not divisible  by 5,6,7,8:  2017−979=1038
leta=countofnumberswhicharemultipleof5letb=countofnumberswhicharemultipleof6letc=countofnumberswhicharemultipleof7letd=countofnumberswhicharemultipleof8a=2017/5=403a1=2017/(5×6)=67(alsoinb)a2=2017/(5×7)=57(alsoinc)a3=2017/(5×8)=50(alsoind)b=2017/6=336b1=2017/(6×7)=48(alsoinc)b2=2017/(6×8)=42(alsoind)c=2017/7=288c1=2017/(7×8)=36(alsoind)d=2017/8=252a1,a2,a3,b1,b2,c1arecountofnumberswhicharedoublecounted.countofnumberswhicharedivisibleby5,6,7,8:a+b+c+da1a2a3b1b2c1=403+336+288+252675750484236=979countofnumberswhicharenotdivisibleby5,6,7,8:2017979=1038
Commented by Joel576 last updated on 01/Apr/17
thank you very much
thankyouverymuch

Leave a Reply

Your email address will not be published. Required fields are marked *