Remainder of the product of the relatively prime numbers

Click For Summary

Discussion Overview

The discussion revolves around finding a pattern for the remainder of the product of integers that are relatively prime to a given integer \( m \) when taken modulo \( m \). Participants explore the conditions under which this product is congruent to 1 or -1 modulo \( m \), referencing numerical examples and theoretical implications.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a problem regarding the product \( B \) of integers relatively prime to \( m \) and asks for patterns in \( B \equiv 1 \mod m \) and \( B \equiv -1 \mod m \).
  • Another participant shares results from a Pari/gp computation, providing a table of values for \( m \) and the corresponding remainders of \( B \) modulo \( m \).
  • A third participant confirms they have obtained a similar table but notes difficulty in identifying a clear pattern, suggesting that if \( 4 \) does not divide \( \varphi(m) \), then \( B \equiv -1 \), and if \( B \equiv 1 \), \( 4 \) must divide \( \varphi(m) \).
  • A later reply references a connection to Wilson's Theorem, indicating a potential theoretical underpinning for the observed behavior.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the identification of a definitive pattern, with some proposing specific conditions while others contribute numerical data without reaching consensus on a general rule.

Contextual Notes

The discussion includes limitations related to the lack of a clear theoretical framework for the observed results and the dependence on specific values of \( m \) and \( \varphi(m) \). The implications of Wilson's Theorem are mentioned but not fully explored in the context of this problem.

whodsow
Messages
12
Reaction score
0
Hi all, I had a problem, pls help me.

Let [tex]b_1 < b_2 < \cdots < b_{\varphi(m)}[/tex] be the integers between 1 and m that are relatively prime to m (including 1), of course, [tex]\varphi(m)[/tex] is the number of integers between 1 and m that are relatively prime to m, and let [tex]B = b_1b_2b_3{\cdots}b_{\varphi(m)}[/tex] be their product.
Please find a pattern for when [tex]B\equiv1 ({\bmod}\ m)[/tex] and when [tex]B\equiv-1 ({\bmod}\ m)[/tex].

Thanks and Regards.
 
Last edited:
Physics news on Phys.org
Code:
ff(m)=centerlift(prod(b=2,m,if(gcd(m,b)==1,b,1),Mod(1,m)))
for(m=2,20,print(m" "ff(m)))
in Pari/gp gives
Code:
2 1
3 -1
4 -1
5 -1
6 -1
7 -1
8 1
9 -1
10 -1
11 -1
12 1
13 -1
14 -1
15 1
16 1
17 -1
18 -1
19 -1
20 1

Does that help?
 
Thank you, I've gotten the similar table.
Code:
m	phi	rem
1	1	1
4	2	-1
6	2	-1
8	4	1
9	6	-1
10	4	-1
12	4	1
14	6	-1
15	8	1
16	8	1
18	6	-1
20	8	1
21	12	1
22	10	-1
24	8	1
25	20	-1
26	12	-1
27	18	-1
28	12	1
30	8	1
32	16	1
33	20	1
34	16	-1
35	24	1
36	12	1
38	18	-1
39	24	1
40	16	1
42	12	1
44	20	1
45	24	1
46	22	-1
48	16	1
49	42	-1
50	20	-1
51	32	1
52	24	1
54	18	-1
55	40	1
56	24	1
57	36	1
58	28	-1
60	16	1
62	30	-1
63	36	1
64	32	1
65	48	1
66	20	1
68	32	1
69	44	1
70	24	1
72	24	1
74	36	-1
75	40	1
76	36	1
77	60	1
78	24	1
80	32	1
81	54	-1
82	40	-1
84	24	1
85	64	1
86	42	-1
87	56	1
88	40	1
90	24	1
91	72	1
92	44	1
93	60	1
94	46	-1
95	72	1
96	32	1
98	42	-1
99	60	1
but I still can't find the ppattern, and I have only found that if 4 does not divide [tex]\phi(m)[/tex] then [tex]B{\equiv}-1[/tex], and if [tex]B{\equiv}1[/tex], there must be that 4 divides [tex]\phi(m)[/tex]
 
Last edited:

Similar threads

  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 22 ·
Replies
22
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K
Replies
7
Views
3K
  • · Replies 26 ·
Replies
26
Views
2K