Finding All Odd Numbers in the Series

In summary, the conversation discusses different methods for determining even and odd number series. It is mentioned that every even number is of the form 2n and every odd number is of the form 2n+1. The conversation also proves a theorem that the square of an even number is even and the square of an odd number is odd. The conversation concludes with a discussion about a sequence starting with 0 and using multiplication and subtraction to generate more even and odd numbers.
  • #1
Hyperreality
202
0
Here is a question I suddnely thought of.

The natural number series: 1,2,3...

If we double the series, we get: 2,4,6...

In other words get all the even numbers.

My question is there any ways to determine all odd number series?
 
Mathematics news on Phys.org
  • #2
If you add one more step and substract 1 after multpliying by 2 to the series you obtain the odd number series.
 
  • #3
Or add 1 and treat 1 as a special case. So every even number is of the form 2n and every odd number is of the form 2n+1. Where n can be read as "something".

Now look what you can do. (2n)^2 = 4n^2 = 2(2n^2) so the square of an even number is of the form 2 times something, and so it is even too.

And (2n+1)^2 = 4n^2 + 4n +1
= 2(2n^2+2n) + 1.
So the square of an odd number is one more than an even number, so it is odd.

You have just proved a theorem: The square of an even number is even and the square of an odd number is odd.
 
  • #4
Take this another step.

Pretend that you are IBM Corporation{1} in the mid-1950s. Start your sequence with 0 instead of 1.

0 1 2 3 4 5 ...

Now, square the members of this sequence.

0 1 4 9 16 25 ...

This is the derived sequence of perfect squares.

Now, subtract adjacent members of this sequence.

Voilá!

1 3 5 7 9 ...

---

{1}IBM computer systems numbered peripherals devices and their plug ports beginning with 0 instead of with 1 (which is what other computer manufacturers started with at that time).
 
Last edited:
  • #5
One more bit.

Start with

0 1 2 3 4 5 ...

This time, instead of squaring each member, multiply adjacent neighbors.

0 2 6 12 20 30 ...

Now, subtract adjacent terms of this.

2 4 6 8 10 ...

whoopie!
 
  • #6
Originally posted by quartodeciman
One more bit.

Start with

0 1 2 3 4 5 ...

This time, instead of squaring each member, multiply adjacent neighbors.

0 2 6 12 20 30 ...

Now, subtract adjacent terms of this.

2 4 6 8 10 ...

whoopie!

n(n+1) - n(n-1)=n2+n - n2+n =2n
 

1. How do you find all odd numbers in a series?

To find all odd numbers in a series, you can use a loop to iterate through each number in the series. Then, using a conditional statement, you can check if the number is divisible by 2. If it is not divisible by 2, then it is an odd number. You can store all the odd numbers in an array or print them out as you iterate through the series.

2. Can you use a mathematical formula to find all odd numbers in a series?

No, there is no specific mathematical formula to find all odd numbers in a series. However, you can use mathematical principles such as the modulus operator to check if a number is odd or even.

3. Is there a limit to the size of the series when finding all odd numbers?

No, there is no limit to the size of the series when finding all odd numbers. You can use the same approach for any size of the series, whether it is a small set of numbers or a large set of numbers.

4. How can I optimize the process of finding all odd numbers in a series?

One way to optimize the process is to only iterate through the odd numbers in the series instead of checking every number. This can be done by incrementing the loop by 2 instead of 1, as all odd numbers are separated by an even number. Additionally, you can use a more efficient algorithm such as the Sieve of Eratosthenes to find all odd numbers in a given range.

5. Can finding all odd numbers in a series be applied to other types of numbers besides integers?

Yes, the same concept can be applied to other types of numbers such as decimal numbers or binary numbers. However, the approach may differ depending on the programming language and data type being used.

Similar threads

  • General Math
Replies
17
Views
532
  • General Math
Replies
7
Views
1K
Replies
1
Views
1K
  • General Math
Replies
1
Views
2K
Replies
20
Views
1K
Replies
4
Views
383
Replies
4
Views
984
Replies
3
Views
238
Replies
6
Views
881
Replies
3
Views
2K
Back
Top