100
The sum of all odd numbers, up to the odd number (2n-1) is n^2. So the sum of the first 1000 or 10^3 odd positive numbers is (10^3)^2=10^6 Now divide by 10^3 or 1000 since we have 1000 numbers so we have 10^6/10^3=1000 The mean of the first 1000 positive odd numbers is 1000 If you ask the mean of the odd numbers between, 1 and 1000, that is another problem, since there are 500 of them, the answer would be 500^2/500=500 Think of the mean of the odd numbers between 1 and 10, there are 5 of them and there sum is 25 so the mean is 25/5 or 5 **** in general, the arithmetic mean of the first n odd numbers is n^2/n or n. So that is why the number is 1000.
Simplify the problem. It's the same as 5*7000 plus the sum of the five consecutive odd numbers between 0 and 10. So: 35,000 + 1 + 3 + 5 + 7 + 9 = 35,025
If you include 8 and 18 that is 11 numbers and their sum is 143 which is odd ---- Explanations (by the way, it is really not all the numbers between 8 and 18, it is just all the integers. There is an infinite number of numbers between 8 and 18, think of just 8, 8.1, 8.11, 8.111, 8.1111 etc) Here are some other fun ways to do this: One way to do it, of course is just to add 8+ 9 10 11 12 13 14 15 16 17 18 Before you add them all, consider just adding the last column, and looking at the ones column of that number. 8+9+0+1+2+....+8 that number is 53 so the sum is odd. If that numbers is even then the number is even OR Looking at just the odd numbers. The sum of even numbers is always even. An odd number and an even number is an odd number. So if the sum of the odd numbers is even then the last column will be an odd number and the total sum will be odd. The sum of odd numbers is even when there is an even number of them. Look at 2 odd numbers. (ie 3+3 =6, this is two odd numbers and their sum is even) 9,11,13,15,17 are even and there are 5 of them. This is an odd number of odd so the sum is odd. Now we know the sum of the odds and the evens is odd so the total of the last column must be odd and therefore the sum is odd. Another way is to see that the sum of the first n numbers is n(n+1)/2 We can add the sum of the first 18 numbers then subtract the sum of the first 7 numbers and what is left is the sum of the numbers 8 to 18. So in this case we have 18x19/2-8x9/2 which is (18x19-7x8)/2 this simplifies by first dividing the 18 and the 8 by 2 so we have 9x19-4x7= 171-28=143 OR What if we match up and add the 8 and the 18, the 9 and the 17, the 10 and the 16, the 11 and the 15, the 12 and the 14 and you have 13 left. This is the idea behind the formula for the first n numbers. That is 26x5+13=143
for (int i = 2; i < 10; i ++) printf("%d\n", i); You did say even and odd numbers between 1 and 10. That's allnumbers between 1 and 10.
10
The sum of the first 10 odd whole numbers is 100.
The sum of the five odd numbers between 10 and 20 is: sum = 5 x (11 + 19) / 2 = 75.
The prime numbers 3 an 7 are both odd and sum to 10.
100
The sum of all odd numbers, up to the odd number (2n-1) is n^2. So the sum of the first 1000 or 10^3 odd positive numbers is (10^3)^2=10^6 Now divide by 10^3 or 1000 since we have 1000 numbers so we have 10^6/10^3=1000 The mean of the first 1000 positive odd numbers is 1000 If you ask the mean of the odd numbers between, 1 and 1000, that is another problem, since there are 500 of them, the answer would be 500^2/500=500 Think of the mean of the odd numbers between 1 and 10, there are 5 of them and there sum is 25 so the mean is 25/5 or 5 **** in general, the arithmetic mean of the first n odd numbers is n^2/n or n. So that is why the number is 1000.
Simplify the problem. It's the same as 5*7000 plus the sum of the five consecutive odd numbers between 0 and 10. So: 35,000 + 1 + 3 + 5 + 7 + 9 = 35,025
152
The odd numbers between 1 and 10 are 1, 3, 5, 7, and 9.
False. The sum of 3 and 3 is 6. And 6 is even. The product of two odd numbers is always odd. false the sum of 2 odd numbers is always even 3+3=6 5+5=10 103+103=206
Since we are talking for the sum of digits, then we are talking about 2-digit numbers between 1 and 100, which are 90 numbers (10 to 99). From these numbers only half of them satisfy the above condition, that is 45 numbers. So 50% of 2-digit numbers between 1 and 100 have an odd sum of their digits.
All prime numbers greater than 2 are odd numbers. For an odd prime to be written as the sum of two primes, one of the primes must be 2 because two odd primes will produce an even sum. 11 cannot be written as the sum of two primes. 13 = 2 + 11. 17 cannot be written as the sum of two primes. 19 = 2 + 17.