Cycle Length of the Positive Powers of Two Mod Powers of Ten

  • Context: Graduate 
  • Thread starter Thread starter DoctorBinary
  • Start date Start date
  • Tags Tags
    Cycle Length Positive
Click For Summary

Discussion Overview

The discussion revolves around the cycle length of positive powers of two modulo powers of ten, specifically investigating the relationship between the cycle lengths mod 5^m and mod 10^m. Participants explore theoretical aspects, mathematical reasoning, and implications of the Chinese Remainder Theorem (CRT) in this context.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant asserts that the positive powers of 2 mod 5^m cycle with a period of 4*5^(m-1) and seeks to prove that the same period applies to mod 10^m.
  • Another participant suggests that the CRT could be used to relate the periods, noting that powers of 2 mod 2^m cycle with period 1.
  • A participant discusses periodicity and proposes that if 2^(i+p) = 2^i mod 5^m, then it also holds for mod 10^m, indicating a relationship between the two periods.
  • There is a question regarding whether i0 must equal m for the proof to hold, with differing opinions on this point.
  • Some participants express uncertainty about the necessity of proving that the period mod 5^m is also a period mod 10^m, questioning if it suffices to show the former alone.
  • A later reply clarifies that the period mod 10^m could potentially be less than that of mod 5^m, which adds complexity to the argument.

Areas of Agreement / Disagreement

Participants express differing views on the necessity of certain conditions in the proof, particularly regarding the value of i0 and the relationship between the periods mod 5^m and mod 10^m. The discussion remains unresolved on these points, with multiple competing interpretations present.

Contextual Notes

Participants reference the CRT and group theory without fully resolving how these concepts apply to the periods in question. There is also ambiguity regarding the implications of periodicity and the conditions under which certain statements hold.

DoctorBinary
Messages
43
Reaction score
0
The positive powers of 2 mod 5^m cycle with period 4*5^(m-1), which you can prove by showing that 2 is a primitive root mod powers of 5. I want to prove that the positive powers of two, mod 10^m, also cycle with this same period. How do I go from this powers of 5 result to powers of 10?

The Chinese Remainder Theorem (CRT) obviously came to mind, so I considered the powers of 2 mod 2^m. Starting at 2^m, they cycle with period 1 (they are always 0). The answer, I'm sure you're going to say, is to multiply the two periods: 1 x 4 = 4. But what specifically about the CRT let's me do that? The statements of the CRT I've seen talk about the residues, not the periods.

Maybe I need to invoke an underlying theorem from group theory instead?

Thanks.
 
Physics news on Phys.org
DoctorBinary said:
... is to multiply the two periods: 1 x 4 = 4.

That was an example for m=1. I should have said, 1 x 4*5^(m-1).
 
Periodicity implies that there's i0 such that, for all i>=i0, 2^(i+p) = 2^i mod 5^m,
therefore 2^(i+p) = 2^i + n*5^m.

It's easy to see that n = n' * 2^i0. If i0 >= m, 2^(i+p) = 2^i + n' * 10^m, which proves that your original period mod 5^m is also a period mod 10^m.On the other hand, any period mod 10^m must be a period mod 5^m:

2^(i+p) = n * 10^m + 2^i = (n*2^m)*5^m + 2^iWhich proves that two periods are equal.
 
Nice approach (I guess in a way it's using the CRT implicitly). Thanks.

I have two questions though:

1) Isn't i0 = m?


2)
hamster143 said:
It's easy to see that n = n' * 2^i0

I see it in examples, but not algebraically. Could you elaborate?
 
1) Maybe, I wasn't trying to prove that.

2) 2^(i+p) = 2^i + n*5^m, therefore 2^i * (2^p - 1) = n*5^m, RHS is divisible by 2^i.
 
hamster143 said:
1) Maybe, I wasn't trying to prove that.

I think i0 HAS to be m in order for it to work (to get the 2^m you need to match the 5^m).

hamster143 said:
On the other hand, any period mod 10^m must be a period mod 5^m

I was wondering -- is this direction necessary? Isn't showing that the period mod 5^m is the period mod 10^m sufficient? How could there be more than one period for the powers of two mod 10^m (for any m)?
 
i0 has to be m or greater.

If p is the smallest period mod 5^m and we can prove that it is also a period mod 10^m, it's still possible that p is the multiple of the smallest period mod 10^m.
 
OK, I get it now. The issue is that 10^m's period COULD be less than 5^m's period. The second part of your proof shows it's not.

As for i0, I would still say it's m because your statement "for all i>=i0" itself implies m or greater.

I REALLY appreciate the help!
 

Similar threads

Replies
3
Views
996
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
8K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K