Problem 2413 · Easy
The smallest number divisible by both 2 and n is n itself when n is even, and 2n otherwise.
Open the interactive visualisation