------
## 最终结论
```python
def No_of_Triangle(n, k):
    if k > n:
        return -1
    return (n - k + 1) * (n - k + 2) // 2
```