K-th Not Divisible by n
EasyRating 1200CodeforcesMath & Implementation
Approach hintTry it first, then revealHide
Every block of n consecutive integers contains exactly n - 1 valid numbers, so skip whole blocks with arithmetic instead of iterating; k can be as large as 10^9.