Discrete Mathematics with Applications 4th Edition

Published by Cengage Learning
ISBN 10: 0-49539-132-8
ISBN 13: 978-0-49539-132-6

Chapter 4 - Elementary Number Theory and Methods of Proof - Exercise Set 4.4 - Page 189: 13



Work Step by Step

The formula for the day of the week in $N$ days is $DayN = ((DayT)+N)\ mod\ 7$, where $DayN$ is the day of the week in $N$ days, $DayT$ is the day of the week today, and the days Sunday through Saturday are numbered $0$ through $6$, respectively. Therefore, if $DayT=1$ and $N=30$, we have $DayN = (1+30)\ mod\ 7=31\ mod\ 7=3$, because $31=7(4)+3$. See example 4.4.3 for an explanation of the formula $DayN = ((DayT)+N)\ mod\ 7$.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.