N^3 mod t covers all remainders?

  • Thread starter Gerenuk
  • Start date
In summary, the solution to the question of which t does n^3 mod t cover all remainders can be found by solving a system of equations involving the numbers n, k, and t. The answer is that t must be a square free product of primes of the form 2, 3 or 6k-1, and that n must be a cubic residue mod t for all integers. The proof for this is based on the Chinese remainder theorem and the properties of semigroups and endomorphisms.
  • #1
Gerenuk
1,034
5
As a generalization to some problem I've just seen, I'm wonder what the solution to the following question is:

For which t does
[tex]n^3\quad\text{mod}\quad t[/tex]
cover all remainders?

For example it works for t=5 since n^3 mod 5 yields all of 0...4
Is there a general formula for possible t?
 
Physics news on Phys.org
  • #2
t would be found when solving the system of equations:

[tex]n - n^3 = k_1t[/tex]
[tex]n - n^3 - 1 = k_2t[/tex]
[tex]n - n^3 - 2 = k_3t[/tex]
[tex]\vdots[/tex]
[tex]-n^3 = k_nt[/tex]

[tex](k_1, \cdots, k_n) \in \mathbb{Z}[/tex]
 
  • #3
I think the answer is when t is a square free product of primes of the form 2, 3 or 6k-1.
 
  • #4
Oh, seems to work for my first little brute force test (testing a few number only).

Is it easy to show why your answer is correct?
 
  • #5
I'm not sure how to interpret your solution, epk, because n is all numbers together and the question is whether all n are able to cover all remainders.
 
  • #6
The matter is extremely simply, if 3 is relatively prime to the order of the group mod p.
 
  • #7
I only know the very basic terms. What does "to the order of the group mod p" mean? And how do I get Martins solution from that?
 
  • #8
The order of the group is simply the number of elements present in the multiplicative group. For a prime p, it is p-1. It is also by Fermat's Little Theorem the power such that for all multiplicative elements: [tex] a^{_(p-1)}\equiv 1 \bmod p[/tex].

It is said that a belongs to b, if b is the lowest power such that [tex]a^b\equiv 1\bmod p[/tex] It turns out that b will be a divisior of p-1. The proof of that is rather simple. Let us suppose that there exixsts a d>1 of this type that does not divide p-1. Then we know that there are integers,positive or negative, m, n such that m(d)+n(p-1) = 1. Then we have [tex]a^{_md+n(p-1)}\equiv1x1 \equiv a^1 \bmod p[/tex]. Which is to say, d must be 1.
 
Last edited:
  • #9
Gerenuk said:
Is it easy to show why your answer is correct?

The answer is, I don't know.

I thought I had a fairly straightforward proof, but I noticed a law in the flogic just before I posted, hence the lack of proof and tentative wording in that post.

I will attempt to shore up the proof, but that may have to wait until weekend. In the meantime I've run a computer check on the numbers up to 50,000 without finding any counter-examples. I'm running the check up to 1,000,000 on a different machine but because it's a BFI Javascript routine and a slow machine that could take a while.

The proof that every number is a cube mod t only if t is a square free product of primes of the form 2, 3 and 6k-1 and that n is a cube mod t whenever (n,t)=1 and t is of the given form are straightforward, and I'll post that (or hopefully a proof of the whole result) later.
 
Last edited:
  • #10
Given [itex]t\in N[/itex] the numbers modulo [itex]t[/itex], [itex]Z_t[/itex] form a semigroup under multiplication. This semigroup decomposes into two disjoint subsemigroups, say [itex]\Phi_t,\Psi_t[/itex], being respectively the numbers relatively prime to [itex]t[/itex] and the rest. The former is actually a group.

The mapping [itex]\kappa:Z_t\rightarrow Z_t[/itex] s.t. [itex]\kappa:n\mapsto n^3[/itex] is a semigroup endomorphism of [itex]Z_t[/itex], and because [itex]((n^3,t)=1)\equiv ((n,t)=1)[/itex], it's also a semigroup endomorphism of both [itex]\Phi_t[/itex] and [itex]\Psi_t[/itex]. Then [itex]n^3[/itex] will represent all of [itex]Z_t[/itex] iff [itex]\kappa:\Phi_t\rightarrow \Phi_t[/itex] and [itex]\kappa:\Psi_t\rightarrow \Psi_t[/itex] are both isomorphisms (by the Pigeonhole Principle).

[itex]\kappa[/itex] is a group endomorphism of [itex]\Phi_t[/itex], and will be an isomorphism iff the kernel, [itex]\{n\in Z_t:n^3=1\}[/itex] is just [itex](e)[/itex]. By Lagrange and Cauchy's theorems this will be the case iff [itex]3\nmid o(\Phi_t)[/itex].

If [itex]t[/itex] is prime then [itex]\Psi_t[/itex] is just [itex]\{0[/itex] mod [itex]t\}[/itex], and [itex]\kappa[/itex] is necessarily an isomorphism on [itex]\Psi_t[/itex]. In this case [itex]o(\Phi_t)=t-1[/itex].

All primes other than [itex]2[/itex] and [itex]3[/itex] are of the form [itex]6k\pm 1[/itex], so only when [itex]t=6k+1[/itex] will [itex]3\mid t-1[/itex]. Thus [itex]n^3[/itex] will represent all of [itex]Z_t[/itex] for primes [itex]2[/itex], [itex]3[/itex] and [itex]t=6k-1[/itex].

If [itex](r,s)=1[/itex], [itex]\Phi_{rs}\cong \Phi_r\bigotimes \Phi_s[/itex] as groups. So [itex]n^3[/itex] will not represent all of [itex]Z_t[/itex] if [itex]t[/itex] has any prime factor [itex]t=6k+1[/itex]. Morover if has a square factor, say [itex]t=s^2u, s>1[/itex], then [itex](su)\neq 0(t)[/itex], but [itex](su)^3=0(t)[/itex], hence [itex]\kappa:\Psi(t)\rightarrow \Psi_t[/itex] cannot be an isomorphism.

This proves that every number is a cube mod t only if t is a square free product of primes of the form 2, 3 and 6k-1 and that n is a cube mod t whenever [itex](n,t)=1[/itex] and [itex]t[/itex] is of the given form.
 
  • #11
The rest will have to wait till weekend unless somebody else completes it. I killed the Javascript routine at just over 250,000 by the way, because it was obviously not going to make even 500,000 before bedtime. Hypothesis held good up to there.
 
  • #12
The rest is just the Chinese remainder theorem.

If [itex]t=p_1p_2\dots p_r[/itex], where the [itex]p_i[/itex] are distinct primes of the form [itex]2, 3[/itex] or [itex]6k-1[/itex], then given [itex]n[/itex], for each [itex]i[/itex] we can find an [itex]m_i[/itex] such that [itex]m_i^3=n(p_i)[/itex]. There is then an [itex]m(t)[/itex] such that for each [itex]i[/itex], [itex]m=m_i(p_i)[/itex]. For each [itex]i[/itex], [itex]m^3=n(p_i)[/itex], so [itex]m^3=n(t)[/itex].

(I thought I saw a problem with this when I first posted, but b*!"@ed if I can now.)
 
  • #13
I am not sure I can even understand your first line about [tex] t=p_1p_2\dots p_r[/tex] What is the given n?

What does this have to do with finding a solution to [tex]x^3\equiv6\bmod12[/tex]?
 
  • #14
In the previous post I proved that all integers are cubic residues mod [itex]t[/itex] only if [itex]t[/itex] is a square free product of primes of the form [itex]2,3[/itex] or [itex]6k-1[/itex]. Also that all integers relatively prime to [itex]t[/itex] are cubic residues mod [itex]t[/itex] if [itex]t[/itex] is a square free product of primes of the form [itex]2,3[/itex] or [itex]6k-1[/itex], and if [itex]t[/itex] is just a prime of the form [itex]2,3[/itex] or [itex]6k-1[/itex] then all integers are cubic residues mod [itex]t[/itex].

To prove my original assertion, it remains to show that all integers are cubic residues mod [itex]t[/itex] if [itex]t[/itex] is a square free product of primes of the form [itex]2,3[/itex] or [itex]6k-1[/itex].

To this end the first line specifies that [itex]t[/itex] is of the required form and chooses [itex]n[/itex], which can be any integer, which we require to show is a cubic residue mod [itex]t[/itex].

Since [itex]12[/itex] is not square free, the last post is not relevant to finding a solution of

[itex]x^3\equiv 6[/itex]mod[itex]12[/tex]

but the previous posts say it may not be possible. (In fact it isn't.)
 
  • #15
In general, using the group properties of [tex]\mathbb{Z}_p / \{ 0 \}[/tex] there are [tex]1+\frac{p-1}{\gcd(p-1,r)}[/tex] different r'th powers modulo prime p. This is true by the fact that the order of any non-zero number modulo p divides [tex]\phi(p)=p-1[/tex]. Thus n^3 will generate all remainders modulo p as long as [tex]\gcd(p-1,3)=1[/tex], i.e whenever p = 2 modulo 3, or p = 3.

Some simple observations will yield that n^3 will generate all remainders modulo t whenever t is not divisible by any square by matching up remainders to t's respective prime divisors (which all must equal 2 modulo 3). A proof is easily found by induction on the number of prime factors.

This can easily be generalized to r'th powers by using the formula given above. It places explicit restrictions on the prime divisors [tex]p_i[/tex], namely that [tex]\gcd(p_i-1,r) = 1[/tex].
 
Last edited:
  • #16
[tex]1+\frac{p-1}{\gcd(p-1,r)} [/tex]

I don't know that I see the above. For example modulo 7 there is only one element of order 2, which is 6. But your formula suggests to me 3.
 
  • #17
robert Ihnot said:
[tex]1+\frac{p-1}{\gcd(p-1,r)} [/tex]

I don't know that I see the above. For example modulo 7 there is only one element of order 2, which is 6. But your formula suggests to me 3.

The formula gives the number of different r'th power remainders modulo p. For example, if you tried p = 7, and r = 2, that gives the quadratic remainders 0, 1 ,4, 9 = 2, 16=2, 25 = 4, 36 = 1 i.e. 0,1,2,4. The formula suggests 1 + 6/2 = 4, which is correct.

Considering the third powers, we have only 3 as the formula suggests, namely 0,1,6.
 
Last edited:
  • #18
The proof I included will immediately generalize to rth powers by excluding primes such that [itex](r,p-1)\neq 1[/itex] from the factorization of [itex]t[/itex] in place of primes of the form [itex]6k+1[/itex].

Morover the formula [itex]1+\frac{p-1}{(p-1,r)}[/itex] that Jarle includes gives the size of the image of the mapping [itex]\kappa:\Phi_p\rightarrow \Phi_p[/itex] that I referred to plus [itex]1[/itex] for the image of [itex]\kappa:\Psi_p\rightarrow \Psi_p[/itex]. The formula relies on the fact that the group [itex]{\mathbb Z}_p-\{0\}[/itex] is cyclic (i.e. the existence of a primitive root) rather than just
Jarle said:
... by the fact that the order of any non-zero number modulo p divides [tex]\phi(p)=p-1[/tex].
as Jarle states.

It is not necessary to assume the existence of primitive roots to prove the result required. (The proof I included doesn't).

Jarle said:
Some simple observations will yield that n^3 will generate all remainders modulo t whenever t is not divisible by any square by matching up remainders to t's respective prime divisors (which all must equal 2 modulo 3). A proof is easily found by induction on the number of prime factors

Is what Jarle has in mind here is an application of the Chinese remainder theorem?
 
  • #19
Martin Rattigan said:
The formula relies on the fact that the group [itex]{\mathbb Z}_p-\{0\}[/itex] is cyclic (i.e. the existence of a primitive root) rather than just
... by the fact that the order of any non-zero number modulo p divides [tex]\phi(p)=p-1[/tex]
as Jarle states.

Erm, I can hardly see a correction here. I did state that it followed from the group properties of [tex]\mathbb{Z}_p / \{ 0 \}[/tex], which includes the fact that the group is cyclic.

Martin Rattigan said:
Is what Jarle has in mind here is an application of the Chinese remainder theorem?

Many ways lead to rome. Using the fact that the factors are relatively prime you can easily match up corresponding remainders. No need for an overkill.
 
  • #20
Jarle said:
Erm, I can hardly see a correction here. I did state that it followed from the group properties of [tex]\mathbb{Z}_p / \{ 0 \}[/tex], which includes the fact that the group is cyclic.

I wanted to make the point that the result could be proved without using the fact that primitive roots exist. In your post there was no indication that the assumption of the existence of primitive roots was necessary for the proof you outline; the sentence I quoted from your post in fact tends to suggest that it isn't.

Gerenuk has claimed to know only the very basic terms, so could be unaware that [itex]\mathbb{Z}_p - \{0 \}[/itex] is cyclic.

Jarle said:
Many ways lead to rome. Using the fact that the factors are relatively prime you can easily match up corresponding remainders. No need for an overkill.

This appears to be the main part of your proof. How would you do it?
 
  • #21
Martin Rattigan said:
This appears to be the main part of your proof. How would you do it?

One way could be by induction:

Let P be a product of k primes such that the hypothesis is true for all products of length less than or equal to k, and Pp a new product of k+1 primes, where p is a suitable prime relatively prime to P. Suppose [tex](m+ap)^r=(n+bp)^r \pmod{Pp}[/tex] for [tex]0 \leq m,n < p, 0 \leq a,b < P[/tex]. First, this implies that m = n modulo p by hypothesis, so m=n. However, m+ap for [tex]0 \leq a < P[/tex] are P different elements modulo P (as p is relatively prime to P), so [tex](m+ap)^r[/tex] are different modulo P by hypothesis, which means a=b, and thus m+ap=n+bp.
 
Last edited:
  • #22
Yes that's a fairly straightforward direct proof that makes no reference to the Chinese remainder theorem, so could be regarded as preferable to the proof I gave.
 

1. What is the concept of "N^3 mod t covers all remainders"?

The concept of "N^3 mod t covers all remainders" refers to the mathematical property where the cube of any positive integer, when divided by a given positive integer t, will result in all possible remainders from 0 to t-1.

2. What is the significance of this property in mathematics?

This property is significant in number theory and modular arithmetic, as it helps in determining the smallest positive integer that satisfies a given modular equation. It also has applications in encryption algorithms and coding theory.

3. Can you provide an example to illustrate this property?

Sure, for instance, let's take the positive integer 5. The cube of 5 is 125. When divided by 7, we get a remainder of 6. However, when we divide 125 by any other positive integer less than 7, we get a remainder between 0 and 6. Hence, N^3 mod 7 covers all remainders from 0 to 6.

4. Is this property true for all values of N and t?

Yes, this property is true for all positive integers N and t. It is a fundamental property of modular arithmetic.

5. How is this property useful in real-world applications?

This property has various applications in computer science, especially in cryptography. It helps in creating strong encryption algorithms that are difficult to crack. It is also used in coding theory to detect and correct errors in data transmission. Additionally, it has applications in game theory and probability, such as in determining the probability of certain outcomes in a game or scenario.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
787
Replies
11
Views
482
  • Linear and Abstract Algebra
Replies
1
Views
854
Replies
5
Views
2K
  • Differential Equations
Replies
7
Views
387
  • Precalculus Mathematics Homework Help
Replies
27
Views
2K
  • Differential Equations
Replies
1
Views
662
  • Quantum Physics
Replies
3
Views
946
  • Linear and Abstract Algebra
Replies
8
Views
1K
Replies
3
Views
2K
Back
Top