Join our free webinar April 22 to learn about competitive programming!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. 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 events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Apr 2, 2025
0 replies
2016 Kmo Final round
Jackson0423   0
a minute ago
Source: 2016 FKMO P4
Let \(x,y,z\in\mathbb R\) with \(x^{2}+y^{2}+z^{2}=1\).
Find the maximum value of
\[
(x^{2}-yz)(y^{2}-zx)(z^{2}-xy).
\]
0 replies
Jackson0423
a minute ago
0 replies
Factor sums of integers
Aopamy   1
N 4 minutes ago by BR1F1SZ
Let $n$ be a positive integer. A positive integer $k$ is called a benefactor of $n$ if the positive divisors of $k$ can be partitioned into two sets $A$ and $B$ such that $n$ is equal to the sum of elements in $A$ minus the sum of the elements in $B$. Note that $A$ or $B$ could be empty, and that the sum of the elements of the empty set is $0$.

For example, $15$ is a benefactor of $18$ because $1+5+15-3=18$.

Show that every positive integer $n$ has at least $2023$ benefactors.
1 reply
Aopamy
Feb 23, 2023
BR1F1SZ
4 minutes ago
hard problem
Cobedangiu   5
N 6 minutes ago by IceyCold
Let $x,y,z>0$ and $xy+yz+zx=3$ : Prove that :
$\sum  \ \frac{x}{y+z}\ge\sum  \frac{1}{\sqrt{x+3}}$
5 replies
Cobedangiu
Apr 2, 2025
IceyCold
6 minutes ago
All prime factors under 8
qwedsazxc   23
N 20 minutes ago by Giant_PT
Source: 2023 KMO Final Round Day 2 Problem 4
Find all positive integers $n$ satisfying the following.
$$2^n-1 \text{ doesn't have a prime factor larger than } 7$$
23 replies
+1 w
qwedsazxc
Mar 26, 2023
Giant_PT
20 minutes ago
No more topics!
Every rectangle is formed from a number of full squares
orl   9
N Apr 2, 2025 by akliu
Source: IMO ShortList 1974, Bulgaria 1, IMO 1997, Day 2, Problem 1
Consider decompositions of an $8\times 8$ chessboard into $p$ non-overlapping rectangles subject to the following conditions:
(i) Each rectangle has as many white squares as black squares.
(ii) If $a_i$ is the number of white squares in the $i$-th rectangle, then $a_1<a_2<\ldots <a_p$.
Find the maximum value of $p$ for which such a decomposition is possible. For this value of $p$, determine all possible sequences $a_1,a_2,\ldots ,a_p$.
9 replies
orl
Oct 29, 2005
akliu
Apr 2, 2025
Every rectangle is formed from a number of full squares
G H J
Source: IMO ShortList 1974, Bulgaria 1, IMO 1997, Day 2, Problem 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 4 Y
Y by Adventure10, Mango247, ItsBesi, cubres
Consider decompositions of an $8\times 8$ chessboard into $p$ non-overlapping rectangles subject to the following conditions:
(i) Each rectangle has as many white squares as black squares.
(ii) If $a_i$ is the number of white squares in the $i$-th rectangle, then $a_1<a_2<\ldots <a_p$.
Find the maximum value of $p$ for which such a decomposition is possible. For this value of $p$, determine all possible sequences $a_1,a_2,\ldots ,a_p$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
WakeUp
1347 posts
#2 • 3 Y
Y by sohere, Adventure10, Mango247
Since each rectangle has the same number of black squares as white squares, $a_1+a_2+\ldots +a_p=\frac{64}{2}=32$. Clearly $a_i\ge i$ for $i=1$ to $i=p$ so $32=a_1+a_2+\ldots + a_p\ge 1+2+\ldots +p=\frac{p(p+1)}{2}$ so this forces $p\le 7$. It is possible to decompose the board into $7$ rectangles, as we will show later. But first let us find all such sequences $a_i$.
Now $32-a_7=a_1+a_2+\ldots +a_6\ge 1+2+\ldots +6=21\implies 11\le a_7$. For a rectangle to have $11$ white squares, it will have an area of $22$ so it's dimensions are either $1\times 22$ or $2\times 11$ - neither of which would fit on a $8\times 8$ board. So $a_7\not= 11\implies a_7\le 10$.

If $a_7=10$ (which could fit as a $4\times 5$ rectangle) then $a_1+a_2+\ldots a_6=22$. Then $22-a_6\ge 1+2+\ldots +5=15$ so $7\ge a_6$. So $a_1,a_2,\ldots ,a_6$ are 6 numbers among 1-7. If $1\le k\le 7$ is the number that is not equal to any $a_i$, then $22=a_1+a_2+\ldots +a_7=1+2+\ldots +7-k=28-k$ so $k=6$. Then $a_1=1,a_2=2,a_3=3,a_4=4,a_5=5,a_6=7,a_7=10$. Such a decomposition is possible. Take a $4\times 5$ rectangle on the top left corner, where there are $4$ squares horizontally and $5$ vertically. Then directly below use a $7\times 2,1\times 2$ and a $8\times 1$ rectangle to cover the 3 rows below it. It's simple from there.

Similarly, you can find the other possibilities as $\{a_1,a_2,\ldots ,a_7\}=\{1,2,3,4,5,8,9\}$ or $\{1,2,3,4,6,7,9\}$ or $\{1,2,3,5,6,7,8\}$. Tilings are not hard to find :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quangminhltv99
768 posts
#3 • 2 Y
Y by Adventure10, Mango247
My solution
This post has been edited 1 time. Last edited by quangminhltv99, Aug 30, 2016, 8:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6874 posts
#4 • 1 Y
Y by MS_asdfgzxcvb
Here's an illustration of all four tilings.
Source code
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1747 posts
#5
Y by
We claim that the answer is $\boxed{p = 7},$ achieved with $(a_1,a_2,a_3,a_4,a_5,a_6,a_7) = (1,2,3,4,5,8,9),(1,2,3,4,5,7,10), (1,2,3,4,6,7,9),(1,2,3,5,6,7,8).$

First note that $p \le 7$ since otherwise $2(a_1+a_2+\dots+a_p) \ge 2(1+2+\dots + 8) \ge 72 > 64,$ which is a clear contradiction. For $p = 7,$ the only possible ordered tuples $(a_1,a_2,a_3,a_4,a_5,a_6,a_7)$ such that $a_1 < a_2 < a_3 < a_4 < a_5 < a_6 < a_7$ and $a_1 + a_2 + \dots + a_7 = 32$ are $$(a_1,a_2,a_3,a_4,a_5,a_6,a_7) = (1,2,3,4,5,8,9),(1,2,3,4,5,7,10), (1,2,3,4,6,7,9),(1,2,3,5,6,7,8),(1,2,3,4,5,6,11).$$The last tuple does not have a construction since that would require us to have a rectangle of area $22$ with sidelengths less than or equal to $8,$ which is clearly impossible. The other four tuples are possible, as shown by the pictures below, proving our claim.
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Markas
105 posts
#6
Y by
$a_1 < a_2 \cdots < a_p$. We know that the i-th rectangle has $a_i$ white and $a_i$ black, or $2a_i$ squares altogether. Let $p \geq 8$ $\Rightarrow$ $a_1 \geq 1$ and $a_8 \geq 8$ $\Rightarrow$ $2(a_1 + a_2 + \cdots + a_8) \geq 2(1 + 2 + \cdots + 8) = 2.\frac{8.9}{2} = 72$ but the total number of cells in the table is 8.8 = 64, but since 72 is larger than 64, $p < 8$. We search for the largest possible p. We showed $p < 8$ $\Rightarrow$ we will prove p = 7 works, and we will find all ordered tuples $(a_1, a_2, a_3, a_4, a_5, a_6, a_7)$. We want $2(a_1 + \cdots a_7) = 64$ $\Rightarrow$ $a_1 + a_2 \cdots a_7 = 32$, where $a_1 < a_2 \cdots < a_7$ $\Rightarrow$ the ordered tuples we could get this way are $(a_1, a_2, a_3, a_4, a_5, a_6, a_7) = (1,2,3,4,5,7,10),(1,2,3,4,5,8,9), (1,2,3,4,6,7,9),(1,2,3,5,6,7,8),(1,2,3,4,5,6,11)$. The last tuple doesn't work, since rectangle with area 22, can be only 2x11, but the largest side of the table is 8. The other tuples are achievable and examples are easily drawn. So the answer is p = 7, achievable with $(a_1,a_2,a_3,a_4,a_5,a_6,a_7) = (1,2,3,4,5,8,9),(1,2,3,4,5,7,10), (1,2,3,4,6,7,9),(1,2,3,5,6,7,8)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
631 posts
#7 • 1 Y
Y by MS_asdfgzxcvb
Ban this problem.
The answer is just $7$. $8$ is not possible because we need distinct even integers to sum to $64$ by area which is not possible cause $2(1+2+\dots+8) = 72 > 64$.
So basically we need distinct integers $b_1, b_2, \dots b_7$ s.t. $$\sum b_i = 32$$After a check we can just find four viable pairs becuase one has $b_7=11$ which is clearly not possible. The others are possible but I don't know how to asy.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
331 posts
#8
Y by
The optimum is $p = 7$, attainable with $(1, 2, 3, 5, 6, 7, 8), (1, 2, 3, 4, 5, 7, 10), (1, 2, 3, 4, 5, 8, 9), (1, 2, 3, 4, 6, 7, 9)$.
We easily have the bound
\[ 1 + 2 + \dots + p = \dfrac{p(p + 1)}{2} \le a_1 + a_2 + \dots + a_p = 32 \implies p \le 7. \]Now we show attainability at $p = 7$, by carefully listing the possible tuples our candidates are
\[ (1, 2, 3, 5, 6, 7, 8), (1, 2, 3, 4, 5, 6, 11), (1, 2, 3, 4, 5, 7, 10), (1, 2, 3, 4, 5, 8, 9), (1, 2, 3, 4, 6, 7, 9). \]Clearly $(1, 2, 3, 4, 5, 6, 11)$ does not work as one of the rectangles would have a side length that is a multiple of $11$, which cannot exist as we are confined to an $8 \times 8$ grid. It is well-known that a rectangle with even area must have an equal number of white and black squares when checkerboard-colored, below are constructions:
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gladIasked
648 posts
#9
Y by
Note that the $i$-th rectangle will have an area of exactly $2a_i$. Thus, we need $2(a_1+\dots+a_p)<64\implies p\le 7$ (clearly $2(1+2+\dots+8)=72>64$). When $p=7$, we obtain the following $5$ sequences:
\begin{align}
    (1, 2, 3, 5, 6, 7, 8),\\
    (1, 2, 3, 4, 5, 6, 11),\\
    (1, 2, 3, 4, 5, 7, 10),\\
    (1, 2, 3, 4, 5, 8, 9),\\
    (1, 2, 3, 4, 6, 7, 9).
\end{align}Sequence $(2)$ fails because we cannot fit a $1\times 22$ or $2\times 11$ rectangle into the chessboard; constructions exist for the four remaining sequences. $\blacksquare$
This post has been edited 1 time. Last edited by gladIasked, Mar 28, 2025, 3:43 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
akliu
1795 posts
#10
Y by
The largest value of $p$ for which a decomposition could occur is $7$. For the sake of contradiction, assume that $p=8$ could result in a decomposition. The sequence with smallest sum for $p=8$ is $a_i = i$ for $1 \leq i \leq 8$. Indeed, this sum is $1+2+\dots+8 = 36$, meaning that there are $72$ tiles in total that the rectangles must cover. Since we have an $8$-by-$8$ chessboard, this is impossible. On the other hand, if we have $p=7$, we have $2(1+2+\dots+7) = 56$ tiles to be covered by the rectangles as a minimum. We now want to figure out all the possible ways to add $8$ more tiles to some of the $7$ rectangles that result in a valid decomposition.

We start caseworking here; by our monotonic sequence condition, we arrive at the following cases that we must check: $(1, 2, 3, 4, 5, 6, 11)$, $(1, 2, 3, 4, 5, 7, 10)$, $(1, 2, 3, 4, 5, 8, 9)$, $(1, 2, 3, 4, 6, 7, 9)$, and $(1, 2, 3, 5, 6, 7, 8)$. I don't feel like embedding diagrams in this solution; by the Just Trust In The Process method, it is simple to verify that all of these sequences result in valid decompositions except the first one.
Z K Y
N Quick Reply
G
H
=
a