#include using namespace std; typedef long long ll; ll MOD = 1000000007; const ll INF = 1001001001001001001; const int inf = 1001001001; using P = pair; struct edge { int to, cost; }; bool comp(P l, P r) { return ((l.first < r.first) || ((l.first == r.first) && (l.second > r.second))); } int main() { int N, S, K;cin>> N >> S >> K; if (S-N*(N -1)*K/2 < 0) { cout << 0 << endl; return 0; } ll dp[110][20011] = {0LL}; for (int i = 0; i <= 20010; i++) { dp[1][i] = 1LL; } for (int i = 2; i <= N; i++) { for (int j = 0; j <= S-N*(N-1)*K/2; j++) { if (j >= i) { dp[i][j] = (dp[i][j-i]+dp[i-1][j])%MOD; } else { dp[i][j] = (dp[i-1][j])%MOD; } } } cout << dp[N][S-N*(N-1)*K/2]%MOD << endl; return 0; }