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
Cubic function from Olymon
Adywastaken   0
22 minutes ago
Source: Olymon Volume 11 2010 663
Find all $f:\mathbb{R}\rightarrow\mathbb{R}$ such that
$x^2y^2(f(x+y)-f(x)-f(y))=3(x+y)f(x)f(y)$ $\forall$ $x,y \in \mathbb{R}$
0 replies
Adywastaken
22 minutes ago
0 replies
Sequence bounding itself
juckter   2
N 24 minutes ago by Math-Problem-Solving
Source: Own
We say a sequence of integers $a_1, a_2, \dots, a_n$ is self-bounded if for each $i$, $1 \le i \le n$ there exist at least $a_i$ terms of the sequence that are less than or equal to $i$. Find the maximum possible value of $a_1 + a_2 + \dots + a_n$ for a self-bounded sequence $a_1, a_2, \dots, a_n$.
2 replies
juckter
Jan 13, 2021
Math-Problem-Solving
24 minutes ago
Checkerboard
Ecrin_eren   0
27 minutes ago
On an 8×8 checkerboard, what is the minimum number of squares that must be marked (including the marked ones) so that every square has exactly one marked neighbor? (We define neighbors as squares that share a common edge, and a square is not considered a neighbor of itself.)
0 replies
Ecrin_eren
27 minutes ago
0 replies
An inequality
JK1603JK   3
N an hour ago by lbh_qys
Source: unknown
Let a,b,c>=0: ab+bc+ca=3 then maximize P=\frac{a^2b+b^2c+c^2a+9}{a+b+c}+\frac{abc}{2}.
3 replies
JK1603JK
Yesterday at 10:28 AM
lbh_qys
an hour ago
No more topics!
IMO Shortlist 2011, Algebra 5
orl   18
N Mar 17, 2025 by mathfun07
Source: IMO Shortlist 2011, Algebra 5
Prove that for every positive integer $n,$ the set $\{2,3,4,\ldots,3n+1\}$ can be partitioned into $n$ triples in such a way that the numbers from each triple are the lengths of the sides of some obtuse triangle.

Proposed by Canada
18 replies
orl
Jul 11, 2012
mathfun07
Mar 17, 2025
IMO Shortlist 2011, Algebra 5
G H J
Source: IMO Shortlist 2011, Algebra 5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 6 Y
Y by Davi-8191, tenplusten, ApraTrip, Adventure10, Mango247, and 1 other user
Prove that for every positive integer $n,$ the set $\{2,3,4,\ldots,3n+1\}$ can be partitioned into $n$ triples in such a way that the numbers from each triple are the lengths of the sides of some obtuse triangle.

Proposed by Canada
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pco
23450 posts
#2 • 2 Y
Y by Adventure10, Mango247
orl wrote:
Prove that for every positive integer $n,$ the set $\{2,3,4,\ldots,3n+1\}$ can be partitioned into $n$ triples in such a way that the numbers from each triple are the lengths of the sides of some obtuse triangle.
http://www.artofproblemsolving.com/Forum/viewtopic.php?f=36&t=480457
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#3 • 8 Y
Y by AlastorMoody, David-Vieta, Adventure10, Mango247, and 4 other users
So our friend gold46 (from remote Mongolia), not only was (s)he in possession of the 2011 Shortlist, but also made part of it public by May 20, 2012, while everybody else tried to keep its secrecy until disclosure time July 12, 2012. Way to go ...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Amir Hossein
5452 posts
#4 • 2 Y
Y by Adventure10, Mango247
That happens sometimes. Some countries use these problems as their TSTs and after the TST is done, problems may be posted on AoPS. This is the main reason they don't reveal Shortlist before IMO. However, I don't know why we should wait till the IMO is held. But I guess that's because different countries hold Team Selections in different times, and even some of them choose the students going to IMO in a short while before IMO.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MariusBocanu
429 posts
#5 • 2 Y
Y by Adventure10, Mango247
Maybe i made a mistake in my proof.Please tell me if i'm wrong.
Denote $A=\{2,3,...2n+1\}, B=\{2n+2,...3n+1\}$. The triples will have the form $\{2n+1+i, 2i, 2i+1\}, i\in \{1,...n\}$.
The condition for a triangle to be obtuse is( from cosine law) $a^2>b^2+c^2$, and in our case, it means $4n^2+i^2+1+4ni+4n+2i> 8i^2+1+4i$, which is equivalent to $4n^2+4ni+4n> 7i^2+2i$, but $n\ge i$, so $4n^2+4ni>7i^2, 4n>2i$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#6 • 4 Y
Y by AlastorMoody, Adventure10, Mango247, and 1 other user
MariusBocanu wrote:
The triples will have the form $\{2n+1+i, 2i, 2i+1\}$, $i\in \{1,\ldots,n\}$.
But for small values of $i$ (like for example $i=1$) we have $ 2i + (2i+1) < 2n+1+i$, so the triangle inequality is not satisfied. Trying to get the obtuse condition, you lost the ball out of your eyesight; it happens :)
And what for are the notations $A$ and $B$ if they're not used later?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
polya78
105 posts
#7 • 1 Y
Y by Adventure10
Proof by induction. For any $(a,b,c)$, (all triplets used here assume $a < b < c$), define $S(a,b,c)=a+b-c$ and $T(a,b,c)=c^2-b^2-a^2$, then the problem is to divide $(2,3,...3n+1)$ into triplets, each ascending, where $S(a,b,c),T(a,b,c) > 0$.

Call $(a,b,c)$ good if $S(a,b,c),T(a,b,c) >0$. Note that if $(a,b,c)$ is good, so is $(a,b+k,c+k)$, for any integral k.

The inductive hypothesis is that $(2,3,...3k+1)$ can be partitioned into $k$ good triplets, the $ith$ triplet having first element $i+1$. For $k=1$, it is clearly true since $(2,3,4)$ is good. Assume this is true for $k=1,2,...n-1$. Now let $x= \lfloor 5n/2 \rfloor +1$. Calculation shows that $(n+1,x,3n+1)$ is good, as are $(n,x-1,3n),(n-1,x-2,3n-1),...(x-2n+1,2x-3n,x+1)$. In total, these comprise all the elements of $(2,3,...3n+1)$, except for $(2,3,...x-2n)$ and $(n+2,n+3,...,2x-3n-1)$. To construct the missing triplets, take the solution triplets $(i+1,b_i,c_i)$ for $k=x-2n-1$, and create the triplets $(i+1,b_i+(3n+1-x),c_i+(3n+1-x))$, all of which are good. The partition is now complete.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
leader
339 posts
#8 • 1 Y
Y by Adventure10
Lemma:
Triangle with sides $x,x+r-1,r$ is obtuse for positive integers $x,r$ with $x>r>1$.
Proof:
It is equivalent to $(x+r-1)^2>x^2+r^2$ which becomes $2(x-1)(r-1)>1$ which is true.
Now for $n=2k$ construct these triplets.
$2k+1-2i,2k+2+i,4k+2-i$ $ i=0,..,k$ and $2k-2-2i,6k+1-i,4k+4+i$ for $i=0,..,k-2$(these are all of the form as in the lemma which means they are sides of obtuse triangles) and the triplet $2k,3k+2,4k+4$ which are also sides of an obtuse triangle for $k\ge 2$
Similar construction is for $n=2k+1$
Only left case is $n=1$ which is obvious.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JuanOrtiz
366 posts
#9 • 2 Y
Y by Adventure10, Mango247
pplay around with small values of $ n $, it is not hard at all to come up with a solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6862 posts
#10 • 5 Y
Y by InCtrl, Amir Hossein, Lcz, v4913, Adventure10
Here is one of many possible constructions. We will prove one can form such a partition such that $\{2,3,\dots,n+1\}$ are in different triples; let $P(n)$ denote this statement.

We make the following observation: If $a<b<c$ is an obtuse triple, then so is $(a,b+x,c+x)$ for any $x > 0$.

Observe $P(1)$ is obviously true.

Claim: We have $P(n) \implies P(2n)$ for all $n \ge 1$.

Proof. Take the partition for $P(n)$ and use the observation to get a construction for $\{2, \dots, n+1\} \sqcup \{2n+2, \dots, 4n+1\}$. Now consider the following table: \[ 		\left[ 		\begin{array}{cccc|cccc} 			2 & 3 & \dots & n+1 & n+2 & n+3 & \dots & 2n+1 \\ \hline 			\multicolumn{4}{c|}{\text{Induction}} & 4n+2 & 4n+3 & \dots & 5n+1 \\ 			\multicolumn{4}{c|}{\text{hypothesis}} & 5n+2 & 5n+3 & \dots & 6n+1 		\end{array} 		\right] 	\]We claim all the column are obtuse. Indeed, they are obviously the sides of a triangle; now let $2 \le k \le n+1$ and note that \[ k^2 < 8n^2 \implies (n+k)^2 + (4n+k)^2 < (5n+k)^2 \]as desired. $\blacksquare$



Claim: We have $P(n) \implies P(2n-1)$ for all $n \ge 2$.

Proof. Take the partition for $P(n)$ and use the observation to get a construction for $\{2, \dots, n+1\} \sqcup \{2n+1, \dots, 4n+1\}$. Now consider the following table: \[ 		\left[ 		\begin{array}{cccc|cccc} 			2 & 3 & \dots & n+1 & n+2 & n+3 & \dots & 2n \\ \hline 			\multicolumn{4}{c|}{\text{Induction}} & 4n+1 & 4n+2 & \dots & 5n-1 \\ 			\multicolumn{4}{c|}{\text{hypothesis}} & 5n & 5n+1 & \dots & 6n-2 		\end{array} 		\right] 	\]We claim all the columns are obtuse again. Indeed, they are obviously the sides of a triangle; now let $1 \le k \le n-1$ and note that \[ (k-2)^2 < 8n^2-12n+4 \implies (n+1+k)^2 + (4n+k)^2 < (5n+k-1)^2 \]as desired. $\blacksquare$

Together with the base case $P(1)$, we obtain $P(n)$ for all $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yayups
1614 posts
#11 • 2 Y
Y by Amir Hossein, Adventure10
Lemma: The numbers $\{d+1,n,n+d\}$ are the sides of an obtuse triangle for positive integers $d$ and $n\ge d+1$.

Proof of Lemma: The triangle inequality is clearly satisfied. Furthermore,
\[(n+d)^2-n^2-(d+1)^2=2nd-2d-1\ge 2d^2-1>0,\]so the triangle is obtuse. $\blacksquare$

We split into cases based on the parity of $n$.

Case 1: $n$ is even.

We claim that we can partition $[2n]\setminus\{3n/2,2n\}$ into $n-1$ pairs with differences ranging from $1$ to $n-1$. To do this, we pair up $\{n/2-k,n/2+k+1\}$ for $k=0,\ldots,n/2-1$, and $\{3n/2-k,3n/2+k\}$ for $k=1,\ldots,n/2-1$. Let the pair with difference $d$ be $\{a_d,b_d\}$, so $b_d-a_d=d$.

Make the triples $\{2,a_1+n+1,b_1+n+1\},\{3,a_2+n+1,b_2+n+1\},\ldots,\{n,a_{n-1}+n+1,b_{n-1}+n+1\},\{n+1,3n/2+n+1,3n+1\}$. By our lemma, the first $n-1$ triples work. It suffices to check that the last one works. The triangle inequality is clearly satisfied, and
\[(3n+1)^2-(n+1)^2-(5n/2+1)^2=7n^2/4-n-1>0\]for $n\ge 2$, as desired.

Case 2: $n$ is odd.

We claim we can partition $[2n]\setminus\{3n/2-1/2,2n\}$ into $n-1$ pairs with differences ranging from $1$ to $n-1$. Pair up $\{(n-1)/2-k,(n-1)/2+k+1\}$ for $k=0,\ldots,(n-1)/2-1$ and $\{(3n-1)/2-k,(3n-1)/2+k\}$ for $k=1,\ldots,(n-1)/2$. Let the pair with difference $d$ be $\{a_d,b_d\}$, so $b_d-a_d=d$.

Make the triples $\{2,a_1+n+1,b_1+n+1\},\{3,a_2+n+1,b_2+n+1\},\ldots,\{n,a_{n-1}+n+1,b_{n-1}+n+1\},\{n+1,(3n-1)/2+n+1,3n+1\}$. By our lemma, the first $n-1$ triples work. It suffices to check that the last one works. The triangle inequality is clearly satisfied, and
\[(3n+1)^2-(n+1)^2-(5n/2+1/2)^2=7n^2/4+3n/2-1/4>0\]for $n\ge 1$, as desired.

So we have a construction for all $n\ge 1$.
This post has been edited 1 time. Last edited by yayups, Jan 24, 2019, 9:20 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_pi_rate
1218 posts
#12 • 3 Y
Y by Amir Hossein, Adventure10, Mango247
Here's a different way for the inductive approach: Call a triple of naturals $(i,j,k)$ a nice triple if $i<j<k$ are sides of an obtuse triangle, i.e. $i+j>k$ and $i^2+j^2<k^2$. We wish to show that $S(n)=\{2,3, \dots ,3n+1\}$ can be partitioned into $n$ nice triples. Call such a set $S(n)$ a nice set. We apply prefix induction (look at the variants of induction given here) on $n$, i.e. we try to prove that if $S(n)$ is nice, then so is $S(2n)$ and $S(2n+1)$, in which case we will be done. The base case $(n=1)$ is trivial (Take $(2,3,4)$ as the required nice triple). So now assume that the result is true for some $n \geq 2$.

First consider the set $S(2n)=\{2,4, \dots ,6n\} \cup \{3,5, \dots ,6n+1\}$. Now, if $(i,j,k)$ is a nice triple, then so are $(2i,2j,2k)$ and $(i-1,j-1,k-1)$. The first triple is easily seen to be nice, while the second one is nice using the following- $$(i-1)^2+(j-1)^2-(k-1)^2=(i^2+j^2-k^2)+2(k-i-j)+1 \leq -1+2(-1)+1<0$$This gives that if $A$ is a nice subset, then so is $2A$ and $A-1$. Using this fact, we get that, as $S(n)$ is nice, so $2(S(n)-1)=\{2,4, \dots ,6n\}$ and $2S(n)-1=\{3,5, \dots ,6n+1\}$ are also nice. Since the union of two disjoint nice sets is also nice, so we get that $S(2n)$ is a nice set.

Now, we take up the set $S(2n+1)$, which can be thought of as a union of the three sets of triples given below- $$\{(2n-2a+4,2n+a+2,4n-a+5):a=1,2, \dots ,n+1\} \cup \{(2n-2a+1,4n+a+5,6n-a+5):a=1,2, \dots ,n-1\} \cup (2n+1,4n+5,5n+5)$$It is easy to see that all of these triples are distinct and nice (Too lazy to show the calculations :D). This gives that $S(2n+1)$ is also a nice set, as desired. Hence, done. $\blacksquare$

REMARK: While trying this problem, I easily proved that $S(2n)$ is nice (Luckily the first thing I tried was induction; and when the normal induction didn't seem to work, it made sense to use prefix induction). However, proving that $S(2n+1)$ is also nice if $S(n)$ is nice came out as a difficult task, which I wasn't able to do even after trying for nearly an hour and a half (which is why I finally turned to finding out a construction, which is easy and doable in around an hour or so :P). So overall, I think this problem was a really nice one (pun intended :D), in its formation, as well as in the risk of getting stuck on it for a long time.
This post has been edited 5 times. Last edited by math_pi_rate, Mar 3, 2020, 6:49 AM
Reason: (j-1)^2- instead of (j-1)^-
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
stroller
894 posts
#13 • 2 Y
Y by Adventure10, Mango247
Not an induction
This post has been edited 2 times. Last edited by stroller, Feb 8, 2019, 11:09 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
william122
1576 posts
#14 • 1 Y
Y by TechnoLenzer
For each $n$, inductively construct a sequence of numbers in the following manner: Write $\lceil n/2\rceil$, and then repeat the process for $\lfloor n/2\rfloor$, until we get to $1$. For example, the sequence we construct for $19$ is: $10, 5, 2, 1, 1$. Now, if our sequence is $a_1,a_2,\ldots, a_i$ backwards, we split $[n+2,3n+1]$ into the following $i$ groups: $[2(a_1+\ldots + a_{i-1})+n+2, 2(a_1+\ldots+a_{i})+n+2)$, and in a group of size $2s$, we pair its first element with the $s+1$st element, etc.. In this way, we split the largest $2n$ numbers into $n$ pairs. Now, pair the pair with the $i$th smallest smaller element with $i$, to create $n$ triplets. We claim that each triplet forms an obtuse triangle.

Denote the $i$th triplet as $(i,y_i,z_i)$ such that $y_i,z_i$ are in the $k$th group formed by the $a_j$. In our construction for $\{a_j\}$, we have $a_1+\ldots+a_{j-1}\ge a_j-1$, meaning that if $y_i,z_i$ are in the $k$th group, we have that $i>a_k$, meaning triangle inequality is satisfied. Furthermore, we have $i<a_1+\ldots + a_k\le 2a_k$, so $z_i^2-y_i^2=(y_i+z_i)*2a_k>4a_k^2>i^2$, so the triangle is obtuse. So, this is a valid construction, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5000 posts
#15 • 3 Y
Y by Mango247, Mango247, Mango247
Call a triple $(a,b,c)$ stupid if $a<b<c$ and $a,b,c$ form an obtuse triangle, so we wish to partition $\{2,\ldots,3n+1\}$ into $n$ stupid triples. We begin with the following key lemma.

Lemma: If $(a,b,c)$ is stupid, then so is $(a,b+r,c+r)$ for any $r>0$.
Proof: Clearly the triangle inequality is satisfied. Furthermore, we have $a^2+b^2<c^2 \implies a^2+(b+r)^2<(c+r)^2$ for $r>0$, so combining these gives the desired. $\blacksquare$

Now we use strong downwards induction, with the base case of $n=1$ being trivial (the only option of $(2,3,4)$, which works). We will add the additional condition that our $n$ stupid triples should "separate" $2,\ldots,n+1$, i.e. each of these numbers is present (obviously as the least element) in a different stupid triple.
If $n=2m$ is even, then form the stupid triples $(2m+1,5m+1,6m+1),(2m,5m,6m),\ldots,(m+2,4m+2,3m+2)$. Note that we are left with the numbers $\{2,\ldots,m+1,2m+2,\ldots,4m+1\}$. Evidently, each of these triples satisfies the triangle inequality. Further, for any triple $(a,b,c)$ listed, we have
$$c^2-b^2\geq (5m+2)^2-(4m+2)^2=9m^2+4m>4m^2+4m+1=(2m+1)^2\geq a^2,$$so all these triangles are in fact obtuse. On the other hand, by inductive hypothesis we can form $m$ stupid triples with least parts $2,\ldots,m+1$ from the set $\{2,\ldots,m+1,m+2,\ldots,3m+1\}$, so by our lemma we should also be able to do this for $\{2,\ldots,m+1,2m+2,\ldots,4m+1\}$, completing the inductive step.
Otherwise, if $n=2m-1$ is odd, then form the stupid triples $(2m,5m-2,6m-2),(2m-1,5m-3,4m-3),\ldots,(m+1,4m-1,5m-1)$. Note that we are left with the numbers $\{2,\ldots,m,2m+1,\ldots,4m-2\}$. As before, each of these triples $(a,b,c)$ satisfies the triangle inequality, and also
$$c^2-b^2 \geq (5m-1)^2-(4m-1)^2=9m^2-2m>4m^2=(2m)^2\geq a^2,$$hence these triples are actually stupid. By inductive hypothesis, we can form $m-1$ stupid triples with least parts $2,\ldots,m$ from $\{2,\ldots,m,m+1,\ldots,3m-2\}$, so we can also do this for $\{2,\ldots,m,2m+1,\ldots,4m-2\}$ by the lemma. This again completes the inductive step.
Since these cases cover all possible $n$, we are done.

It is also possible to view this triple-generating process as an algorithm in the same way. In this case, the triples generated for $n=5$ would be $(6,13,16),(5,12,15),(4,11,14),(3,9,10),(2,7,8)$.

Remark: Why does this feel like it would have 1800 rating on codeforces?

Actual Remark (motivation): After looking at the $n=2$ case it seemed highly likely to me that some construction where we take $2,\ldots,n+1$ as the smallest elements and throw together the other elements (at the very least, it's worth a try). The most obvious way to do this would be to take $(n+1,6n,6n+1),(n,6n-1,6n-2)$, and so on, which is what's suggested by the $n=2$ construction, but when $n$ gets bigger the difference of $1$ between the squares isn't enough. On the other hand, if we make the differences really big to the point where the triangle is obtuse if it exists, the triangle inequality might not be satisfied. To overcome these "extreme issues" we probably want to do something in the middle. Looking at numbers near the top, we would probably like to get $(n+1,6n+1,6n-k)$ all the way to $(n+1-k,6n-k+1,6n-2k)$ for some suitable (approximate) choice of $k$. It turns out that $k \approx n/2$ works nicely, since the triangle inequality should just barely hold at the lower end and the obtuse condition should also hold. The rest is just correctly choosing boundary conditions.
This post has been edited 2 times. Last edited by IAmTheHazard, Dec 4, 2022, 6:32 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1665 posts
#16
Y by
Let $S(a,b,k)$ be $k$ triples of the following form:
\[(a-k+1,b-2k+1,b-k+1), (a-k+2,b-2k+2,b-k+2), \dots, (a,b-k, b)\]We impose the precondition that all of those triangles are non-degenerate and obtuse. Call $(a,b,c)$ an obtuse triple if $a<b<c$, $a+b>c$ and $a^2+b^2<c^2$. Then, if $(a,b,c)$ is obtuse then $a<b+k<c+k$, $a+(b+k)>(c+k)$ and \[a^2+(b+k)^2=a^2+b^2+2kb+k^2 < c^2+2kb+k^2 < c^2+ 2kc + k^2 = (c+k)^2\]so $(a,b+k,c+k)$ is also obtuse. Note that if $a^2+b^2<c^2$ and $a+b>c$ then \[(a-1)^2+(b-1)^2 = a^2+b^2-2(a+b)+1<a^2+b^2-2c+1<c^2-2c+1=(c-1)^2\]so if $(a,b,c)$ is obtuse and $a+b>c+1$ then so is $(a-1,b-1,c-1)$. Note that since $-7n^2+2n+1<0$ for all $n\ge 1$, we have $(2n+1)^2+(5n+1)^2 < (6n+1)^2$ and we have $n+2+4n+2>5n+2$, so $S(2n+1,6n+1,n)$ are all obtuse. It also uses every number like $\{n+2,n+3,\dots, 2n+1, 4n+2, 4n+3, \dots, 6n+1\}$.

Now, if you can partition $\{2,3,\dots 3n+1\}$ in a way that separates $\{2,3,\dots, n+1\}$ then if you add $n$ to each $b$ and $c$ in the obtuse triples, they stay obtuse and take up $\{2,3,\dots, n+1,2n+2,\dots, 4n+1\}$. Together with $S(2n+1,6n+1,n)$ we completed the partition. Thus, if the claim is true for $n$ then it is true for $2n$.

For $n$ implying $2n-1$ we can simply use $S(2n,6n-2,n-1)$ for the same effect and we will not go into detail.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5537 posts
#17
Y by
We prove a stronger statement:

Prove that for every positive integer $n,$ the set $\{2,3,4,\ldots,3n+1\}$ can be partitioned into $n$ triples in such a way that the numbers from each triple are the lengths of the sides of some obtuse triangle and none of the triangles have two side lengths less than or equal to $n+1$.

Call $(x,y,z)$ good if they are the length of the sides of an obtuse triangle. Notice that $(x,y,z)$ is good iff (WLOG $x<y<z$) $x^2  + y^2 < z^2$ and $x + y >z $. We want to split $\{2, 3, \ldots, 3n + 1\}$ into $n$ good triples.

Claim 1: If $(a,b,c)$ is good with $a < b < c$, then $(a, b + k, c + k)$ is also good for any positive integer $k$.
Proof: If $(a,b,c)$ was good, then $a^2 + b^2 < c^2$ and $a + b > c$. It suffices to show that $a^2 + (b+k)^2 < (c+k)^2$ and $a + b + k > c + k$. The second inequality holds true obviously since $a + b > c $ and the first inequality holds true because $a^2 + b^2 < c^2$ and $2bk < 2ck$. $\square$


Claim 2: If $(a,b,c)$ is good, $a<b<c$, and $a + b >c + 1$, then $(a-1, b-1, c-1)$ is also good.
Proof: Suppose $(a,b,c)$ was good. Clearly\[(a-1)^2 + (b-1)^2  = a^2 + b^2 - 2(a+b)  + 2 < c^2 - 2(c + 1) + 2 < (c-1)^2\]and $(a-1) + (b-1) = a + b - 2 > c - 1$, so $(a-1, b-1, c-1)$ is also good. $\square$

Claim 3: For any $n \ge 2$, if the statement is true, then the statement is true for $2n$ also.
Proof: We partition $\{2,3,4,\ldots, 6n + 1\}$ in the following way:

We partition the numbers in the interval $[n+2, 4n + 1]$ as\[\{n + 2, 2n + 2, 3n + 2\}, \{n + 3, 2n + 3, 3n + 3\}, \ldots, \{2n+1, 3n+1, 4n+1\}\]Obviously no two of these sets intersect. To see they are good, notice that $(2n+1)^2 + (3n+1)^2 < (4n+1)^2$, and then applying claim 2 gives the desired result.

Note that each $2\le r\le n + 1 $ was matched with two other numbers from $n+2$ to $3n + 1$ in the original partition of $\{2, 3, 4, \ldots, 3n + 1\}$. In our new partition, match it with those two same numbers except each added by $3n$. These two numbers will be each at least $n + 2$ originally, so when added by $3n$, they will at least $4n+2$, so they cannot intersect in the interval $[n + 2, 4n + 1]$. Furthermore, each of these triplets are good by claim 1, and cannot intersect each other. Therefore this partition works, so the claim is proven. $\square$

Claim 4: For any $n\ge 4$ if the statement is true, then the statement is true for $2n-1$ also.
Proof: We partition $\{2,3,4,\ldots, 6n - 2\}$ in the following way:

We partition the numbers in the interval $[n+2, 4n -2]$ as\[\{n+2, 2n+1, 3n\}, \{n+3, 2n+2, 3n+1\}, \ldots, \{2n , 3n - 1, 4n - 2\}\]Obviously no two of these sets intersect. To see they are good, notice $(2n)^2 + (3n-1)^2 < (4n-2)^2$, and then applying claim $2$ gives the desired result.

Note that each $2\le r\le n + 1$ was matched with two other numbers from $n + 2$ to $3n + 1$ in the original partition of $\{2,3,4,\ldots, 3n +1\}$. In our new partition, match it with those two same numbers except added by $3n - 3$. These two numbers will be originally at least $n + 2$, so when added by $3n - 3$, at least $4n - 1$ so they cannot intersect in the interval $[n + 2, 4n - 2]$. Furthermore, each of these triplets are good by claim $1$, and cannot intersect each other. Therefore, this partition works, so the claim is proven. $\square$

Now, we clearly see that the statement is true for $1, 2, 3, $ and $5$, by\begin{align*}
\{2,3,4\}  \\
\{2,4,5\} ,\{3,6,7\} \\
\{2,9,10\}, \{3,6,7\}, \{4,5,8\}, \\
\{5,7,9\}, \{4,12,14\}, \{2,10,11\}, \{3,15,16\}, \{6,8,13\} \\
\end{align*}respectively.

Now we may induct on $n$ to show it is true for all $n$. Note it is true for $n = 1,2,3,5$. Now suppose it was true for everything less than $k$ for some $k \ne \{1,2,3,5\}$.

If $k$ is even, the statement is true for $\frac{k}{2}$, so using claim $3$, it is true for $k$.

If $k$ is odd, the statement is true for $\frac{k + 1}{2} \ge 4$, so using claim $4$, it is true for $k$.

Therefore, the induction is complete, so 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.
YaoAOPS
1492 posts
#18
Y by
Note that for $n = 2$ we have the base case of $(2, 3, 4)$. We now induct on the hypothesis that for a given $n$, the elements $\{2, \dots, n + 1\}$ are paired with two elements each from $\{n+2, 3n+1\}$.

Claim: A construction for $n$ gives us one for $2n$.
Proof. Suppose we have such a working example.
Now consider $\{2, 3, 4, \dots, 6n + 1\}$. We can shift the latter two elements of the earlier triplets to get obtuse triangles on $\{2, 3, 4, \dots, n+1\}$ with $\{2n+2, \dots, 4n+1\}$.
It remains to match $\{n+2, \dots, 2n+1\}$ with $\{4n+2, \dots, 6n+1\}$.
We can do this by having triplets $(n+1+i, 4n+1+i, 5n+1+i)$ for $1 \le i \le n$ which satisfies the triangle condition and are obtuse. $\blacksquare$

Claim: This also works for $2n + 1$.
Proof. Same idea but match $\{n+2, \dots, 2n+2\}$ with $\{4n+3, \dots, 6n+4\}$.
This can be done by taking triplets $(n+1+i, 4n+2+i, 5n+3+i)$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathfun07
32 posts
#19
Y by
Sketch (no induction):

The motivation is firstly that it would be nice constructively if we had every triplet begin with a small number from $[2,n+1]$<l and secondly that for the pair each of these distinct numbers is associated with, we want to choose a pair from $[n+2,3n+1]$ where the pair is as spread out as possible and its size corresponds to the size of the small number it is associated with.

We claim we can split them into triples each with a distinct number from $[2,n+1]$. The main idea is we basically want to partition $[n+2,3n+1]$ into intervals of length $2k$, where then we can choose pairs from that interval with the same difference. For example, for $n=3$, we have the distinct numbers $2,3,4$, and we partition $[5,10]$ into $[5,6]$ and $[7,10]$ which would give triples $(2,5,6), (3,7,9), (4,8,10)$.

Mark $n+2$ with a dot, and continue recursively marking $\lceil k/2 \rceil$ until $2$ is marked (e.g. for $n=3$, we mark $5, 3, 2$). Then label all these marks in ascending order, $s_1, \dots s_N, s_{N+1}$ where $s_1 = 2, s_{N+1} = n+2$. We have that for $1\leq i \leq N$ that $s_{i+1} = 2s_i -1$ or $2s_i - 2$, except in case $n=2$ where $s_2 = 3$.

Now we form the triples by splitting into the aforementioned intervals: Let $1 \leq i \leq N$, and let $0 \leq j < s_{i+1} - s_{i}$. For each $j$ we form:
\[ (s_i + j, n + 2s_i - 2 + j, n + s_{i+1} + s_i - 2 + j) \]We can verify that every single number is used distinctly in this construction of triples, then by some algebraic bash ($n \geq s_i$ by the way) we can prove every triple satisfies the inequalities for obtuse triangles.
This post has been edited 2 times. Last edited by mathfun07, Mar 17, 2025, 12:28 AM
Z K Y
N Quick Reply
G
H
=
a