Some pairs of numbers may not appear together. Count every run of consecutive numbers from 1 to n that contains no such pair.
Some pairs of numbers may not appear together. Count every run of consecutive numbers from 1 to n that contains no such pair.
Opens with the full question.