You are given two integers n and k.
Initially, an array a of length n is initialized where a[i] = n.
Every second, the array is updated such that each element at index i is replaced by the sum of all elements from index i from the previous second.
Return the value of the element at index n k seconds.
Note: Since the answer can be large, return the result modulo
.
Constraints:
n, k
You are given two integers n and k.
Initially, an array a of length n is initialized where a[i] = n.
Every second, the array is updated such that each element at index i is replaced by the sum of all elements from index i from the previous second.
Return the value of the element at index n k seconds.
Note: Since the answer can be large, return the result modulo
.
Constraints:
n, k