We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/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
Sunday, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
Sunday, Apr 13 - Aug 10
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
Tuesday, Mar 25 - Jul 8
Sunday, Apr 13 - Aug 10
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, Mar 23 - Jul 20
Monday, Apr 7 - Jul 28
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
Sunday, Mar 16 - Jun 8
Wednesday, Apr 16 - Jul 2
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
Monday, Mar 17 - Jun 9
Thursday, Apr 17 - Jul 3
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
Sunday, Mar 2 - Jun 22
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
Wednesday, Apr 23 - Oct 1
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

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
Monday, Apr 21 - Oct 13
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
Sunday, Mar 23 - Aug 3
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Sunday, Mar 16 - Aug 24
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
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
Sunday, Mar 23 - Jun 15
Wednesday, Apr 16 - Jul 2
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
Friday, Apr 11 - Jun 27
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
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
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

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
Monday, Mar 24 - Jun 16
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
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Mar 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
n! divides product of (2^n-2^k) for k=0,..,n-1
efoski1687   11
N 6 minutes ago by Assassino9931
Source: Turkish NMO 1996, 5. Problem
Prove that $\prod\limits_{k=0}^{n-1}{({{2}^{n}}-{{2}^{k}})}$ is divisible by $n!$ for all positive integers $n$.
11 replies
efoski1687
Jul 31, 2011
Assassino9931
6 minutes ago
2^n+n=m!
crazyfehmy   12
N 19 minutes ago by Assassino9931
Source: Turkey National Olympiad Second Round 2013 P4
Find all positive integers $m$ and $n$ satisfying $2^n+n=m!$.
12 replies
crazyfehmy
Nov 28, 2013
Assassino9931
19 minutes ago
Problem 6 of Fourth round
GeorgeRP   3
N 21 minutes ago by Assassino9931
Source: XIII International Festival of Young Mathematicians Sozopol 2024, Theme for 10-12 grade
Let $P(x)$ be a polynomial in one variable with integer coefficients. Prove that the number of pairs $(m,n)$ of positive integers such that $2^n + P(n) = m!$, is finite.
3 replies
GeorgeRP
Sep 10, 2024
Assassino9931
21 minutes ago
Symmetric Tangents Concur on CD
ike.chen   43
N 31 minutes ago by Frd_19_Hsnzde
Source: ISL 2022/G3
Let $ABCD$ be a cyclic quadrilateral. Assume that the points $Q, A, B, P$ are collinear in this order, in such a way that the line $AC$ is tangent to the circle $ADQ$, and the line $BD$ is tangent to the circle $BCP$. Let $M$ and $N$ be the midpoints of segments $BC$ and $AD$, respectively. Prove that the following three lines are concurrent: line $CD$, the tangent of circle $ANQ$ at point $A$, and the tangent to circle $BMP$ at point $B$.
43 replies
+1 w
ike.chen
Jul 9, 2023
Frd_19_Hsnzde
31 minutes ago
Find maximum number of pairs whose product is at least 1
Photaesthesia   15
N an hour ago by Bluesoul
Source: 2024 China MO, Day 2, Problem 4
Let $a_1, a_2, \ldots, a_{2023}$ be nonnegative real numbers such that $a_1 + a_2 + \ldots + a_{2023} = 100$. Let $A = \left \{ (i,j) \mid 1 \leqslant i \leqslant j \leqslant 2023, \, a_ia_j \geqslant 1 \right\}$. Prove that $|A| \leqslant 5050$ and determine when the equality holds.

Proposed by Yunhao Fu
15 replies
Photaesthesia
Nov 29, 2023
Bluesoul
an hour ago
f(2) = 7, find all integer functions [Taiwan 2014 Quizzes]
v_Enhance   55
N an hour ago by Burmf
Find all increasing functions $f$ from the nonnegative integers to the integers satisfying $f(2)=7$ and \[ f(mn) = f(m) + f(n) + f(m)f(n) \] for all nonnegative integers $m$ and $n$.
55 replies
v_Enhance
Jul 18, 2014
Burmf
an hour ago
This problem has unintended solution, found by almost all who solved it :(
mshtand1   4
N an hour ago by Ilikeminecraft
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 11.7
Given a triangle \(ABC\), an arbitrary point \(D\) is chosen on the side \(AC\). In triangles \(ABD\) and \(CBD\), the angle bisectors \(BK\) and \(BL\) are drawn, respectively. The point \(O\) is the circumcenter of \(\triangle KBL\). Prove that the second intersection point of the circumcircles of triangles \(ABL\) and \(CBK\) lies on the line \(OD\).

Proposed by Anton Trygub
4 replies
mshtand1
Today at 1:00 AM
Ilikeminecraft
an hour ago
USAMO 2001 Problem 4
MithsApprentice   32
N 2 hours ago by HamstPan38825
Let $P$ be a point in the plane of triangle $ABC$ such that the segments $PA$, $PB$, and $PC$ are the sides of an obtuse triangle. Assume that in this triangle the obtuse angle opposes the side congruent to $PA$. Prove that $\angle BAC$ is acute.
32 replies
MithsApprentice
Sep 30, 2005
HamstPan38825
2 hours ago
APMO 2016: Line is tangent to circle
shinichiman   41
N 2 hours ago by Ilikeminecraft
Source: APMO 2016, problem 3
Let $AB$ and $AC$ be two distinct rays not lying on the same line, and let $\omega$ be a circle with center $O$ that is tangent to ray $AC$ at $E$ and ray $AB$ at $F$. Let $R$ be a point on segment $EF$. The line through $O$ parallel to $EF$ intersects line $AB$ at $P$. Let $N$ be the intersection of lines $PR$ and $AC$, and let $M$ be the intersection of line $AB$ and the line through $R$ parallel to $AC$. Prove that line $MN$ is tangent to $\omega$.

Warut Suksompong, Thailand
41 replies
shinichiman
May 16, 2016
Ilikeminecraft
2 hours ago
Parallelogram and a simple cyclic quadrilateral
Noob_at_math_69_level   5
N 2 hours ago by awesomeming327.
Source: DGO 2023 Individual P1
Let $ABC$ be an acute triangle with point $D$ lie on the plane such that $ABDC$ is a parallelogram. $H$ is the orthocenter of $\triangle{ABC}.$ $BH$ intersects $CD$ at $Y$ and $CH$ intersects $BD$ at $X.$ The circle with diameter $AH$ intersects the circumcircle of $\triangle{ABC}$ again at $Q.$ Prove that: The circumcircle of $\triangle{XQY}$ passes through the reflection point of $D$ over $BC.$

Proposed by MathLuis
5 replies
Noob_at_math_69_level
Dec 18, 2023
awesomeming327.
2 hours ago
Line through incenter tangent to a circle
Kayak   31
N 2 hours ago by ihategeo_1969
Source: Indian TST D1 P1
In an acute angled triangle $ABC$ with $AB < AC$, let $I$ denote the incenter and $M$ the midpoint of side $BC$. The line through $A$ perpendicular to $AI$ intersects the tangent from $M$ to the incircle (different from line $BC$) at a point $P$> Show that $AI$ is tangent to the circumcircle of triangle $MIP$.

Proposed by Tejaswi Navilarekallu
31 replies
Kayak
Jul 17, 2019
ihategeo_1969
2 hours ago
Changeable polynomials, can they ever become equal?
mshtand1   3
N 3 hours ago by CHESSR1DER
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 11.5
Initially, two constant polynomials are written on the board: \(0\) and \(1\). At each step, it is allowed to add \(1\) to one of the polynomials and to multiply another one by the polynomial \(45x + 2025\). Can the polynomials become equal at some point?

Proposed by Oleksii Masalitin
3 replies
mshtand1
Today at 12:47 AM
CHESSR1DER
3 hours ago
Finally my algebra that I am proud of
mshtand1   1
N 3 hours ago by RagvaloD
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 8.7
Find the smallest real number \(a\) such that for any positive integer number \(n > 2\) and any arrangement of the numbers from 1 to \(n\) on a circle, there exists a pair of adjacent numbers whose ratio (when dividing the larger number by the smaller one) is less than \(a\).

Proposed by Mykhailo Shtandenko
1 reply
mshtand1
Yesterday at 11:59 PM
RagvaloD
3 hours ago
Floor double summation
CyclicISLscelesTrapezoid   50
N 4 hours ago by Ilikeminecraft
Source: ISL 2021 A2
Which positive integers $n$ make the equation \[\sum_{i=1}^n \sum_{j=1}^n \left\lfloor \frac{ij}{n+1} \right\rfloor=\frac{n^2(n-1)}{4}\]true?
50 replies
CyclicISLscelesTrapezoid
Jul 12, 2022
Ilikeminecraft
4 hours ago
Mathlinks Day 2 Problem 4
ghu2024   16
N Jul 15, 2020 by chrono223
Find all integers $n$ such that $2n+1$ is a divisor of $(n!)^2 + 2^n$.

Proposed by Silouanos Brazitikos
16 replies
ghu2024
Jul 14, 2020
chrono223
Jul 15, 2020
Mathlinks Day 2 Problem 4
G H J
G H BBookmark kLocked kLocked NReply
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ghu2024
951 posts
#1
Y by
Find all integers $n$ such that $2n+1$ is a divisor of $(n!)^2 + 2^n$.

Proposed by Silouanos Brazitikos
This post has been edited 1 time. Last edited by ghu2024, Jul 14, 2020, 3:53 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Lcz
390 posts
#2
Y by
Casework on $2n+1$:

Hint.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ghu2024
951 posts
#3
Y by
How many points for proving $2n+1$ is prime?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hellomath010118
373 posts
#4 • 5 Y
Y by chrono223, Pluto1708, jchang0313, math_comb01, Exposter
You can show that $n!^2 \equiv (-1)^n (2n)! \pmod{2n+1}$. This shows that $2n+1$ is prime. Let $p=2n+1$. Then by Wilson in that case $n!^2 \equiv (-1)^{n+1} \pmod p$ Also $$2^{\frac{p-1}{2}}\equiv \left( \dfrac{2}{p} \right) \equiv (-1)^{\frac{p^2-1}{8}} \pmod p $$Thus you need two powers of $-1$ summing to $0$ so there sum must be odd. Casework mod $8$ should give $p \equiv 1/3 \pmod 8$ so the answer is $\boxed{n=\frac{p-1}{2} \quad p\equiv 1/3 \pmod 8}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lrjr24
966 posts
#5
Y by
ghu2024 wrote:
How many points for proving $2n+1$ is prime?

0, that is trivial progress.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CROWmatician
272 posts
#6 • 1 Y
Y by Mango247
:oops_sign:
This post has been edited 2 times. Last edited by CROWmatician, Jul 26, 2020, 9:24 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Dem0nfang
478 posts
#7
Y by
@above an odd number can have an even multiple.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CROWmatician
272 posts
#8
Y by
:oops_sign:
This post has been edited 1 time. Last edited by CROWmatician, Jul 26, 2020, 9:25 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rd123
473 posts
#9
Y by
$2$ is a multiple of $1$, so yes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
xyc
1 post
#11 • 1 Y
Y by Mango247
I’ve got 4 answers for this one and i am quite sure they are correct. First show 2n+1 is prime, then consider the parity of n, then use Wilson to get the mod for (n!)^2, finally a quadratic residue.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sshi
232 posts
#12
Y by
Hello, where can I find all of the problems to this contest? A link? It seems to me that the problems are quite nice.
This post has been edited 1 time. Last edited by sshi, Jul 14, 2020, 5:56 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
adityaguharoy
4655 posts
#13 • 1 Y
Y by TheMath_boy
This problem was proposed by Silouanos Brazitikos.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HKIS200543
380 posts
#14 • 1 Y
Y by jchang0313
If $2n+1$ is composite, then write $2n+1 = ab$ for odd numbers $a$ and $b$. Since $a \leq n$, it divides $n!$. Obviously, it does not divide $2^n$, so therefore $2n+1$ does not divide $(n!)^2 + 2^n$.

Now suppose $2n+1 = p$ for a prime $p$. Let $k$ be the number of even positive integers less than or equal to the $\frac{p-1}{2}$. Then the crucial fact is that
\begin{align*}
2^{\frac{p-1}{2}} \left( \frac{p-1}{2} \right)! &= 2 \cdot 4 \cdots (p-1) \\
&\equiv (2 \cdot 4 \cdots 2k) \cdot (2k+2) \cdot (2k+4) \cdots (p-1) \\
&\equiv (2 \cdot 4 \cdots 2k) \cdot (p - 2k - 2) \cdot (p - 2k - 4) \cdots 1 (-1)^k\\
&\equiv \left(\frac{p-1}{2}\right)! (-1)^k \pmod{p}
\end{align*}Thus $2^{\frac{p-1}{2}} = (-1)^k \pmod{p}$. It is a straightforward casework check to see that
\[ (-1)^k = \begin{cases}
1 &\text{if $p \equiv \pm 1 \pmod{8}$} \\
-1 &\text{if $p \equiv \pm 3 \pmod{8}$} .
\end{cases} \]On the other hand
\[ \left(\frac{p-1}{2} \right)!^2 \equiv (-1)^{\frac{p-1}{2}} (p-1)! \equiv (-1)^{\frac{p+1}{2}} \pmod{p} . \]By Wilson's Theorem (or the very simple fact that every invertible element has one unique inverse), we know that $(p-1)! \equiv -1 \pmod{p}$.
Therefore
\[ (n!)^2 + 2^n \equiv (-1)^{\frac{p+1}{2}} + (-1)^{\frac{p^2-1}{8}}. \]A manual check reveals that this is 0 if and only if $p \equiv 1,3 \pmod{8}$. Therefore the answer is $n = \frac{p-1}{2}$ for all $p \equiv 1,3 \pmod{8}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aryan-23
558 posts
#15 • 1 Y
Y by AlastorMoody
Alternatively one can use that for all $k<p$ , we have
$$(p-k)! (k-1)! \equiv (-1)^k \pmod p \implies \left(\left(\frac {p-1}{2}\right)!\right)^2 \equiv(-1)^{\frac {p+1}{2}} \pmod p$$
Now just check $p \equiv 1,3,5,7 \pmod 8$
(Keeping in mind the relevant quadratic reciprocity condition).

Cute problem btw :D
This post has been edited 5 times. Last edited by Aryan-23, Jul 14, 2020, 9:15 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Lcz
390 posts
#16
Y by
How many points for only getting the 3 mod 8 case :( i knew 8 worked but forgot about it
This post has been edited 2 times. Last edited by Lcz, Jul 14, 2020, 1:58 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Physicsknight
635 posts
#18
Y by
Note, $n=\frac {(p-1)}{2} $ where $p $ is an odd prime such that $n$ is odd.
If $2n+1$ is not prime, then it has a divisor less than $n,$ which divides $n!.$ If $2n+1$ is prime, then it has to be $3\pmod{4}.$ It can easily be proved that's sufficient.
Because it's $\equiv -1 $ not being a quadratic residue.
This post has been edited 1 time. Last edited by Physicsknight, Jul 15, 2020, 11:40 AM
Reason: Submission
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chrono223
228 posts
#19 • 1 Y
Y by Mango247
Physicsknight wrote:
If $2n+1\mid(n!)^2+2n.$ Then $2n+1\nmid n!,$ so $2n+1$ is prime.
$9\nmid 4!$
Z K Y
N Quick Reply
G
H
=
a