Base 2 odd numbers and their mirror image values

Click For Summary
SUMMARY

The discussion focuses on the mirroring of odd numbers represented in base 2, specifically analyzing their bit strings. Participants demonstrate that odd numbers maintain their mirror images, while even numbers require specific string lengths to be mirrored effectively. A method for trimming strings is discussed, emphasizing its relevance to string processing in programming. The results of graphing these mirror values reveal unique patterns, prompting further exploration of their behavior when sorted.

PREREQUISITES
  • Understanding of binary representation and base 2 numbering
  • Familiarity with string processing techniques in programming languages
  • Basic knowledge of graphing data and interpreting results
  • Experience with spreadsheet software for data analysis
NEXT STEPS
  • Explore binary string manipulation techniques in Python or JavaScript
  • Learn about data visualization methods using tools like Matplotlib or Excel
  • Investigate the mathematical properties of odd and even numbers in binary
  • Research advanced graphing techniques for analyzing non-linear data patterns
USEFUL FOR

Mathematicians, computer scientists, data analysts, and anyone interested in binary number theory and data visualization techniques.

philiprdutton
Messages
120
Reaction score
0
Check this out:

In base 2 take all (or the first several hundred thousand) the odd numbers and figure out the mirror image of the bit string for each number.

Ex:
mirror of 11111 is 11111
mirror of 1011101 is 1011101
mirror of 100000001111 is 111100000001

You can't really mirror an even number because the far right "0" gets flipped to the other side where there are infinite zeros. So my method just "trims" the string. (those familiar with string processing in programming languages will pick this up right away).

Anyway, you end up with a bunch of pairs of numbers. They are always odd of course. If you graph these numbers against their associated mirror values then you will see a linear line for the regular sequence of natural numbers and a kind of function which sort of has a stepping action.

Now, can you predict what will happen graph the sorted list of mirror values?

I did this with a spreadsheet and about 30000 odd numbers. It was a weird experiment because the mirrorred values, after being sorted, created a graph that is a little odd. I will post a graph later after you get a chance to think about what is happening.
 
Last edited:
Mathematics news on Phys.org
philiprdutton said:
You can't really mirror an even number because the far right "0" gets flipped to the other side where there are infinite zeros.
Sure you can mirror an even number, if you specify the length of the bit strings you're working with (as is the case with bytes and multiples of bytes in programming languages.
If we're talking about 8-bit bytes, an example is 0011 1000. Its mirror image is 0001 1100.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 76 ·
3
Replies
76
Views
7K
  • · Replies 43 ·
2
Replies
43
Views
12K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 25 ·
Replies
25
Views
6K
  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 42 ·
2
Replies
42
Views
8K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
3
Views
2K