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

G
Topic
First Poster
Last Poster
a My Retirement & New Leadership at AoPS
rrusczyk   1643
N 2 minutes ago by Tinsel
I write today to announce my retirement as CEO from Art of Problem Solving. When I founded AoPS 22 years ago, I never imagined that we would reach so many students and families, or that we would find so many channels through which we discover, inspire, and train the great problem solvers of the next generation. I am very proud of all we have accomplished and I’m thankful for the many supporters who provided inspiration and encouragement along the way. I'm particularly grateful to all of the wonderful members of the AoPS Community!

I’m delighted to introduce our new leaders - Ben Kornell and Andrew Sutherland. Ben has extensive experience in education and edtech prior to joining AoPS as my successor as CEO, including starting like I did as a classroom teacher. He has a deep understanding of the value of our work because he’s an AoPS parent! Meanwhile, Andrew and I have common roots as founders of education companies; he launched Quizlet at age 15! His journey from founder to MIT to technology and product leader as our Chief Product Officer traces a pathway many of our students will follow in the years to come.

Thank you again for your support for Art of Problem Solving and we look forward to working with millions more wonderful problem solvers in the years to come.

And special thanks to all of the amazing AoPS team members who have helped build AoPS. We’ve come a long way from here:IMAGE
1643 replies
+6 w
rrusczyk
Mar 24, 2025
Tinsel
2 minutes ago
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 A Letter to MSM
Arr0w   23
N Sep 19, 2022 by scannose
Greetings.

I have seen many posts talking about commonly asked questions, such as finding the value of $0^0$, $\frac{1}{0}$,$\frac{0}{0}$, $\frac{\infty}{\infty}$, why $0.999...=1$ or even expressions of those terms combined as if that would make them defined. I have made this post to answer these questions once and for all, and I politely ask everyone to link this post to threads that are talking about this issue.
[list]
[*]Firstly, the case of $0^0$. It is usually regarded that $0^0=1$, not because this works numerically but because it is convenient to define it this way. You will see the convenience of defining other undefined things later on in this post.

[*]What about $\frac{\infty}{\infty}$? The issue here is that $\infty$ isn't even rigorously defined in this expression. What exactly do we mean by $\infty$? Unless the example in question is put in context in a formal manner, then we say that $\frac{\infty}{\infty}$ is meaningless.

[*]What about $\frac{1}{0}$? Suppose that $x=\frac{1}{0}$. Then we would have $x\cdot 0=0=1$, absurd. A more rigorous treatment of the idea is that $\lim_{x\to0}\frac{1}{x}$ does not exist in the first place, although you will see why in a calculus course. So the point is that $\frac{1}{0}$ is undefined.

[*]What about if $0.99999...=1$? An article from brilliant has a good explanation. Alternatively, you can just use a geometric series. Notice that
\begin{align*}
\sum_{n=1}^{\infty} \frac{9}{10^n}&=9\sum_{n=1}^{\infty}\frac{1}{10^n}=9\sum_{n=1}^{\infty}\biggr(\frac{1}{10}\biggr)^n=9\biggr(\frac{\frac{1}{10}}{1-\frac{1}{10}}\biggr)=9\biggr(\frac{\frac{1}{10}}{\frac{9}{10}}\biggr)=9\biggr(\frac{1}{9}\biggr)=\boxed{1}
\end{align*}
[*]What about $\frac{0}{0}$? Usually this is considered to be an indeterminate form, but I would also wager that this is also undefined.
[/list]
Hopefully all of these issues and their corollaries are finally put to rest. Cheers.

2nd EDIT (6/14/22): Since I originally posted this, it has since blown up so I will try to add additional information per the request of users in the thread below.

INDETERMINATE VS UNDEFINED

What makes something indeterminate? As you can see above, there are many things that are indeterminate. While definitions might vary slightly, it is the consensus that the following definition holds: A mathematical expression is be said to be indeterminate if it is not definitively or precisely determined. So how does this make, say, something like $0/0$ indeterminate? In analysis (the theory behind calculus and beyond), limits involving an algebraic combination of functions in an independent variable may often be evaluated by replacing these functions by their limits. However, if the expression obtained after this substitution does not provide sufficient information to determine the original limit, then the expression is called an indeterminate form. For example, we could say that $0/0$ is an indeterminate form.

But we need to more specific, this is still ambiguous. An indeterminate form is a mathematical expression involving at most two of $0$, $1$ or $\infty$, obtained by applying the algebraic limit theorem (a theorem in analysis, look this up for details) in the process of attempting to determine a limit, which fails to restrict that limit to one specific value or infinity, and thus does not determine the limit being calculated. This is why it is called indeterminate. Some examples of indeterminate forms are
\[0/0, \infty/\infty, \infty-\infty, \infty \times 0\]etc etc. So what makes something undefined? In the broader scope, something being undefined refers to an expression which is not assigned an interpretation or a value. A function is said to be undefined for points outside its domain. For example, the function $f:\mathbb{R}^{+}\cup\{0\}\rightarrow\mathbb{R}$ given by the mapping $x\mapsto \sqrt{x}$ is undefined for $x<0$. On the other hand, $1/0$ is undefined because dividing by $0$ is not defined in arithmetic by definition. In other words, something is undefined when it is not defined in some mathematical context.

WHEN THE WATERS GET MUDDIED

So with this notion of indeterminate and undefined, things get convoluted. First of all, just because something is indeterminate does not mean it is not undefined. For example $0/0$ is considered both indeterminate and undefined (but in the context of a limit then it is considered in indeterminate form). Additionally, this notion of something being undefined also means that we can define it in some way. To rephrase, this means that technically, we can make something that is undefined to something that is defined as long as we define it. I'll show you what I mean.

One example of making something undefined into something defined is the extended real number line, which we define as
\[\overline{\mathbb{R}}=\mathbb{R}\cup \{-\infty,+\infty\}.\]So instead of treating infinity as an idea, we define infinity (positively and negatively, mind you) as actual numbers in the reals. The advantage of doing this is for two reasons. The first is because we can turn this thing into a totally ordered set. Specifically, we can let $-\infty\le a\le \infty$ for each $a\in\overline{\mathbb{R}}$ which means that via this order topology each subset has an infimum and supremum and $\overline{\mathbb{R}}$ is therefore compact. While this is nice from an analytic standpoint, extending the reals in this way can allow for interesting arithmetic! In $\overline{\mathbb{R}}$ it is perfectly OK to say that,
\begin{align*}
a + \infty = \infty + a & = \infty, & a & \neq -\infty \\
a - \infty = -\infty + a & = -\infty, & a & \neq \infty \\
a \cdot (\pm\infty) = \pm\infty \cdot a & = \pm\infty, & a & \in (0, +\infty] \\
a \cdot (\pm\infty) = \pm\infty \cdot a & = \mp\infty, & a & \in [-\infty, 0) \\
\frac{a}{\pm\infty} & = 0, & a & \in \mathbb{R} \\
\frac{\pm\infty}{a} & = \pm\infty, & a & \in (0, +\infty) \\
\frac{\pm\infty}{a} & = \mp\infty, & a & \in (-\infty, 0).
\end{align*}So addition, multiplication, and division are all defined nicely. However, notice that we have some indeterminate forms here which are also undefined,
\[\infty-\infty,\frac{\pm\infty}{\pm\infty},\frac{\pm\infty}{0},0\cdot \pm\infty.\]So while we define certain things, we also left others undefined/indeterminate in the process! However, in the context of measure theory it is common to define $\infty \times 0=0$ as greenturtle3141 noted below. I encourage to reread what he wrote, it's great stuff! As you may notice, though, dividing by $0$ is undefined still! Is there a place where it isn't? Kind of. To do this, we can extend the complex numbers! More formally, we can define this extension as
\[\mathbb{C}^*=\mathbb{C}\cup\{\tilde{\infty}\}\]which we call the Riemann Sphere (it actually forms a sphere, pretty cool right?). As a note, $\tilde{\infty}$ means complex infinity, since we are in the complex plane now. Here's the catch: division by $0$ is allowed here! In fact, we have
\[\frac{z}{0}=\tilde{\infty},\frac{z}{\tilde{\infty}}=0.\]where $\tilde{\infty}/\tilde{\infty}$ and $0/0$ are left undefined. We also have
\begin{align*}
z+\tilde{\infty}=\tilde{\infty}, \forall z\ne -\infty\\
z\times \tilde{\infty}=\tilde{\infty}, \forall z\ne 0
\end{align*}Furthermore, we actually have some nice properties with multiplication that we didn't have before. In $\mathbb{C}^*$ it holds that
\[\tilde{\infty}\times \tilde{\infty}=\tilde{\infty}\]but $\tilde{\infty}-\tilde{\infty}$ and $0\times \tilde{\infty}$ are left as undefined (unless there is an explicit need to change that somehow). One could define the projectively extended reals as we did with $\mathbb{C}^*$, by defining them as
\[{\widehat {\mathbb {R} }}=\mathbb {R} \cup \{\infty \}.\]They behave in a similar way to the Riemann Sphere, with division by $0$ also being allowed with the same indeterminate forms (in addition to some other ones).
23 replies
Arr0w
Feb 11, 2022
scannose
Sep 19, 2022
k i Marathon Threads
LauraZed   0
Jul 2, 2019
Due to excessive spam and inappropriate posts, we have locked the Prealgebra and Beginning Algebra threads.

We will either unlock these threads once we've cleaned them up or start new ones, but for now, do not start new marathon threads for these subjects. Any new marathon threads started while this announcement is up will be immediately deleted.
0 replies
LauraZed
Jul 2, 2019
0 replies
k i Basic Forum Rules and Info (Read before posting)
jellymoop   368
N May 16, 2018 by harry1234
f (Reminder: Do not post Alcumus or class homework questions on this forum. Instructions below.) f
Welcome to the Middle School Math Forum! Please take a moment to familiarize yourself with the rules.

Overview:
[list]
[*] When you're posting a new topic with a math problem, give the topic a detailed title that includes the subject of the problem (not just "easy problem" or "nice problem")
[*] Stay on topic and be courteous.
[*] Hide solutions!
[*] If you see an inappropriate post in this forum, simply report the post and a moderator will deal with it. Don't make your own post telling people they're not following the rules - that usually just makes the issue worse.
[*] When you post a question that you need help solving, post what you've attempted so far and not just the question. We are here to learn from each other, not to do your homework. :P
[*] Avoid making posts just to thank someone - you can use the upvote function instead
[*] Don't make a new reply just to repeat yourself or comment on the quality of others' posts; instead, post when you have a new insight or question. You can also edit your post if it's the most recent and you want to add more information.
[*] Avoid bumping old posts.
[*] Use GameBot to post alcumus questions.
[*] If you need general MATHCOUNTS/math competition advice, check out the threads below.
[*] Don't post other users' real names.
[*] Advertisements are not allowed. You can advertise your forum on your profile with a link, on your blog, and on user-created forums that permit forum advertisements.
[/list]

Here are links to more detailed versions of the rules. These are from the older forums, so you can overlook "Classroom math/Competition math only" instructions.
Posting Guidelines
Update on Basic Forum Rules
What belongs on this forum?
How do I write a thorough solution?
How do I get a problem on the contest page?
How do I study for mathcounts?
Mathcounts FAQ and resources
Mathcounts and how to learn

As always, if you have any questions, you can PM me or any of the other Middle School Moderators. Once again, if you see spam, it would help a lot if you filed a report instead of responding :)

Marathons!
Relays might be a better way to describe it, but these threads definitely go the distance! One person starts off by posting a problem, and the next person comes up with a solution and a new problem for another user to solve. Here's some of the frequently active marathons running in this forum:
[list][*]Algebra
[*]Prealgebra
[*]Proofs
[*]Factoring
[*]Geometry
[*]Counting & Probability
[*]Number Theory[/list]
Some of these haven't received attention in a while, but these are the main ones for their respective subjects. Rather than starting a new marathon, please give the existing ones a shot first.

You can also view marathons via the Marathon tag.

Think this list is incomplete or needs changes? Let the mods know and we'll take a look.
368 replies
jellymoop
May 8, 2015
harry1234
May 16, 2018
The daily problem!
Leeoz   32
N a few seconds ago by Leeoz
Every day, I will try to post a new problem for you all to solve! If you want to post a daily problem, you can! :)

Please hide solutions and answers, hints are fine though! :)

The first problem is:
[quote=March 21st Problem]Alice flips a fair coin until she gets 2 heads in a row, or a tail and then a head. What is the probability that she stopped after 2 heads in a row? Express your answer as a common fraction.[/quote]
32 replies
1 viewing
Leeoz
Mar 21, 2025
Leeoz
a few seconds ago
Coins in a circle
JuanDelPan   15
N 4 minutes ago by Ilikeminecraft
Source: Pan-American Girls’ Mathematical Olympiad 2021, P1
There are $n \geq 2$ coins numbered from $1$ to $n$. These coins are placed around a circle, not necesarily in order.

In each turn, if we are on the coin numbered $i$, we will jump to the one $i$ places from it, always in a clockwise order, beginning with coin number 1. For an example, see the figure below.

Find all values of $n$ for which there exists an arrangement of the coins in which every coin will be visited.
15 replies
JuanDelPan
Oct 6, 2021
Ilikeminecraft
4 minutes ago
Exponential + factorial diophantine
62861   34
N 17 minutes ago by ali123456
Source: USA TSTST 2017, Problem 4, proposed by Mark Sellke
Find all nonnegative integer solutions to $2^a + 3^b + 5^c = n!$.

Proposed by Mark Sellke
34 replies
62861
Jun 29, 2017
ali123456
17 minutes ago
Everybody has 66 balls
YaoAOPS   3
N 29 minutes ago by Blast_S1
Source: 2025 CTST P5
There are $2025$ people and $66$ colors, where each person has one ball of each color. For each person, their $66$ balls have positive mass summing to one. Find the smallest constant $C$ such that regardless of the mass distribution, each person can choose one ball such that the sum of the chosen balls of each color does not exceed $C$.
3 replies
YaoAOPS
Mar 6, 2025
Blast_S1
29 minutes ago
Inspired by IMO 1984
sqing   4
N 30 minutes ago by SunnyEvan
Source: Own
Let $ a,b,c\geq 0 $ and $a+b+c=1$. Prove that
$$a^2+b^2+ ab +24abc\leq\frac{81}{64}$$Equality holds when $a=b=\frac{3}{8},c=\frac{1}{4}.$
$$a^2+b^2+ ab +18abc\leq\frac{343}{324}$$Equality holds when $a=b=\frac{7}{18},c=\frac{2}{9}.$
4 replies
sqing
Today at 3:01 AM
SunnyEvan
30 minutes ago
Newton Sums
mithu542   6
N an hour ago by Soupboy0
Should I memorize Newton's Sums? I already know the first two, but do you think it is worthy to memorize some more (especially 3)?

Website about Newton Sums
6 replies
mithu542
Today at 1:59 AM
Soupboy0
an hour ago
If you'll be at the National MathCounts competition
Chatelet1   10
N an hour ago by Soupboy0
Don't forget to greet Richard if encountered in the hallway. He's retiring early at 53, so it's a good chance to wish him well!

Seminar on May 11:
Preparing Strong Math Students for College and Careers
9:30 – 10:30am ET | Anacostia Ballroom
Presented by Richard Rusczyk, Art of Problem Solving Founder.

Retirement announcement from Richard (3/24/2025)

I write today to announce my retirement as CEO from Art of Problem Solving. When I founded AoPS 22 years ago, I never imagined that we would reach so many students and families, or that we would find so many channels through which we discover, inspire, and train the great problem solvers of the next generation. I am very proud of all we have accomplished and I’m deeply grateful to all the AoPS team members who have helped build AoPS. I’m also thankful for the many supporters who provided inspiration and encouragement along the way.

I’m delighted to introduce our new leaders – Ben Kornell and Andrew Sutherland. Ben has extensive experience in education and edtech prior to joining AoPS as my successor as CEO, including starting like I did as a classroom teacher. He has a deep understanding of the value of our work because he’s an AoPS parent! Meanwhile, Andrew and I have common roots as founders of education companies; he launched Quizlet at age 15! His journey from founder to MIT to technology and product leader as our Chief Product Officer traces a pathway many of our students will follow in the years to come.
10 replies
Chatelet1
Mar 24, 2025
Soupboy0
an hour ago
Construct problem
makurorin   1
N 3 hours ago by vincentwant
Construct angle 3 degree.
1 reply
makurorin
Today at 6:20 AM
vincentwant
3 hours ago
Anyone who knows MATHCOUNTS well?
ysn613   19
N 4 hours ago by ysn613
I missed the signup for MATHCOUNTS this year, and I think I could have made it to nats, based on my scores on the tests(I took them after MATHCOUNTS posted them on their website). Anyone have any study tips for next year?

P.S. Does anybody know if you can sign up for MATHCOUNTS individually, or do I need to try to convince 3 other kids from my school to compete?
19 replies
ysn613
Yesterday at 11:33 PM
ysn613
4 hours ago
Bogus Proof Marathon
pifinity   7519
N 4 hours ago by vincentwant
Hi!
I'd like to introduce the Bogus Proof Marathon.

In this marathon, simply post a bogus proof that is middle-school level and the next person will find the error. You don't have to post the real solution :P

Use classic Marathon format:
[hide=P#]a1b2c3[/hide]
[hide=S#]a1b2c3[/hide]


Example posts:

P(x)
-----
S(x)
P(x+1)
-----
Let's go!! Just don't make it too hard!
7519 replies
pifinity
Mar 12, 2018
vincentwant
4 hours ago
2018 State Mathcounts Sprint 30
ObiWanKenoblowin   4
N 5 hours ago by programjames1
Is there a non cord-bash way to solve this? Please let me know, thanks!
4 replies
ObiWanKenoblowin
Today at 4:18 PM
programjames1
5 hours ago
2013 Stats Sprint #28
Rice_Farmer   18
N 5 hours ago by pl246631
Is there a better way than just partitioning casework bash this?
18 replies
Rice_Farmer
Mar 17, 2025
pl246631
5 hours ago
k You see?
Spacepandamath13   14
N 6 hours ago by MaxTheMaster
Why does $1+1=3$?

You see, if I give CaseOh $1$ apple, and you give him $1$ apple, he will throw up $1$ apple that he had previously eaten, leaving their $3$ apples in the pile.
14 replies
Spacepandamath13
Yesterday at 11:51 PM
MaxTheMaster
6 hours ago
Is this still true?
RoyalPrince   2
N Today at 2:54 PM by dragonborn56
Is this post still active? https://artofproblemsolving.com/community/c3h1867292_marathon_threads
2 replies
RoyalPrince
Today at 2:41 PM
dragonborn56
Today at 2:54 PM
Classical factorial number theory
Orestis_Lignos   20
N Mar 24, 2025 by anudeep
Source: JBMO 2023 Problem 1
Find all pairs $(a,b)$ of positive integers such that $a!+b$ and $b!+a$ are both powers of $5$.

Nikola Velov, North Macedonia
20 replies
Orestis_Lignos
Jun 26, 2023
anudeep
Mar 24, 2025
Classical factorial number theory
G H J
G H BBookmark kLocked kLocked NReply
Source: JBMO 2023 Problem 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Orestis_Lignos
555 posts
#1 • 4 Y
Y by GeoKing, Sedro, ItsBesi, lian_the_noob12
Find all pairs $(a,b)$ of positive integers such that $a!+b$ and $b!+a$ are both powers of $5$.

Nikola Velov, North Macedonia
This post has been edited 2 times. Last edited by Orestis_Lignos, Jun 26, 2023, 4:02 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Orestis_Lignos
555 posts
#2 • 4 Y
Y by GeoKing, ItsBesi, FeridMath, Yassperx
WLOG assume that $a \geq b$. We split into two cases.

Case 1: $a=b$. Then, $a!+a=5^k$ with $k \geq 1$. If $k=1$ then obiously $(a,b)=(5,5)$ works. If $k \geq 2$, then $(a-1)!+1 \equiv 1 \pmod 5$, and since $5^k=a!+a=a((a-1)!+1),$ we must have $(a-1)!+1=1,$ a contradiction.

Case 2: $a>b$. Then, $a=b+s$ with $s \geq 1$. Let $a!+b=5^k$ with $k \geq 1$. Therefore,

$b((b-1)! \cdot (b+1) \cdots (b+s)+1)=5^k$.

Thus, $b=5^\ell$ with $\ell \geq 0$, and if $b-1 \geq 5$ then $(b-1)! \cdot (b+1) \cdots (b+s)+1 \equiv 1 \pmod 5,$ a contradiction. Moreover, if $s \geq 5$, then $5 \mid (b+1) \cdots (b+5) \mid (b+1) \cdots (b+s),$ and so $(b+1) \cdots (b+s)+1 \equiv 1 \pmod 5,$ a contradiction.

Therefore, $b \leq 5$ and $s \leq 4$.

Taking all cases, we obtain $(b,s)=(1,3),$ that is $(a,b)=(4,1)$.

To sum up, we obtain the solutions $(a,b)=(5,5), (4,1)$ and $(1,4)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ismayilzadei1387
219 posts
#3 • 2 Y
Y by Aoxz, FriIzi
Orestis_Lignos wrote:
WLOG assume that $a \geq b$. We split into two cases.

Case 1: $a=b$. Then, $a!+a=5^k$ with $k \geq 1$. If $k=1$ then obiously $(a,b)=(5,5)$ works. If $k \geq 2$, then $(a-1)!+1 \equiv 1 \pmod 5$, and since $5^k=a!+a=a((a-1)!+1),$ we must have $(a-1)!+1=1,$ a contradiction.

Case 2: $a>b$. Then, $a=b+s$ with $s \geq 1$. Let $a!+b=5^k$ with $k \geq 1$. Therefore,

$b((b-1)! \cdot (b+1) \cdots (b+s)+1)=5^k$.

Thus, $b=5^\ell$ with $\ell \geq 0$, and if $b-1 \geq 5$ then $(b-1)! \cdot (b+1) \cdots (b+s)+1 \equiv 1 \pmod 5,$ a contradiction. Moreover, if $s \geq 5$, then $5 \mid (b+1) \cdots (b+5) \mid (b+1) \cdots (b+s),$ and so $(b+1) \cdots (b+s)+1 \equiv 1 \pmod 5,$ a contradiction.

Therefore, $b \leq 5$ and $s \leq 4$.

Taking all cases, we obtain $(b,s)=(1,3),$ that is $(a,b)=(4,1)$.

To sum up, we obtain the solutions $(a,b)=(5,5), (4,1)$ and $(1,4)$.

ohh Same solution :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Leartia
93 posts
#4
Y by
We claim that the only solutions are $(1,4),(4,1)$, and $(5,5)$.
Suppose that we have integers $a$ and $b$ such that $a!+b=5^r$ and $b!+a=5^t$ for some $r,t\geq 1$.
If $a\geq 5$, we have that $5\mid a!$.
Since $5\mid a!$ and $5\mid 5^r$, we have $5\mid b$.
This means that $b\geq 5$. By the same argument, we have $5\mid a$.
So $a=5x$ and $b=5y$ for some positive integers $x,y$.

Suppose that $x>1$. Then $v_5(a!)>1$.
Since $a!+b=5^r$, we have $v_5(b)=v_5(a!).$
However, as $v_5(b)>1$ we have that $v_5(b!)>v_5(b)$. Hence $v_5(b!+a)=\min\{v_5(b!),v_5(a)\}=v_5(a)$, but this is clearly a contradiction as $t>v_5(a)$.
We thus have that $x=1$. By symmetry we get that $y=1$ which gives us the pair $(a,b)=(5,5)$ which is a solution.
Now it remains to consider $a<5$.
This implies $b<5$ due to the reasoning above. We check the following cases:
\begin{itemize}
\item If $a=1$, then $1!+b\equiv 0\pmod 5$ so $b=4$. This pair is a solution.
\item If $a=2$, then $2!+b\equiv 0\pmod 5$ so $b=3$. This pair is not a solution.
\item If $a=3$, then $3!+b\equiv 0\pmod 5$ so $b=4$. This pair is not a solution.
\item If $a=4$, then $4!+b\equiv 0\pmod 5$ so $b=1$. This pair is a solution.
\end{itemize}
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
steppewolf
351 posts
#5
Y by
The following solution was proposed together with the problem:

The condition is symmetric so we can assume that $b \leq a$.

The first case is when $a=b$. In this case, $a!+a=5^m$ for some positive integer $m$. We can rewrite this as $a \cdot \left ( (a-1)!+1 \right)=5^{m}$. This means that $a=5^{k}$ for some integer $k \geq 0$. It is clear that $k$ cannot be $0$. If $k \geq 2$, then $(a-1)!+1 = 5^{l}$ for some $l \geq 1$, but $a-1=5^{k}-1 > 5$, so $5|(a-1)!$, which is not possible because $5|(a-1)!+1$. This means that $k=1$ and $a=5$. In this case, $5!+5 = 125$, which gives us the solution $(5,5)$.

Let us now assume that $1 \leq b<a$. Let us first assume that $b=1$. Then $a+1=5^x$ and $a!+1=5^y$ for integers $x,y \geq 1$. If $x \geq 2$, then $a=5^x-1 \geq 5^2-1>5$, so $5|a!$. However, $5|5^y=a!+1$, which leads to a contradiction. We conclude that $x=1$ and $a=4$. From here $a!+b=25$ and $b!+a=5$, so we get two more solutions: $(1,4)$ and $(4,1)$.

Now we focus on the case $1 < b < a$. Then we have $a!+b = 5^x$ for $x \geq 2$, so $b \cdot \left ( \frac{a!}{b}+1 \right ) = 5^x$, where $b|a!$ because $a>b$. Because $b|5^x$ and $b>1$, we have $b=5^z$ for $z \geq 1$. If $z \geq 2$, then $5<b<a$, so $5|a!$, which means that $\frac{a!}{b}+1$ cannot be a power of $5$. We conclude that $z=1$ and $b=5$. From here $5!+a$ is a power of $5$, so $5|a$, but $a>b=5$, which gives us $a \geq 10$. However, this would mean that $25|a!$, $5|b$ and $25 \nmid b$, which is not possible, because $a!+b=5^x$ and $25|5^x$.

We conclude that the only solutions are $(1,4)$, $(4,1)$ and $(5,5)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gnoka
245 posts
#6
Y by
If $a<5$, it is obvious that $5$ does not divide $a$, so $5$ does not divide $b!$. This implies that $b<5$. By checking all possible values, we find that $(a,b)=(1,4)$ satisfies the condition.

If $a\geq 5$, it is obvious that $5$ divides $a!$, which means $5$ divides $b$. In turn, this implies that $5$ divides $b!$, and therefore $5$ divides $a$. When $a=b=5$, the condition is satisfied.

If $a>5$, we will prove by induction that for any $k\in \mathbb{N}^*$, $5^k$ divides $a$.

(i) From $a>5$ and $5|a$, we have $a\geq 10$.

(ii) If there exists a positive integer $m>1$ such that $5^m|a$, then $5^{m+1}|a!$. Since $a!+b$ is a power of $5$, we have $5^{m+1}|b$. Hence, $5^{m+1}|b!$. Furthermore, since $b!+a$ is a power of $5$, we have $5^{m+1}|a$.

Based on (i) and (ii), we can conclude that for any $k\in \mathbb{N}^*$, $5^k|a$. However, this is clearly impossible.

In conclusion, $(a,b)$ can only be $(1,4)$ or $(4,1)$ or $(5,5)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dancho
38 posts
#7
Y by
WLOG $a\geq b$
We have that $a!+b=5^t$ and $b!+a=5^s$

Let's assume that $a\geq10$
Let $v_5(a!)=x>1$
From $a!+b=5^t$ we have that $v_5(b)=x\implies b\geq5^x$
Now note that $b!=1\cdot2\cdot3\cdot\cdot\cdot\cdot\cdot b$ which has $\frac{b}{5}$ numbers divisible by 5. Thus $v_5(b!)\geq\frac{b}{5}\geq\frac{5^x}{5}=5^{x-1}$
From $b!+a=5^s$ and $v_5(b!)\geq5^{x-1}$ we get that $v_5(a)\geq5^{x-1}$
$5^{x-1}>x$ for $x>1$ which is a contradiction with $v_5(a!)\geq v_5(a)$
Hence $a<10$

When we check the remaining possibilities we conclude that $(a,b)=(1,4)$ or $(4,1)$ or $(5,5)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Baffledbanna74
241 posts
#8
Y by
mathmax12 wanted me to share his solution:
WLOG $a\ge b$, now we have $2$ cases:

If $a=b$:
So $a!+a=5^n$, where $n \ge 1.$ When $n=3$, we have that $a=b=5$, works. If $n \ge 3$ we have contradiction.

If $a>b$:
Let $a=b+x$, so $s \ge 1$, we also have $a!+b=5^k$, we have $b\le 5$, and $s \le 4$, otherwise contradiction. If we take all cases, we get that, $(4,1)$ works, so the solutions are $(a,b)=(5,5), (4,1) and (1,4).$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1199 posts
#9 • 2 Y
Y by PennyLane_31, Mr_GermanCano
After the competition one of the Bulgarian contestants proposed looking at triples $(a,b,p)$, where $p$ is prime, such that $a! + b$ and $b!+a$ are both powers of $p$. I just solved this now, here is a solution. (This would have been a great Problem 4 (or maybe 3 if one wants the problem set to be extreme) in my opinion, shame we did not think about it in time.)

Answer. $(a,b,p) = (2, 2, 2), (3, 3, 3), (5, 5, 5)$, $(1, 1, 2)$, $(2, 1, 3)$, $(1, 2, 3)$, $(4, 1, 5)$, $(1, 4, 5)$

Without loss of generality treat $a\geq b$. Suppose firstly that $a \geq 2p$. In
\[a! + b = b \cdot (1 \cdot 2 \cdots (b-1) \cdot b+1 \cdots (a-1) \cdot a + 1)\]both multipliers on the right must be powers of $p$. The second multiplier is greater than $1$, while $1 \cdot 2 \cdots (b-1) \cdot b+1 \cdots (a-1) \cdot a$ is divisible by $p$, since for $b\neq p$ we have $p$ as a multiplier, while for $b=p$ we have $2p$ as a multiplier, hence $(1 \cdot 2 \cdots (b-1) \cdot b+1 \cdots (a-1) \cdot a + 1$ is not divisible by $p$, which is impossible. Hence $b \leq a \leq 2p-1$ and since $b$ is a power of $p$, we must have $b=p$ or $b=1$.

Let $b=p$. Since $b!+a$ is a power of $p$, we must have that $a$ is divisible by $p$ and now $a\leq 2p-1$ implies $a=p$. In this case $b! + a = p((p-1)! + 1)$ and so it remains to see for which $p$ there is $k$ with $(p-1)! + 1 = p^k$. For $p=2$ we have $k=1$, for $p=3$ we have $k=1$, for $p=5$ we have $k=2$ and we now show that no $p\geq 7$ works. Divide by $p-1$ in $(p-1)! = p^k - 1$ to obtain
\[ (p-2)! = p^{k-1} + p^{k-2} + \cdots + p + 1. \]Consider the latter modulo $p-1$. For $p\geq 7$ the left-hand side contains the different multipliers $2$ and $\frac{p-1}{2}$ and so it is divisible by $p-1$. Each summand on the right gives remainder $1$ when divided by $p-1$, so the right-hand side is congruent to $k$. Hence $k$ must be divisible by $p-1$, but then $k\geq p-1$ and $(p-2)! > p^k \geq p^{p-1}$, which is impossible.

Let $b=1$. We want $a+1 = p^m$ for some $m\geq 1$, i.e. $a = p^m-1$, as well as $a! + 1 = p^n$ for some $n\geq 1$, i.e. $(p^m-1)! = p^n - 1$. If $m\geq 2$, then the left-hand side is divisible by $p$, while the right-hand side is not, contradiction. For $m=1$ we get $(p-1)! = p^n - 1$, thus as in the previous case we obtain only $p=2$ (with $a=1$), $p=3$ (with $a=2$) and $p=5$ (with $a=4$).
This post has been edited 2 times. Last edited by Assassino9931, Sep 13, 2023, 12:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
GrantStar
815 posts
#10 • 2 Y
Y by dhfurir, ventic
If $a=b$, then $a((a-1)!+1)$ is a power of $5$. In particular, $a$ and $(a-1)!+1$ are powers of $5$, and if $a\geq 6$ the latter is equivalent to $1$ mod $5$. Check $1,2,3,4,5$ to get $(5,5)$.
Otherwise WLOG $a>b$. First, if $b=1$ then $a!+1$ and $1+a$ are powers of $5$. In particular, $a< 5$ since otherwise $a!+1\equiv 1 \pmod 5$. Else, $b>1$ so $b \mid a!+b$, implying $5\mid b$. Moreover, \[5^x=a!+b=b\left(\frac{a!}{b}+1\right)\]Then, if $a\geq 10$, we must have $\frac{a!}{b}+1 \equiv 1 \pmod 5$ so therefore $b=5$. A finite case check yields no solutions.
Therefore, $(a,b)=(4,1),(1,4),(5,5)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jishnu4414l
154 posts
#11
Y by
Here is my solution sketch...
Case 1:Let $a,b >5$
It is easy to see that both $a$ and $b$ must be powers of $5$. Now, WLOG, let $a \geq b$,
$a!+b= b(\frac{a!}{b}+1)$
We see that $\frac{a!}{b}+1$ is $1$ modulo $5$, so this choice of $(a,b)$ fails.
Case 2:Let $a>5$ and $b<5$
We see that $b$ must be odd. So $b=1$ or $b=3$. However, both these choices of $b$ fail as $a!+b \equiv b \pmod 5$.
Thus we can't choose such pairs of $(a,b)$ either.
Case 3: Let $a,b<5$. Note that $(a,b)=(5,5)$ works.
In the third case, if $a,b\geq 2$, it is easy to conclude that both $a$ and $b$ must be odd. However, $(3,3)$ does not work.
So both $a$ or $b$ must be $1$, Now checking the last few cases left we see that $(a,b)=(4,1);(1,4)$ work.
We thus have gotten three such pairs of $a$ and $b$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PennyLane_31
77 posts
#12
Y by
Notice that if $x\in\mathbb{Z^*_+}$, then $x!$ ends in 1 (1!), 2 (2!), 6(3!), 4(4!), or 0 ($x\geq 5$)
Let
$\begin{cases}
    a!+b= 5^x\\
    b!+a= 5^y
    \end{cases}$
Where $x,y\in\mathbb{Z^*_+}$

If $a=1\implies b!+1= 5^y\implies b!\equiv 4 \mbox{ (mod 10)}$
So, $b= 4$ (if $b\geq 5\implies b!\equiv 0 \mbox{ (mod 10)})$
$\therefore \boxed{(a,b)= (1,4)}$ is solution ($1!+4= 5= 5^1$)

If $a=2\implies b!+2= 5^y\implies b!\equiv 3\mbox{ (mod 10)}$, which is impossible.

If $a=3\implies b!+3= 5^y\implies b!\equiv 2 \mbox{ (mod 10)}\implies b=2$. But, we also need that $a!+b$ is a power of five, so $3!+2= 8$ is a power of 5, contradiction!

If $a= 4$, we get the solution $\boxed{(a,b)= (4,1)}$

If $a=5\implies 5!+b= 5^x\implies b!\equiv 5 \mbox{ (mod 100)}$. Also, we know that $b!+5=5^y\implies b!\equiv 20 \mbox{ (mod 100)}$.
But, if $b\geq 10, b!\equiv 0 \mbox{ (mod 100)}$. So, we must have $b<10$, giving us the solution $\boxed{(a,b)= (5,5)}$

Noooow, consider WLOG $5<a<b$.

Let $b=a+b_0$, where $b_0\in\mathbb{Z^*_+}$ (with a quick check, you can verify that $a=b$ gives us only the solution a=b=5)
We know that:

$a!(a+1)(a+2)\dots(a+b_0)+a= 5^y\implies a\mid 5^y$.

So, $\boxed{\mbox{a is a power of 5}}.$
Call $a= 5^c$, $c\in\mathbb{Z^*_+}$

We have:
$b!+5^c= 5^y\implies b!= 5^y-5^c= 5^c(5^{y-c}-1)$
$\implies v_5(b!)=c$, but $b!$ has at least $(c+1)$ factors of 5 (actually much more than this), because he has at least the 5 and $a$(a has c factors 5). $\implies c= v_5(b!)\geq c+1$, contradiction!!

Therefore, 3 solutions:
$(a,b)= (1,4); (4,1); (5,5)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aiden-1089
277 posts
#13 • 1 Y
Y by Siddharthmaybe
Clearly $v_5(a!)=v_5(b)$ and $v_5(b!)=v_5(a)$. Since $v_5(a!) \geq v_5(a)$ and $v_5(b!) \geq v_5(b)$, it follows that $v_5(a)=v_5(b)=v_5(a!)=v_5(b!)$.
Thus, $v_5((a-1)!)=v_5((b-1)!)=0 \implies a,b \leq 5$. Checking gives $(a,b)=(1,4),(4,1),(5,5)$ as the only solutions.
This post has been edited 1 time. Last edited by Aiden-1089, May 18, 2024, 5:17 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5541 posts
#14
Y by
Find all pairs $(a,b)$ of positive integers such that $a!+b$ and $b!+a$ are both powers of $5$.

Claim: If $x + y$ is a power of $5$, then $\nu_5(x) = \nu_5(y)$.
Proof: Suppose otherwise and WLOG $\nu_5(x) > \nu_5(y)$. Then $\nu_5(x+y) = \nu_5(y)$, so $x + y = 5^{\nu_5(y)} < y$, absurd. $\square$

Hence $\nu_5(a!) = \nu_5(b)$ and $\nu_5(b!) = \nu_5(a)$.

Claim: For all $a > 5$, we have $\nu_5(a!) > \nu_5(a)$.
Proof: This is equivalent to there being a positive integer multiple of $5$ less than $a$. $\square$

Now for all positive integers $a$, we have $\nu_5(a!) \ge \nu_5(a)$ since $a \mid a!$. Thus, $\nu_5(b)  = \nu_5(a!) \ge \nu_5(a)$ and $\nu_5(a) = \nu_5(b!) \ge \nu_5(b)$, meaning $\nu_5(a) = \nu_5(b)$. Then $\nu_5(a!) = \nu_5(b) = \nu_5(a)$ and $\nu_5(b) = \nu_5(a) = \nu_5(b!)$, so $a \le 5$ and $b \le 5$.

Thus, $1 < a! + b \le 5! + 5 = 125$, so $a! + b \in \{5, 25, 125\}$.

If $a!  + b = 5$, then $a = 1, b = 4$, which works, or $a = 2, b  = 3$, which doesn't work since $3! + 2$ isn't a power of $5$.

If $a! + b = 25$, then $a  = 4, b = 1$, which works.

If $a! + b = 125$, then $a = b = 5$, which works.

Hence the answer is $(a,b) \in \{(1,4), (4,1), (5,5)\}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sedro
5813 posts
#15 • 1 Y
Y by sami1618
We claim the only working ordered pairs are $(a,b)=\boxed{(1,4),(4,1),(5,5)}$. It is easy to see that they work; we now prove they are the only ones.

It is not hard to verify that these are the only solutions when $a,b\le 5$, so henceforth, FTSOC, assume $a,b>5$. We must have $a!+b = 5^x$ and $a+b! = 5^y$, for some positive integers $x$ and $y$. Adding these two equations together, we have $a((a-1)!+1) + b((b-1)!+1) = 5^x+5^y$. Note that $v_5(a!), v_5(b!) \ge 1$, and thus $5\mid a$, $5\mid b$. Furthermore, notice that $v_5((a-1)!), v_5((b-1)!) \ge 1$, and hence $5\nmid (a-1)!+1$, $5\nmid (b-1)!+1$. It follows that $v_5(\text{LHS}) = \min\{v_5(a), v_5(b)\}$. We also have $v_5(\text{RHS}) = \min\{x,y\}$.

WLOG assume $\min\{v_5(a), v_5(b)\}=v_5(a)$. Now, suppose $\min\{x,y\}=x$. Then, $v_5(a)=x$, and $a\ge 5^x$. But then $a!+b \ge (5^x)!+b > 5^x$, contradiction. Thus, $\min\{x,y\}=y$, and $v_5(a)=y$. Then, $v_5(b)\ge y$, and $b\ge 5^y$. But then $a+b!\ge a+(5^y)! > 5^y$, absurd. Thus, there are no solutions when $a,b>5$, and we are done. $\blacksquare$
This post has been edited 1 time. Last edited by Sedro, May 29, 2024, 8:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Orestis_Lignos
555 posts
#16
Y by
This was N1 at last year's shortlist.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PaixiaoLover
124 posts
#18
Y by
$(1,4), (4,1), (5,5)$ work.

Case 1: $a=b$: then $a((a-1)!+1)=5^k$ for some k. clearly a neq 1, so $a$ is a power of 5. $a=5$ works, but if $a$ is 25 or more, $(a-1)!+1)$ isnt a power of 5 since its 1 mod 5. So $(5,5)$ is the only solution here.

Case 2: $a>b$. Consider b=1 (edge case since we noticed $(1,4)$ works. Then $a!+1=5^k, a+1=5^j.$ So $a=5^j-1$. If a=4, it works. if a=24 or more, $a! +1 $ is 1 mod 5 again. (same technique as before. we will use it again soon). So $(1,4) (4,1)$ works.

Now if $a>b>1$, then $a!+b=5^k, a+b!=5^j$. Then factor out b since $a>b$ to get $b(\frac{a!}{b}+1)=5^k$. So b is a power of 5. Then $a+b!=5^k$ gives $a = 0 \mod 5$. However, then $(\frac{a!}{b}+1)$ would 1 mod 5 (again) ((a would be the next multiple of 5 after b)). So no more solutions.
This post has been edited 2 times. Last edited by PaixiaoLover, Jan 4, 2025, 1:40 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
616 posts
#19
Y by
The only pairs are $\boxed{(1, 4), (5, 5)}$ in some permutation. If $a=b$, then we have $a((a-1)!+1)$ to be a power of $5$, or more specifically $(a-1)!+1$ to be a power of $5$. This implies $a-1 < 5$ else it will be $1 \pmod{5}$, and a finite check gives the only solution of $(5, 5)$ as advertised above. Else, WLOG $a>b$. The key idea is that looking at $a!+b$, we can factor out a $b$ from $a!$ and hence $\frac{a!}{b}$ cannot be a multiple of $5$. However, when $a \geq 10$, we can easily see that $v_5(a!)$ is strictly greater than $v_5(b)$ for all $b < a$. This is most easily seen by noticing the gaps between powers of $5$. Therefore, there is a finite check that we need to do with $a \leq 9$, noting again that when $5 \leq a \leq 9$ then $b=5$ to eliminate the factor of $5$. This lands us at the other advertised solution above.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Perelman1000000
91 posts
#20 • 1 Y
Y by MIC38
Case 1)$a=b\implies x=y$
$a!+a=5^x$
Case 1.1)$a<5$
$a=1\implies 1+1\neq 5^x$
$a=2\implies 2+2\neq 5^x$
$a=3\implies 6+3\neq 5^x$
$a=4\implies 24+4\neq 5^x$ so this case fails
Case 1.2)$a\geq 5$
$v_5(a!)\geq v_5(a)$
If $v_5(a!)=v_5(a)\implies a=5\implies a!+a=120+5=125=5^3\implies x=3$
If $v_5(a!)>v_5(a)$ ans also we know that $5|a\implies v_5(a!+a)=min(v_5(a!),v_5(a))=v_5(a)=v_5(5^x)=x\implies a\geq 5^x$ contradiction
Case 2) Wlog $a>b>5$
Since $a>b\implies v_5(a!)>v_5(b)\implies v_5(a!+b)=v_5(b)=x\implies b\geq 5^x$ contradiction
Case 3)$5>a>b$
By checking we get $4!+1=25=5^2$
$1!+4=5$ so $(a,b)=(4,1)$ if $b>a\implies (a,b)=(1,4)$
I think someone will ask why not $a>5>b$ because if $a>5$ $5|a!\implies 5|b\implies b>5$ since $a\neq b$(case 1)
$\boxed{ANSWER:(a,b)=(1,4),(4,1),(5,5)}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
iStud
259 posts
#21
Y by
W.L.O.G. $a\ge b$.

Case 1. If $a=b$.
Then we have $a((a-1)!+1)\equiv 0\pmod{5}$. It's easy to check that any $a\le 4$ doesn't works, so we must have $a\ge 5$. For $a=5$, the problem is satisfied. For $a>5$, we have $(a-1)!+1\equiv 1\pmod{5}$. But we have $5^t=a((a-1)!+1)$ for some $t\in\mathbb{N}$, so $(a-1)!+1=1$, a contradiction. So for this case, the only pair that satisfy is $(a,b)=(5,5)$

Case 2. If $a>b$.
Let $a=b+k$ for some $k\in\mathbb{N}$. If $a>b\ge 5$, we have $5\mid a,b$. In other side, we have $5^t=b((b+1)(b+2)\dots a+1)$ for some $t\in\mathbb{N}$, so we must have $(b+1)(b+2)\dots a\equiv -1\pmod{5}$.This is a contradiction since we must have $(b+1)(b+2)\dots a\equiv 0\pmod{5}$ (since that $5\mid a$). So we must have $a,b\le 4$, which from that we easily get $(a,b)=(4,1)$.

In the end, the only pairs that satisfy the problem are $(a,b)=(5,5),(4,1),(1,4)$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anudeep
105 posts
#22
Y by
We claim $(1,4), (4,1)$ and $(5,5)$ are the only solutions.
We may assume $a\ge b$ and that implies $b\lvert a!$. As $a!+b=b\left(\frac{a!}{b}+1\right)$ is given to be a power of $5$, $b$ is necessarily a power of $5$ and is clear that $\gcd(a!/b, 5)=1$. This forces $b=5^{\nu_5(a!)}$ and is a moment to celebrate as $b$ seems to get larger and larger surpassing $a$ given $a\ge 10$ which is against our assumption. Performing a finite check we get the required. $\square$
This post has been edited 2 times. Last edited by anudeep, Mar 24, 2025, 4:39 PM
Z K Y
N Quick Reply
G
H
=
a