Problem

2000 Fermat Problem 22

The left most digit of an integer of length 2000 digits is 3. In this integer, any two consecutive digits must be divisible by 17 or 23. The 2000th digit may be either 'a' or 'b'. What is the value of a+b?

\textbf{(A)}\ 3\quad \textbf{(B)}\ 7\quad \textbf{(C)}\ 4\quad \textbf{(D)}\ 10\quad \textbf{(E)}\ 17

If there are no answer choices shown, enter a numerical answer.


Full credit to this problem is given to the CEMC, you may view all Fermat contests here.


Show/Hide Problem Tags

Problem Tags: Number theory

Want to contribute problems and receive full credit? Click here to add your problem!
Please report any issues to us in our Discord server
Go to previous contest problem (SHIFT + Left Arrow) Go to next contest problem (SHIFT + Right Arrow)