The distributive property is a fundamental math rule that lets you multiply a number by a group of numbers being added or subtracted. When you see an expression like 4(10 + 8), you can "distribute" ...
# Given two numbers a and b, find the sum of a and b. Since the sum can be very large, find the sum modulo 109+7. # You don't need to read input or print anything. Your task is to complete the ...
As we cannot simplify what is within the bracket, we must instead use the distributive property of this expression. This means that we can rewrite the above ...