Given base `N` and length `M`, count the number of valid `M`-digit numbers in base `N` (digits from `0` to `N-1`) such that the first digit is non-zero, and each subsequent digit is at least twice the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.