Problem 2413 · Easy

Smallest Even Multiple

The smallest number divisible by both 2 and n is n itself when n is even, and 2n otherwise.

Open the interactive visualisation