Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 2025
0 replies
NT FE from Taiwan TST
Kitayama_Yuji   13
N a few seconds ago by bin_sherlo
Source: 2024 Taiwan TST Round 2 Mock P3
Let $\mathbb{N}$ be the set of all positive integers. Find all functions $f\colon \mathbb{N}\to \mathbb{N}$ such that $mf(m)+(f(f(m))+n)^2$ divides $4m^4+n^2f(f(n))^2$ for all positive integers $m$ and $n$.
13 replies
Kitayama_Yuji
Mar 29, 2024
bin_sherlo
a few seconds ago
Yet another domino problem
juckter   15
N 3 minutes ago by lksb
Source: EGMO 2019 Problem 2
Let $n$ be a positive integer. Dominoes are placed on a $2n \times 2n$ board in such a way that every cell of the board is adjacent to exactly one cell covered by a domino. For each $n$, determine the largest number of dominoes that can be placed in this way.
(A domino is a tile of size $2 \times 1$ or $1 \times 2$. Dominoes are placed on the board in such a way that each domino covers exactly two cells of the board, and dominoes do not overlap. Two cells are said to be adjacent if they are different and share a common side.)
15 replies
juckter
Apr 9, 2019
lksb
3 minutes ago
Difference of counts of any 2 colors in any interesting rectangle is at most 1
NO_SQUARES   0
4 minutes ago
Source: 239 MO 2025 10-11 p8
Positive integer numbers $n$ and $k > 1$ are given. Losyash likes some of the cells of the $n \times n$ checkerboard. In addition, he is interested in any checkered rectangle with a perimeter of $2n + 2$, the upper-left corner of which coincides with the upper-left corner of the board (there are $n$ such rectangles in total). Given $n$ and $k$, determine whether Losyash can color each cell he likes in one of $k$ colors so that in any rectangle of interest to him the number of cells of any two colors differ by no more than $1$.
0 replies
NO_SQUARES
4 minutes ago
0 replies
Reflection of H about O and SA + SB + SC + AM < AB + BC + CA if US=UM.
NO_SQUARES   0
9 minutes ago
Source: 239 MO 2025 10-11 p7
Point $M$ is the midpoint of side $BC$ of an acute—angled triangle $ABC$. The point $U$ is symmetric to the orthocenter $ABC$ relative to its circumcenter. The point $S$ inside triangle $ABC$ is such that $US = UM$. Prove that $SA + SB + SC + AM < AB + BC + CA$.
0 replies
NO_SQUARES
9 minutes ago
0 replies
Inequalities
sqing   11
N 3 hours ago by sqing
Let $a,b,c> 0$ and $\frac{1}{a}+\frac{1}{b}+\frac{1}{c}=1.$ Prove that
$$  (1-abc) (1-a)(1-b)(1-c)  \ge 208 $$$$ (1+abc) (1-a)(1-b)(1-c)  \le -224 $$$$(1+a^2b^2c^2) (1-a)(1-b)(1-c)  \le -5840 $$
11 replies
sqing
Jul 12, 2024
sqing
3 hours ago
A rather difficult question
BeautifulMath0926   3
N 4 hours ago by evankuang
I got a difficult equation for users to solve:
Find all functions f: R to R, so that to all real numbers x and y,
1+f(x)f(y)=f(x+y)+f(xy)+xy(x+y-2) holds.
3 replies
BeautifulMath0926
Apr 13, 2025
evankuang
4 hours ago
The return of an inequality
giangtruong13   4
N 5 hours ago by sqing
Let $a,b,c$ be real positive number satisfy that: $a+b+c=1$. Prove that: $$\sum_{cyc} \frac{a}{b^2+c^2} \geq \frac{3}{2}$$
4 replies
giangtruong13
Mar 18, 2025
sqing
5 hours ago
Looking for users and developers
derekli   10
N 5 hours ago by Jackson0423
Guys I've been working on a web app that lets you grind high school lvl math. There's AMCs, AIME, BMT, HMMT, SMT etc. Also, it's infinite practice so you can keep grinding without worrying about finding new problems. Please consider helping me out by testing and also consider joining our developer team! :P :blush:

Link: https://stellarlearning.app/competitive
10 replies
derekli
Yesterday at 12:57 AM
Jackson0423
5 hours ago
Polynomial
kellyelliee   1
N 5 hours ago by Jackson0423
Let the polynomial $f(x)=x^2+ax+b$, where $a,b$ integers and $k$ is a positive integer. Suppose that the integers
$m,n,p$ satisfy: $f(m), f(n), f(p)$ are divisible by k. Prove that:
$(m-n)(n-p)(p-m)$ is divisible by k
1 reply
kellyelliee
Today at 3:57 AM
Jackson0423
5 hours ago
Sum of digits is 18
Ecrin_eren   14
N 5 hours ago by jestrada
How many 5 digit numbers are there such that sum of its digits is 18
14 replies
Ecrin_eren
May 3, 2025
jestrada
5 hours ago
IOQM 2022-23 P-7
lifeismathematics   2
N 6 hours ago by Adywastaken
Find the number of ordered pairs $(a,b)$ such that $a,b \in \{10,11,\cdots,29,30\}$ and
$\hspace{1cm}$ $GCD(a,b)+LCM(a,b)=a+b$.
2 replies
lifeismathematics
Oct 30, 2022
Adywastaken
6 hours ago
Inequalities
sqing   7
N Today at 10:31 AM by sqing
Let $ a,b,c>0 $ and $ a+b\leq 16abc. $ Prove that
$$ a+b+kc^3\geq\sqrt[4]{\frac{4k} {27}}$$$$ a+b+kc^4\geq\frac{5} {8}\sqrt[5]{\frac{k} {2}}$$Where $ k>0. $
$$ a+b+3c^3\geq\sqrt{\frac{2} {3}}$$$$ a+b+2c^4\geq \frac{5} {8}$$
7 replies
1 viewing
sqing
Yesterday at 12:46 PM
sqing
Today at 10:31 AM
China MO 1996 p1
math_gold_medalist28   1
N Today at 9:58 AM by MathsII-enjoy
Let ABC be a triangle with orthocentre H. The tangent lines from A to the circle with diameter BC touch this circle at P and Q. Prove that H, P and Q are collinear.
1 reply
math_gold_medalist28
May 2, 2025
MathsII-enjoy
Today at 9:58 AM
If it is an integer then perfect square
Ecrin_eren   1
N Today at 9:36 AM by Pal702004


"Let a, b, c, d be non-zero digits, and let abcd and dcba represent four-digit numbers.

Show that if the number abcd / dcba is an integer, then that integer is a perfect square."



1 reply
Ecrin_eren
May 1, 2025
Pal702004
Today at 9:36 AM
Very easy number theory
darij grinberg   102
N Apr 29, 2025 by ND_
Source: IMO Shortlist 2000, N1, 6th Kolmogorov Cup, 1-8 December 2002, 1st round, 1st league,
Determine all positive integers $ n\geq 2$ that satisfy the following condition: for all $ a$ and $ b$ relatively prime to $ n$ we have \[a \equiv b \pmod n\qquad\text{if and only if}\qquad ab\equiv 1 \pmod n.\]
102 replies
darij grinberg
Aug 6, 2004
ND_
Apr 29, 2025
Very easy number theory
G H J
Source: IMO Shortlist 2000, N1, 6th Kolmogorov Cup, 1-8 December 2002, 1st round, 1st league,
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Fibonacci_11235
44 posts
#92
Y by
Why is the problem equivalent to $(A)$ $x^2 \equiv 1 \pmod n$ for all $\gcd(x,n) = 1$?
We are given that $a \equiv b \pmod n \Leftrightarrow ab \equiv 1 \pmod n$ for $a$ and $b$ relatively prime to $n$.
But we used $a \equiv b \pmod n \Rightarrow ab \equiv 1 \pmod n$ to get $(A)$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ryanbear
1056 posts
#93
Y by
Only if case:
From the first $12$ values, get that $2,3,4,6,8$, and $12$ work.
Then, if $n$ does not divide $2$, then $a=b=2$ results in $4 \equiv 1 \pmod n$, which is false.
Similarly, if $n$ does not divide $3$, then $a=b=3$ results in $9 \equiv 1 \pmod n$, which is false.
So $n$ has to divide $6$
Get that $24$ also works but $18$ does not.
If $n \ge 25$, then if $n$ does not divide $5$, then $a=b=5$ results in $25 \equiv 1 \pmod n$, which is false.
So $n$ has to divide $30$.
Get that $30$ does not work and for $n \ge 60$, $a=7$ results in it not working
So $n$ has to divide $420$, but then $a=11$ does not work, so it has to divide $420*11$, and then it repeats, so it does not work since $p_1*p_2*...*p_n > (p_{n+1})^2$ for large $n$ where $p_n$ is the nth prime. This can be proved by induction because it is true for $n=4$ and if $n$ works, then the LHS is multiplied by $p_{n+1}$, but the RHS is multiplied by $(\frac{p_{n+2}}{p_{n+1}})^2 \ge 2^2 = 4$, so the LHS will remain larger. So the only numbers that work are $\boxed{2,3,4,6,8,12,24}$
Testing, all of those satisfy the if case.
This post has been edited 1 time. Last edited by ryanbear, Mar 11, 2024, 6:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Cusofay
85 posts
#94
Y by
It is easy to see that the condition is equivalent to $a^2 \equiv 1 \pmod{n}$ for any $a$ with $gcd(a,n)=1$. Set $n=2^xk$ where $k$ is odd. Then $gcd(n,k+2)=1$ thus from the condition $$(k+2)^2\equiv 1\pmod{n} \Rightarrow 4 \equiv 1 \pmod{k} $$Hence $k\in\{1,3\}$ so $5^2\equiv 1 \pmod{n}$. Some case work gives us $n\in \{2,3,4,6,8,12,24  \}$

$$\mathbb{Q.E.D.}$$
This post has been edited 2 times. Last edited by Cusofay, Mar 30, 2024, 12:36 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
351 posts
#95
Y by
I think I have a slightly different solution than those presented above.

We claim the answer is $n = 2, 3, 4, 6, 8, 12, 24$. All can be checked to work.

Now first, we will show that $n$ can only have $2$ or $3$ as prime factors. For the sake of contradiction, assume some prime $p_1 \ge 5$ divides $n$, and consider the prime factorization $n = p_1^{e_1} p_2^{e_2} \dots p_k^{e_k}$ where $p_i$ are primes and all $e_i$ are positive integers. Let $g$ be a primitive root of $p_1$. Then by Chinese Remainder Theorem, we can choose some residue $h \pmod{n}$ where
$$h \equiv g \pmod{p_1^{e_1}}, h \equiv 1 \pmod{p_2^{e_2}}, \dots, h \equiv 1 \pmod{p_k^{e_k}}.$$Clearly the order of $h$ in $\pmod{n}$ is $p - 1 > 2$. Then we can choose $a = h, b = h^{p - 2}$ which must be distinct and multiply to $1 \pmod{n}$. Contradiction. Then the only prime factors of $n$ is $2$ or $3$.

Now we can look at $a = 5, b = 5$, and we must have $25 \equiv 1 \pmod{n}$ which implies $n$ must be a factor of $24$ besides $1$. This implies the earlier mentioned solution set, and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Krave37
46 posts
#96
Y by
Proving that $a^2 \equiv 1 \pmod{n}$ is enough for both way.

Let us think about the case when $n = p$ where $p$ is a prime.

For a prime $(a+1)(a-1) \equiv 0 \pmod{p}$, this means either $p$ divides $a+1$ or $a-1$ or it can be both.

This we can observe as $a$ is the list of all numbers co prime to $n$, that $p = 2,3$ are the only primes satisfying this.

Now, we can see that for any general $n$, if $n$ has factors other than powers of $2$ and $3$, there is a problem.

Therefore, $n = 2^x.3^y$.
To such a number the smallest coprime will be 5, so $5^2 -1 \equiv 0 \pmod{2^x.3^y}$ holds,

This means that $2^x.3^y\leq 24$

By checking we get the solutions, 2,4,8,6,12,24
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sedro
5845 posts
#97
Y by
The only $n\ge 2$ that work are those satisfying $n\mid 24$. It is straightforward to check that these $n$ have the desired property; we now prove they are the only possible $n$.

Suppose $n$ has the property that if $\gcd(a,n)=\gcd(b,n)=1$ and $a\equiv b \pmod{n}$, then $ab\equiv 1\pmod{n}$. This is equivalent to saying that all $a$ coprime to $n$ have order $2$ modulo $n$. By CRT, if $p \mid n$, then $a$ must have at most order $2$ modulo $p$. Note that if $p>3$, then $p$ has a primitive root with order greater than $2$, so no prime greater than $3$ can divide $n$. Also observe that by CRT again, if $p^k \mid \mid n$, then $a$ must have at most order $2$ modulo $p$. For an integer $r\ge 4$, we have $3^2 < 2^r$, so $3$ has an order greater than $2$ modulo $2^r$, and for an integer $s\ge 2$, we have $2^2 < 3^s$, so $2$ has an order greater than $2$ modulo $3^r$. Thus, $v_2(n)\le 3$ and $v_3(n)\le 1$, which implies $n\mid 24$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
a_0a
34 posts
#98
Y by
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mahmudlusenan
24 posts
#99
Y by
just try to prove that $a^2 \equiv 1 \pmod{n}$ and $b^2 \equiv 1 \pmod{n}$
so $n\mid a^2-1$ and $n\mid b^2-1$ for all a,b $(a,n)=(b,n)=1$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1263 posts
#100
Y by
We only consider $n$ prime power, as all other $n$ must be composed of prime powers that work.

Now observe for odd prime powers greater than $4$, take $a = b = 2$, then $ab = 4$ which is not $1$ mod $n$. This leaves us to check $3$, which obviously works, and even prime powers. Observe $16$ fails since $16 \mid 5 \cdot 13 - 1$, so we check $8$. We check that $a^2 \equiv 1$ mod $8$ for all odd $8$, by injectivity of multiplication we can check the only if part, so $8$ works.

By CRT, if two relatively prime things work, so do their product, and we know that the possible prime power divisors of $n$ are $2,3,4,8$, so the answer is just the divisors of $24$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pie854
243 posts
#103
Y by
Note that this implies $a^2\equiv 1\pmod n$ for all $a$ coprime to $n$. Due to primitive roots, it follows that $n=2^k$ or $n=3\cdot 2^k$. It's easy to check such $n$ works when $k\le 3$ and doesn't work when $k>3$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
575 posts
#104
Y by
Note that $a \equiv b \implies a^2-1 \equiv 0 \pmod n.$ Therefore, for each prime power divisor of $n,$ $p_i^{e_i},$ $$a \equiv \pm 1 \pmod{p_i^{e_i}}$$if and only if $a$ is relatively prime to $n.$ Therefore, $p_i = 2, 3.$ Testing gives $2, 4, 8$ and $3,$ so the answers are just the divisors of $24.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DakshAggarwalRedsurgance
10 posts
#105
Y by
let a no. be good if for all a,b relatively prime to n, we have
a = b(mod n) implies ab = 1 (mod n ).
If some no. satisfies the inverse as well than call it perfect.

Note that some no. is good only if all the factors of n are good.

Claim 1 - If some prime p divides n (a perfect no.) than so do all the primes less than equal to p. for all p > 3
proof- you can use the fact that if p does not divide n that p^2 - 1 must be divisibe by n.
note 5 is not a good no.
so good no. are multilples of 2 and/or 3.
using 5^2 - 1 is divisible by perfect no. we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Turtwig113
128 posts
#106
Y by
Take any prime $p \geq 5$ dividing $n$. Then $ab \equiv 1 \pmod{p}$ must be true if $a \equiv b \pmod{p}$, and $a, b$ are relatively prime to $p$. Now by Chinese Remainder Theorem we get for any $0 < k < p$ that there exist $a, b \equiv k \pmod{p}$ that are relatively prime to $n$, yielding $p=2$ or $p=3$. Therefore $n=2^x3^y$ for some $x, y$, and by plugging $a=5, b=5$ we get $2^m3^n \mid 24$. Checking all the divisors of 24 yields that all of them work as possible $n$, therefore the answers are $\boxed{1, 2, 3, 4, 6, 8, 12, 24}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sharknavy75
700 posts
#107
Y by
If $n \in \mathbb{P}$ and $n \not \equiv 0 \pmod 2$ and $n \not \equiv 0 \pmod 3,$ then $2\cdot \frac{n+1}{2} \equiv 1 \pmod n.$ By Chinese Remainder Theorem, $n = 2^x3^y$ where $x, y \in \mathbb{N}_0.$ We can say $n \le 24$ by using $a \equiv b \equiv 5 \pmod n.$ We can easily verify the solutions $n$ satisfy the condition $n \not = 1$ and $n \mid 24.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ND_
51 posts
#108
Y by
We get that $a^2 \equiv 1~ (mod~p)$ for every prime $p$ dividing $n$ and $gcd(a,n)=1$. Let $a$ be a primitive root of $p$, then $2 \mid p-1 = ord_p(a) \Rightarrow n=2^l3^m$.
Since $5 \nmid n$, $5^2 \equiv 1$ (mod n) $\Rightarrow n \mid 24$
$n=24$ works, so the answer is $n=2,3,8,3,6,12,24$
Z K Y
N Quick Reply
G
H
=
a