โ† VMware questions

Find number k where k % j = j - 1 for all j from 2 to n

Filed under VMware

Given an integer n, find the smallest positive integer k such that k modulo j equals j - 1 for all j from 2 to n.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related VMware questions

Collected from public candidate posts and coding forums. Updated Nov 2026.