The sum of whole numbers 1 through 30 is 465.
30 and 1. 30*1 is 30, 30+1 = 31.
(30 + 1) * 30/2 ie 465
The product of a sum and a difference with 31 times 29 is:(30+1) x (30-1)sum to differencemakea product= 30² - 1²= 900 - 1= 899
465
The sum of whole numbers 1 through 30 is 465.
#include <iostream> using namespace std; int main() { int i,sum; // variables sum = 0; // initialize sum /* recursive addition of squares */ for (i = 1; i <= 30; i++) sum = sum + (i * i); cout << sum <<" is the sum of the first 30 squares." << endl; return 0; }
30 and 1. 30*1 is 30, 30+1 = 31.
(30 + 1) * 30/2 ie 465
The product of a sum and a difference with 31 times 29 is:(30+1) x (30-1)sum to differencemakea product= 30² - 1²= 900 - 1= 899
465
The two numbers are 5 and -6. 5x(-6) = -30 so the product is -30 and 5+(-6) = -1 so the sum is -1
1+30=31 and 1x30=30
3/10 + 1/3... = 9/30 + 10/30... = 19/30
29 and 30.
Suppose the numbers are x and y. The sum of their reciprocals = 1/x + 1/y = y/xy + x/xy = (y+x)/xy = (x+y)/xy = 10/30 = 1/3
sum -10 to -1 = -55; sum 1 to 2,012 = 2,013 x 1,006 = 2,025,078 total 2,025,023