Types: n: int, m: int
Ranges: 1 ≤ n ≤ 10^{15}, 0 ≤ m ≤ 10^{15}
Addtl Info: Output should be the number of arithmetic sequences modulo 10^9 + 7