Americas
Europe
Q2SE
Expert-verifieda) Explain why n div 7 equals the number of complete weeks in days.
b) Explain why n div 24 equals the number of complete days inn hours.
a | b (a divide b) there is an integer c such that b = ac .
It is given that
Total days are n
We know a week has 7 days
If we divide the total days by 7, we get the number of weeks in n days
And if we take the integer part of this number, we will get the complete weeks in days.
hence n div 7 equals the number of complete weeks in n days.
It is given that
Total hours are n
We know a day has 24 hours
If we divide the total hours by 24 , we get the number of days in n hours
And if we take the integer part of this number, we will get the complete days in n hours
Hence, n div 24 equals the number of complete days in n hours.
94% of StudySmarter users get better grades.
Sign up for free