Question 162
The integers $1, 2, \ldots, 2018$ are written on the board. We then perform 2017 operations as follows: choose two numbers $a$ and $b$, erase them, and write $a + b + 2ab$ in their place. At the end, only one integer remains on the board.
What values can its units digit take?
What values can its units digit take?