My trash gets picked up every other Tuesday. Now it's easy to remember what day of the week it is, but not so easy to remember if it's a skip week or not - especially if you miss it sometimes. You have to count weeks from the last week you remember it being picked up, it's easy to lose count, and off-by-one errors are catastrophic.
I know there are various tricks (ie. arithmetic algorithms) for calculating what day of the week a certain future date would be, for example. Is it possible to derive such a function, so that given today's date (year, month, day) I could calculate if it's one of the skip weeks or one of the trash weeks?
Naturally the function would have to incorporate some sort of epoch, since the choice of skip week is arbitrary. Also, I am ideally looking for a function that would be easy to remember and calculate in my head. A probabilistic function would also be okay (eg. if it only correctly identifies the skip week, say, 95% of the time).
I can see that if I had some global week number (as in, not capped at 52), I could easily write such a function by taking mod 2. So I think this question reduces to finding a function that can calculate week number wrt to some reference "epoch" date. That is assuming there is not another way to do it without looking at the number of weeks at all.