Problem 2057 · Easy

Smallest Index With Equal Value

Find the smallest index whose last decimal digit equals its value.

Open the interactive visualisation