Summation of Powers of Two Mod N equivalence to # of odd residues

Click For Summary

Homework Help Overview

The problem involves proving or disproving a mathematical statement regarding the summation of powers of two modulo N and its equivalence to the number of odd residue classes of 2^x modulo N, specifically for odd integers N greater than 1.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to analyze the residue classes of 2^x modulo N by splitting them into sets and examining their sums. Some participants question the method of eliminating the modulo and suggest exploring properties of coprimality in relation to the problem.

Discussion Status

The discussion is ongoing with various participants exploring different interpretations and approaches. Some have provided insights into the behavior of the sums and the properties of residues, while others are seeking clarification on specific mathematical concepts related to the problem.

Contextual Notes

Participants are working under the constraints of the problem statement and are considering the implications of the modulo operation in their reasoning. There is a recognition of the complexity of the problem, with some suggesting that it may not fit within pre-calculus topics.

Floating Info
Messages
8
Reaction score
0

Homework Statement



Prove or disprove that:

\frac{{\sum_{i=0}^{ord_N (2) - 1}} (2^i \bmod N)}{N}

Is equal to the number of odd residue classes of 2^x \bmod N for all odd numbers N greater than 1.

Homework Equations


Residue Classes are the residues that are generated by a function mod N.

The Attempt at a Solution


I've tried to split up the residue classes of 2^x \bmod N into different sets, each starting with an odd and including the evens directly after it. I've then added up the elements of each set and subtracted the sum of each set by the modulus. If this is true, the sum of all of these results from the sets should always equal 0. Here is an example for 35:

2^0 = 1
2^1 = 2
2^2 = 4
2^3 = 8
2^4 = 16
2^5 = 32
2^6 = 29
2^7 = 23
2^8 = 11
2^9 = 22
2^{10} = 9
2^{11} = 18

{1 + 2 + 4 + 8 + 16 + 32 - 35}
{29 - 35}
{23 - 35}
{11 + 22 - 35}
{9 + 18 - 35}

28 - 6 - 12 - 2 - 8 = 0

However, I have found no significant pattern in these values across different moduli that would suggest that it should always equal 0.

I've also used Mathematica to check all cases up to 9999.
 
Last edited:
Physics news on Phys.org
I've only done some work with finite fields, mostly for error correction code, but since there haven't been any responses yet, I'll try.

For the first step, I assume you can change this to:

{\sum_{i=0}^{ord_N (2) - 1}} (2^i \bmod N) = N ({odd\_residue\_classes})

Then is there some way to eliminate the modulo? For example if y is prime and if (x · a) mod y = 1, (a being the inverse of x mod y) then there is a negative integer b where

x · a + y · b = 1
 
rcgldr said:
Then is there some way to eliminate the modulo? For example if y is prime and if (x · a) mod y = 1, (a being the inverse of x mod y) then there is a negative integer b where

x · a + y · b = 1

Two questions:

1. What exactly do you mean by eliminate the modulo?

2. Instead of if y being prime, do you mean if x and y are coprime? The equation would still apply, and, assuming that the b can be used for something, it would prove a vastly more general result.
 
Last edited:
Tricky. Not really pre-calculus, I'd say.

It does feel true, since we know the total of the residues (## \equiv (2^{ord_N(2)}-1) \pmod N##) must be divisible by N and your partial sums ##S_i## are bounded by ##N/2 < S_i < 2(N-1)##. But it's hard to see a way through.

Using your example suggests a pattern

1+2+4+8+16+32-35=28

28+29-35 = 22

22+23-35 = 10

10+11+22-35 = 8

8+9+18-35 = 0

Each time we roll the clock, our partial sum is one less than the next number. And we finish when the clock rolls to zero (because the next number would be 1 again). And there's only one odd number in each set.

Hope this helps.
 
Joffan said:
Tricky. Not really pre-calculus, I'd say.

It does feel true, since we know the total of the residues (## \equiv (2^{ord_N(2)}-1) \pmod N##) must be divisible by N and your partial sums ##S_i## are bounded by ##N/2 < S_i < 2(N-1)##. But it's hard to see a way through.

Using your example suggests a pattern

1+2+4+8+16+32-35=28

28+29-35 = 22

22+23-35 = 10

10+11+22-35 = 8

8+9+18-35 = 0

Each time we roll the clock, our partial sum is one less than the next number. And we finish when the clock rolls to zero (because the next number would be 1 again). And there's only one odd number in each set.

Hope this helps.

It does help.

I put this in Pre-Calc since I didn't know the difficulty of it, just the difficulty of stating it. I suspected the proof was simple.
 
Floating Info said:
1. What exactly do you mean by eliminate the modulo?

2. Instead of if y being prime, do you mean if x and y are coprime? The equation would still apply, and, assuming that the b can be used for something, it would prove a vastly more general result.
1. If there was some way to add variables and eliminate the modulo, such as the example I gave.

2. If y is prime, then x and y are coprime for any integer x. In the finite field math I use (Reed Solomon based error corrrection code), it's always done modulo some prime number, and I'm only interested finding the inverse for x modulo y, not a more general solution that also finds the inverse of y modulo x.

I only replied because I didn't see any other replies and was thinking that any suggestion would be better than none.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
1K
Replies
7
Views
4K