You are given three integers n, m, and k.
An array arr of length n is called valid if:
Each element arr[i] is an integer satisfying arr[i] m for all i
There are exactly k indices i (i arr[i] and arr[i + 1] are even.
Return the total number of such valid arrays. Since the answer may be very large, return it modulo
Constraints:
n
k n
m
You are given three integers n, m, and k.
An array arr of length n is called valid if:
Each element arr[i] is an integer satisfying arr[i] m for all i
There are exactly k indices i (i arr[i] and arr[i + 1] are even.
Return the total number of such valid arrays. Since the answer may be very large, return it modulo
Constraints:
n
k n
m