🦘 Math Kangaroo Grade All Felix 1-2 Ecolier 3-4 Benjamin 5-6 Kadett 7-8 Junior 9-10 Student 11-12 ⇄ switch contest
2016 Math Kangaroo

Problem 25

Problem 25 · 2016 Math Kangaroo Stretch
Number Theory primes

In the Kangaroo Republic, every month has 40 days, which are numbered through from 1 to 40. Every day with a number that is divisible by 6 is a public holiday, and likewise every day with a prime number. How often per month does it occur that there is exactly one working day between two public holidays?

Show answer
Answer: A — 1
Show hints
Hint 1 of 2
Mark every day that is a multiple of 6 or a prime as a holiday.
Still stuck? Show hint 2 →
Hint 2 of 2
Look for a holiday, then a single working day, then another holiday.
Show solution
Approach: list and scan
  1. Holidays are the primes and the multiples of 6 up to 40.
  2. Scanning for the pattern holiday–working–holiday, only day 4 sits alone between holidays 3 and 5.
  3. So it happens 1 time.
Mark: · log in to save