Problem Dealing with Digit Cycles

  • Context: Graduate 
  • Thread starter Thread starter rjmack
  • Start date Start date
  • Tags Tags
    Cycles
Click For Summary

Discussion Overview

The discussion revolves around the properties of digit cycles in various bases, particularly focusing on the relationship between powers of integers and their modular equivalences. Participants explore the conditions under which the lengths of these cycles can be determined, including specific cases and generalizations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants propose that for integers k and b (both > 1), if b does not divide k-1, then the smallest power n such that k^n is equivalent to 1 mod b corresponds to the length of the digit cycle of 1/b in base k.
  • Others question the equivalence of the statements regarding n being the smallest power and its relation to the length of the digit cycle, particularly with examples like k=10 and b=22.
  • A later reply introduces the condition that k and b must be relatively prime, asserting that under this condition, the relationship holds for both b and b^2.
  • One participant suggests a more general case involving factors of b that are relatively prime to k, proposing that the length of the digit cycle can be determined by considering these factors.
  • Another participant attempts to connect these ideas to a broader mathematical statement regarding prime factorization and squarefree properties, indicating ongoing exploration of these concepts.
  • However, a subsequent post challenges the generality of the earlier claims, providing a counterexample that illustrates a failure of the proposed relationship for certain values of k.

Areas of Agreement / Disagreement

Participants express a mix of agreement and disagreement regarding the conditions under which the relationships hold. While some support the proposed equivalences, others provide counterexamples and challenge the general applicability of the claims, indicating that the discussion remains unresolved.

Contextual Notes

Limitations include the need for specific conditions on k and b, the potential for exceptions in certain cases, and the unresolved nature of some mathematical steps in the proofs presented.

rjmack
Messages
5
Reaction score
0
Not sure if cycle is the best word here..

Let k and b (both > 1) be such that b does not divide k-1 (with the exception that b may equal k-1).

If n is the smallest power so that k^n is equivalent to 1 mod b (so n is the length of the digit cycle of 1/b in base k),

then bn is the smallest power so that k^(bn) is equivalent to 1 mod b^2 (so bn is the length of the digit cycle of 1/(b^2) in base k).


In base 10, 1/81 has length 9. 1/9 has length 1. I've checked many other examples.
 
Physics news on Phys.org
I'm not sure if I follow. What about k=10, b=22 ? And why are these two statements equivalent: "n is the smallest power so that k^n is equivalent to 1 mod b", and "n is the length of the digit cycle of 1/b in base k" ?
 
Sorry I forgot an important part...

Let k and b (both > 1) be such that b does not divide k-1 (with the exception that b may equal k-1) and k and b are relatively prime.

If n is the smallest power so that k^n is equivalent to 1 mod b (so n is the length of the digit cycle of 1/b in base k),

then bn is the smallest power so that k^(bn) is equivalent to 1 mod b^2 (so bn is the length of the digit cycle of 1/(b^2) in base k).

Sketches of equivalence proofs:

Let n be the smallest power so that k^n is equivalent to 1 mod b. (we know such a power exists because k and b are relatively prime and k^0 starts the period at 1, and it must return there or we get a contradiction) So k^n - 1 = xb for some x, and for each m < n this is not the case. So 1/b = x/(k^n - 1). Rewrite in base k digit notation by using the geometric series. Notice our digit cycle is of length n. We might ask what if there is a smaller cycle within that cycle, but this is not the case because n was chosen smallest. Going the other way is a similar game.
 
Also...

On a more general note we can say this:

Let k and b (both > 1) be such that b does not divide k-1 (with the exception that b may equal k-1) and b has at least one factor that is relatively prime with k.

If n is the smallest power so that k^n is equivalent to 1 mod c where c is the entire part of b that is relatively prime with k (so n is the length of the digit cycle of 1/b in base k),

then cn is the smallest power so that k^(cn) is equivalent to 1 mod c^2 (so cn is the length of the digit cycle of 1/(b^2) in base k).

Now your example of k=10 b=22 works.

1/22 has length 2, 1/484 has length 11*2 = 22.

With equivalence proofs we can just factor off those parts of b that are factors of k and they will end up as digits before the other digits begin their cycle (which is where I begin counting the length of the cycle, the minimal length, no cycles within cycles).

I am just messing with this for fun. I don't know if any of it is true yet...still searching for a nice proof.
 
Last edited:
I am trying to solve this piece so I can show that

For each prime p and k > 1 where k-1 = (a_1^b_1)*(a_2^b_2)*(a_3^b_3)*...*(a_n^b_n) in prime factorization,

(k^p - 1) / c is squarefree where c = (a_1^(b_1 - 1))*(a_2^(b_2 - 1))*(a_3^(b_3 - 1))*...*(a_n^(b_n - 1))
 
Sorry, This is Not True in General

Let k and b (both > 1) be such that b does not divide k-1 (with the exception that b may equal k-1) and k and b are relatively prime.

If n is the smallest power so that k^n is equivalent to 1 mod b (so n is the length of the digit cycle of 1/b in base k),

then bn is the smallest power so that k^(bn) is equivalent to 1 mod b^2 (so bn is the length of the digit cycle of 1/(b^2) in base k).

-------------------------------------------

5 is the smallest power so that 9^5 is equivalent to 1 mod 11.

9^1 - 1 = 8
9^2 - 1 = 80
9^3 - 1 = 728 = 8*7*13
9^4 - 1 = 6560 = 32*5*41

9^5 - 1 = 59048 = 8*11*11*61

But 11*5 is not the smallest power so that 9^(11*5) - 1 is a multiple of 11^2.
5 is the smallest power. For certain values of k we may have this property, but not in general.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 11 ·
Replies
11
Views
4K