pages of an encyclopedia
Source: 2nd National Women´s Contest of Mexican Mathematics Olympiad 2023 , level 1 p1
July 23, 2023
Mexico
Problem Statement
Gabriela found an encyclopedia with pages, numbered from to . She noticed that the pages formed only by even digits have a blue mark, and that every three pages since page two have a red mark. How many pages of the encyclopedia have both colors?