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

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

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

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

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

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

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

Prealgebra 2 Self-Paced

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

Introduction to Algebra A Self-Paced

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

Introduction to Counting & Probability Self-Paced

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

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

Introduction to Algebra B Self-Paced

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

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

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

Intermediate: Grades 8-12

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

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

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

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

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

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

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

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

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

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

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

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

AMC 12 Final Fives
Sunday, May 18 - Jun 15

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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

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


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

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

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

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

Physics

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

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

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

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


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


More specifically:

For new threads:


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

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


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

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


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


For answers to already existing threads:


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

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



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


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

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
Erasing the difference of two numbers
BR1F1SZ   1
N 4 minutes ago by BR1F1SZ
Source: Austria National MO Part 1 Problem 3
Consider the following game for a positive integer $n$. Initially, the numbers $1, 2, \ldots, n$ are written on a board. In each move, two numbers are selected such that their difference is also present on the board. This difference is then erased from the board. (For example, if the numbers $3,6,11$ and $17$ are on the board, then $3$ can be erased as $6 - 3=3$, or $6$ as $17 - 11=6$, or $11$ as $17 - 6=11$.)

For which values of $n$ is it possible to end with only one number remaining on the board?

(Michael Reitmeir)
1 reply
BR1F1SZ
Yesterday at 9:48 PM
BR1F1SZ
4 minutes ago
3-var inequality
sqing   1
N 17 minutes ago by Natrium
Source: Own
Let $ a,b,c\geq 0 ,a+b+c =1. $ Prove that
$$\frac{ab}{2c+1} +\frac{bc}{2a+1} +\frac{ca}{2b+1}+\frac{27}{20} abc\leq \frac{1}{4} $$
1 reply
sqing
May 3, 2025
Natrium
17 minutes ago
Geo metry
TUAN2k8   0
30 minutes ago
Help me plss!
Given an acute triangle $ABC$. Points $D$ and $E$ lie on segments $AB$ and $AC$, respectively. Lines $BD$ and $CE$ intersect at point $F$. The circumcircles of triangles $BDF$ and $CEF$ intersect at a second point $P$. The circumcircles of triangles $ABC$ and $ADE$ intersect at a second point $Q$. Point $K$ lies on segment $AP$ such that $KQ \perp AQ$. Prove that triangles $\triangle BKD$ and $\triangle CKE$ are similar.
0 replies
TUAN2k8
30 minutes ago
0 replies
mathemetics
Pangbowen   0
42 minutes ago
Let a,b,c≥0 and a+b+c=7. Prove that : a/b+b/c+c/a+abc≥ab+bc+ca-2
0 replies
Pangbowen
42 minutes ago
0 replies
Inspired by Austria 2025
sqing   3
N 44 minutes ago by Pangbowen
Source: Own
Let $ a,b\geq 0 ,a,b\neq 1$ and $  a^2+b^2=1. $ Prove that$$   (a + b ) \left( \frac{a}{(b -1)^2} + \frac{b}{(a - 1)^2} \right) \geq 12+8\sqrt 2$$
3 replies
sqing
Today at 2:01 AM
Pangbowen
44 minutes ago
Property of a function
Ritangshu   1
N an hour ago by Natrium
Let \( f(x, y) = xy \), where \( x \geq 0 \) and \( y \geq 0 \).
Prove that the function \( f \) satisfies the following property:

\[
f\left( \lambda x + (1 - \lambda)x',\; \lambda y + (1 - \lambda)y' \right) > \min\{f(x, y),\; f(x', y')\}
\]
for all \( (x, y) \ne (x', y') \) and for all \( \lambda \in (0, 1) \).

1 reply
Ritangshu
May 3, 2025
Natrium
an hour ago
max value
Bet667   2
N an hour ago by Natrium
Let $a,b$ be a real numbers such that $a^2+ab+b^2\ge a^3+b^3.$Then find maximum value of $a+b$
2 replies
1 viewing
Bet667
2 hours ago
Natrium
an hour ago
Geometry
gggzul   2
N an hour ago by gggzul
In trapezoid $ABCD$ segments $AB$ and $CD$ are parallel. Angle bisectors of $\angle A$ and $\angle C$ meet at $P$. Angle bisectors of $\angle B$ and $\angle D$ meet at $Q$. Prove that $ABPQ$ is cyclic
2 replies
gggzul
3 hours ago
gggzul
an hour ago
thank you !
Piwbo   2
N 2 hours ago by Piwbo
Given positive integers $a,b$ such that $a$ is even , $b$ is odd and $ab(a+b)^{2023}$ is divisible by $a^{2024}+b^{2024}$ .Prove that there exists a prime number $p$ such that $a^{2024}+b^{2024}$ is divisible by $p^{2025}$
2 replies
Piwbo
2 hours ago
Piwbo
2 hours ago
Inequality involving square root cube root and 8th root
bamboozled   2
N 2 hours ago by bamboozled
If $a,b,c,d,e,f,g,h,k\in R^+$ and $a+b+c=d+e+f=g+h+k=8$, then find the maximum value of $\sqrt{ad^3 g^4} +\sqrt[3]{be^3 h^4} + \sqrt[8]{cf^3 k^4}$
2 replies
bamboozled
Today at 4:46 AM
bamboozled
2 hours ago
find positive n so that exists prime p with p^n-(p-1)^n$ a power of 3
parmenides51   12
N 2 hours ago by n-k-p
Source: JBMO Shortlist 2017 NT5
Find all positive integers $n$ such that there exists a prime number $p$, such that $p^n-(p-1)^n$ is a power of $3$.

Note. A power of $3$ is a number of the form $3^a$ where $a$ is a positive integer.
12 replies
parmenides51
Jul 25, 2018
n-k-p
2 hours ago
hard problem
Cobedangiu   5
N 3 hours ago by KhuongTrang
$a,b,c>0$ and $a+b+c=7$. CM:
$\dfrac{a}{b}+\dfrac{b}{c}+\dfrac{c}{a}+abc \ge ab+bc+ca-2$
5 replies
+1 w
Cobedangiu
Yesterday at 4:24 PM
KhuongTrang
3 hours ago
Nordic 2025 P3
anirbanbz   9
N 3 hours ago by Tsikaloudakis
Source: Nordic 2025
Let $ABC$ be an acute triangle with orthocenter $H$ and circumcenter $O$. Let $E$ and $F$ be points on the line segments $AC$ and $AB$ respectively such that $AEHF$ is a parallelogram. Prove that $\vert OE \vert = \vert OF \vert$.
9 replies
anirbanbz
Mar 25, 2025
Tsikaloudakis
3 hours ago
Aime type Geo
ehuseyinyigit   1
N 3 hours ago by ehuseyinyigit
Source: Turkish First Round 2024
In a scalene triangle $ABC$, let $M$ be the midpoint of side $BC$. Let the line perpendicular to $AC$ at point $C$ intersect $AM$ at $N$. If $(BMN)$ is tangent to $AB$ at $B$, find $AB/MA$.
1 reply
ehuseyinyigit
Yesterday at 9:04 PM
ehuseyinyigit
3 hours ago
interesting combinatorics EGMO P5
aditya21   21
N Apr 19, 2025 by endless_abyss
Source: EGMO 2015, Problem 5
Let $m, n$ be positive integers with $m > 1$. Anastasia partitions the integers $1, 2, \dots , 2m$ into $m$ pairs. Boris then chooses one integer from each pair and finds the sum of these chosen integers.
Prove that Anastasia can select the pairs so that Boris cannot make his sum equal to $n$.
21 replies
aditya21
Apr 17, 2015
endless_abyss
Apr 19, 2025
interesting combinatorics EGMO P5
G H J
G H BBookmark kLocked kLocked NReply
Source: EGMO 2015, Problem 5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aditya21
717 posts
#1 • 5 Y
Y by JustinHW, Adventure10, Mango247, HoRI_DA_GRe8, GeoKing
Let $m, n$ be positive integers with $m > 1$. Anastasia partitions the integers $1, 2, \dots , 2m$ into $m$ pairs. Boris then chooses one integer from each pair and finds the sum of these chosen integers.
Prove that Anastasia can select the pairs so that Boris cannot make his sum equal to $n$.
This post has been edited 2 times. Last edited by v_Enhance, Apr 18, 2015, 5:12 PM
Reason: \dots
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AdithyaBhaskar
652 posts
#2 • 4 Y
Y by JustinHW, Adventure10, Mango247, HoRI_DA_GRe8
Nice problem! I hope some kind of parity argument will help....
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sarthak7
255 posts
#3 • 4 Y
Y by JustinHW, Adventure10, Mango247, HoRI_DA_GRe8
I think she should arrange in such a way that each pair sum will be equal to $n$ or factors of $n$...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
junioragd
314 posts
#4 • 4 Y
Y by JustinHW, Adventure10, Mango247, HoRI_DA_GRe8
First,partiotion $(1,m+1),(2,m+2),...(m,2m)$ can have only numbers $m*(m+1)/2$ $modm$ and the partiotion $(1,2),(3,4),...(2m-1,2m)$ can have only numbers that are beetwen $m*m$ and $m*m+m$.Now,we have two cases:
Case $1$:$m$ is even.Let $m=2k$.Now,we are only left to prove that for $n=k*(4k+1)$ is a partition and take $(1,4k),(2,3),(4,5),....(4k-2,4k-1)$.Now,if we pick $4k$ the least sum will be $4k*k+2*k$ and if we pick $1$ the maximum sum will be $4k*k$,so we can't get $k*(4k+1)$.
Case $2$:$m$ is odd.We only need a partition for $m^2$ and $m*m+m$,these are obviosly equivalent and the partition $(1,2m-1),(2,2m),(3,4),...(2m-3,2m-2)$ satisfayes the conditions(the reasoning is pretty much the same as in the previous case).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6877 posts
#5 • 6 Y
Y by Wizard_32, rashah76, JustinHW, Adventure10, Mango247, HoRI_DA_GRe8
Cute problem. The idea of trying to find a few constructions which eradicate all the cases works; find a couple nice ones that eliminate all but a few survivors, then attack the few holdouts. (It's like using reavers on zerglings: knock out 90% of the lings with a couple scarabs and then have the zealots finish the rest.)

For all $m$, we can consider the following two pairings:
\[
\begin{array}{ccccc}
	1 & 3 & \dots & 2m-3 &  2m-1 \\
	2 & 4 & \dots & 2m-2 & 2m
\end{array}
\qquad\text{and}\qquad
\begin{array}{ccccc}
	1 & 2 & \dots & m-1 & m \\
	m+1 & m+2 & \dots & 2m-1 & 2m
\end{array}
\]
The former pairing eradicates all numbers outside $[m^2, m^2+m]$ while the latter eradicates all numbers which are not $\tfrac 12 m(m+1) \pmod m$.

In what follows, assume $m \ge 4$ (smaller cases can be dispensed with by hand). If $m$ is odd, we need to annihilate the values $m^2$ and $m^2+m$. We can do this with the pairing \[
\begin{array}{ccccc}
	1 & 2 & \dots & m-1 & m \\
	m+2 & m+3 & \dots & 2m & m+1
\end{array}
\] The possible values of this modulo $m+1$ are $\tfrac 12 m(m+1) + \{0,1\} \equiv \tfrac12(m+1) + \{0,1\} \pmod{m+1}$ since $m$ is odd. But $m^2$ and $m^2+m$ leave residues $1$ and $2$ modulo $m$, done.

If $m$ is even (so $m+1$ is odd), then the only value we need to eliminate is $m^2 + \tfrac 12 m$, which is $\tfrac 12 \pmod{m+1}$. The same pairing as in the even cases has possible values $\tfrac 12m (m+1) + \{0,1\} \equiv \{0,1\} \pmod{m+1}$. This completes the proof.
This post has been edited 1 time. Last edited by v_Enhance, Apr 18, 2015, 5:11 PM
Reason: clarify starcraft analogy
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PaweU
3 posts
#6 • 5 Y
Y by JustinHW, Adventure10, Mango247, HoRI_DA_GRe8, kiyoras_2001
Do you guys have any idea how that could work with Anstasia instead of making pairs of $\{ 1,2, \ldots, 2k\}$ would make m-tuples of $\{ 1,2, \ldots, mk\}$?
This post has been edited 1 time. Last edited by PaweU, May 17, 2016, 9:30 AM
Reason: Mistake
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#8 • 3 Y
Y by JustinHW, Mango247, HoRI_DA_GRe8
We want to show that there cannot be an $n$ which is a possible sum for each pair-partition. Suppose such an $n$ existed. Then $n$ is a possible sum for
  • $(1,m+1),(2,m+2),\ldots,(m,2m)$. Every sum in this pair-partition is $1+2+\cdots+m \equiv \tfrac{m(m+1)}{2} \pmod{m}$. Hence $n\equiv \tfrac{m(m+1)}{2} \pmod{m}$. This is 0 mod $m$ for odd $m$ and $m/2 \mod m$ for even $m$.
  • $(1,2),(3,4),\ldots,(2m-1,2m)$. Every sum in this pair-partition is in the range $1+3+\cdots+(2m-1)=m^2$ and $2+4+\cdots+2m=m^2+m$, and clearly any number in $[m^2,m^2+m]$ is achievable. So $n \in [m^2, m^2+m]$.
These two narrow down $n$ to being $n=m^2, m^2+m$ for odd $m$, and $m^2+m/2$ for even $m$. Consider the partition $(1,m+2),(2,m+3),\ldots,(m-1,2m),(m,m+1)$. This is $\tfrac{m(m-1)}{2}$ minus 0 or 1 mod $m+1$.
  • Case 1: $m$ is odd. The above becomes $\tfrac{1-m}{2}, \tfrac{-1-m}{2}\pmod{m+1}$. Since $m^2\equiv 1, m^2+m\equiv 0 \pmod{m+1}$, this proves there are no values of $n$ for odd $m$.
  • Case 2: $m$ is even. Then $\tfrac{m(m-1)}{2} \equiv \tfrac{m}{2}\cdot (-2) \equiv 1 \pmod{m+1}$. And $m^2+\tfrac{m}{2} \equiv 1+\tfrac{m}{2} \pmod{m+1}$, which is enough to finish for odd $m$.

Remarks
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jj_ca888
2726 posts
#9 • 2 Y
Y by Mango247, HoRI_DA_GRe8
Consider the pairings $\{(1, m+1), (2, m+2), \ldots , (m, 2m)\}$ and $\{(1, 2), (3, 4), \ldots , (2m-1, 2m)\}$.

In the first pairing, no matter how Boris chooses, the final sum $n$ must be $\tfrac12 {m(m + 1)} \pmod{m}$ so Anastasia can always choose this pairing to kill $n \not \equiv \tfrac12 {m(m + 1)} \pmod m$.

In the second pairing, the sum $n$ is bounded between values $1 + 3 + \ldots + 2m-1 = m^2$ and $2 + 4 + \ldots + 2m = m(m+1)$ independent of Boris's choices. Hence Anastasia can always choose this pairing to kill $n > m^2 + m$ and $n < m^2$.

It remains to consider when $n \equiv \tfrac12m(m+1) \pmod m$ and $n \in [m^2, m^2 + m]$. We split cases based on whether $m$ is even or odd:

If $m$ is odd, then $n$ must be either $m^2$ or $m^2 + m$. We may choose the pairing\[\{(1, m+2), (2, m+3), \ldots , (m-1, 2m), (m, m+1)\}.\]No matter how Boris chooses his numbers, $n$ must be $(1 + 2 + \ldots m-1) - 0, 1 = \tfrac12m(m-1) - 0, 1$ modulo $m + 1$. Replacing $m$ with $-1$ and adding $m+1$ simplifies this to $\tfrac12(m + 1)$ or $\tfrac12(m + 3)$ modulo $m + 1$. Finally note that we have $m^2 + m \equiv 0$ modulo $m + 1$ which is not possible, and $m^2 \equiv 1$ modulo $m + 1$, which is also not possible.

If $m$ is even, then $n$ must be $m^2 + \tfrac12m$. We again choose the pairing\[\{(1, m+2), (2, m+3), \ldots , (m-1, 2m), (m, m+1)\}.\]Taking modulo $m+1$ again we see that $n$ must again be $\tfrac12m(m - 1) - 0, 1$ modulo $m + 1$ and simplifying this by replacing $m-1$ with $-2$ and then adding $m + 1$ yields $n \equiv 0, 1$ modulo $m + 1$. However\[n = m^2 + \frac12m \equiv \frac12m + 1 \not \equiv 0, 1 \pmod{m+1}\]which is not possible.

So indeed, we have proven that Anastasia can always cuck Boris given $m$ and $n$. $\blacksquare$
This post has been edited 1 time. Last edited by jj_ca888, Sep 9, 2020, 2:45 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
GeronimoStilton
1521 posts
#10 • 6 Y
Y by awang11, jozuch, Mango247, Mango247, Mango247, HoRI_DA_GRe8
We use the following silly argument. Let $N$ denote the number of sets of $m$ elements of $\{1,2,\dots,2m\}$ summing to $n$. For any particular such set, the probability that a random selection of pairs by Anastasia will not make it impossible is
\[\frac{m!}{\displaystyle\binom{2m}{\underbrace{2,\dots,2}_{m\mbox{ times}}}} = \frac{m!}{\displaystyle\frac{2m!}{2^m}} = \frac{m!}{m!\cdot (2m-1)!!} = \frac{1}{(2m-1)!!}.\]So by linearity of expectation, it suffices to show $N<(2m-1)!!$.

In fact, for any $i,n,m$ with $m>1$ we claim that the number of sets of $i$ elements of $\{1,\dots,2m\}$ with sum $n$ is less than $(2m-1)!!$. The proof is by induction on $m$.

For the case of $m=2$, note the result is trivial for $i\in\{0,1,3,4\}$ because the sets of $i$ elements all have different sums in each case, and for $i=2$ it suffices to count the possible sets for each $n$. The possibilities are $3=1+2,4=1+3,5=1+4=2+3,6=2+4,7=3+4$. Since the most sets for any value of $n$ is $2$ and $2<3!!=3$, we are done.

For the induction step, note that for any set of $i$ elements with sum $n$ either both $2m,2m-1$ are included, exactly one of $2m,2m-1$ is included, or none of $2m,2m-1$ is included. By the induction hypothesis, this yields at most $2^2\cdot (2m-3)!! = 4\cdot (2m-3)!! < (2m-1)!!$ sets, 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.
IAmTheHazard
5001 posts
#11 • 4 Y
Y by centslordm, Mango247, Mango247, HoRI_DA_GRe8
I'm never sure what to feel about problems that are construction and only construction.

Anastasia can always select the partition $(1,2),(3,4),\ldots,(2m-1,2m)$ to eliminate everything except for $[m^2,m^2+m]$. She can also always select the partition $(1,m+1),(2,m+2),\ldots,(m,2m)$, which eliminates everything except for the set:
$$S=\left\{\frac{m(m+1)}{2},\frac{m(m+3)}{2},\ldots,\frac{m(3m+1)}{2}\right\}.$$Now we consider the two cases based on the parity of $m$:
Case 1: $m$ is even. Then the intersection of $S$ and $[m^2,m^2+m]$ is $\tfrac{1}{2}m(2m+1)$. To show $\tfrac{1}{2}m(2m+1)$ cannot be achieved, consider the partition:
$$(1,2m),(2,3),(4,5),\ldots,(2m-2,2m-1).$$From $(2,3),(4,5),\ldots,(2m-2,2m-1)$, Boris can obtain only the sums in the set:
$$S=\{m^2-m,m^2-m+1,\ldots,m^2-1\}.$$Hence the set of sums Boris can obtain with this partition is equal to:
$$S+\{1\}\cup S+\{2m\}=\{m^2-m+1,m^2-m+2,\ldots,m^2\}\cup \{m^2+m,m^2+m+1,\ldots,m^2+2m-1\}.$$But we have $\tfrac{1}{2}m(2m+1)=m^2+\tfrac{1}{2}m$, hence:
$$m^2<m^2+\frac{1}{2}m<m^2+m,$$so with this partition Boris cacnnot achieve $\tfrac{1}{2}m(2m+1)$. Hence Anastasia can always select the pairs so Boris cannot make the sum equal to $n$ for even $n$.
Case 2: $m$ is odd. Then the intersection of $S$ and $[m^2,m^2+m]$ is $m^2,m^2+m$. To show that $m^2,m^2+m$ cannot be achieved, consider the partition:
$$(1,m),(2,m+1),\ldots,(m-1,2m-2),(2m-1,2m).$$The sum Boris can obtain from $(1,m),(2,m+1),\ldots,(m-1,2m-2)$ is in the set:
$$S=\left\{\frac{m(m-1)}{2},\frac{(m+2)(m-1)}{2},\ldots,\frac{(3m-2)(m-1)}{2}\right\}.$$Suppose Boris picks $2m$ from its pair. Then we want to show that $m^2-2m,m^2-m$ are not in $S$. We can easily see that $S$ is exactly the numbers $\tfrac{1}{2}(m+2k)(m-1)$, where $0 \leq k <m$. Suppose $m^2-2m \in S$. Then:
$$\frac{(m+2k)(m-1)}{2}=m^2-2m \implies -2k \equiv 0 \pmod{m} \implies m \mid k,$$snce $m$ is odd, but this is impossible since $k<m$. We can eliminate $m^2-m$ with the exact same procedure, hence Anastasia can always select the pairs so Boris cannot make his sum equal to $n$ for odd $m$.

And we're done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeYRY
579 posts
#12 • 1 Y
Y by HoRI_DA_GRe8
Consider the set of pairs $(1,2),(3,4),\ldots (2m-1,2m)$, which only hit values in $[m^2,m^2+m]$.

Next, consider the set of pairs $(1,2m),(2,3),(4,5),\ldots (2m-2,2m-1)$, which only hits values in $\{1,2m\} + [m^2-m, m^2-1]= [m^2-m+1,m^2] \cup [m^2+m,m^2+2m-1]$.

We now deal with $m^2$ and by extension $m^2+m$ to finish. Firstly, $m=3$ works with $(1,6),(2,4),(3,5)$.

If $m$ is even, then the set $(1,m+1),(2,m+2),\ldots, (m,2m)$ kills $m^2$ because $\frac{m(m+1)}{2}+k\cdot m = m^2$ has no solutions.

If $m$ is odd, the set $(1,2m),(2,m+1),(3,m+2),\ldots, (m,2m-1)$. Firstly, $m^2\equiv 1 \pmod{m-1}$ and $1+2+3+\cdots + m\equiv \frac{m+1}{2} \pmod{m-1}$. We can only add $2m-1\equiv 1$ or $m-1\equiv 0$, neither of which gets us to $1$ for $m\geq 5$.

Thus, all possible values can be excluded, so we are done. $\blacksquare$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mijail
121 posts
#13 • 1 Y
Y by HoRI_DA_GRe8
Nice problem! :D

Suppose that the problem it's false. Then consider the pairs $\{ (1,2); (3;4); \dots (2i-1,2i)  \dots (2m-1,2m) \}$ then $n \in [m^2, m^2+m] $

Now consider the collections of pairs $\{(1,m+1); (2,m+2) \dots (i,i+m) \dots (m, 2m)\}$ and $\{(1,m+2); (2,m+3) \dots (i,i+m+1) \dots (m-1,2m); (m,m+1) \}$. With the first collection we have that: $$n \equiv 1+2+ \dots + m \equiv  \frac{m(m-1)}{2} \pmod m $$
Also with the second collection we have: $$n \equiv 1 + 2+ \dots + (m-1) + e \equiv \frac{m(m-1)}{2} +e \pmod {m+1}$$
With $e \in \{0,-1\}$ then $ n = \frac{m(m-1)}{2}  + mt \equiv \frac{m(m-1)}{2} +e \pmod {m+1} \implies m+1 \mid t+e$

But $n \in [m^2, m^2+m] \implies t \in [\frac{m+1}{2}, \frac{m+3}{2}] \implies t+e \in [\frac{m-1}{2}, \frac{m+3}{2}]  $. This is contradicction becuase $m+1 \leq t+e$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8859 posts
#14 • 2 Y
Y by HoRI_DA_GRe8, GeoKing
Quite a cute problem; the details come together very nicely.

Consider the following three groupings:
  • Grouping A, $(1, 2), (3, 4), (5, 6), \dots, (2m-1, 2m)$.
  • Grouping B, $(1, 2m), (2, 3), (4, 5), \dots, (2m-2, 2m-1)$.
  • Grouping C, $(1, 2m-1), (2, 2m), (3, 4), \dots, (2m-3, 2m-2)$.
Notice that Grouping A restricts all possible $n$ to those between $1+3+\cdots+2m-1 = m^2$ and $2+4+\cdots+2m = m^2+m$. On the other hand, considering Grouping B, the largest sum attainable without selecting $2m$ from the first pair is $m^2$, while the smallest sum attainable while selecting $2m$ is $m^2+m$.

Finally, by considering Grouping C, notice that we can form a sum of $1+2m+4+6+\cdots+2m-2 = m^2+m-1$. The next largest sum must substitute $2m$ for $2$. If $1$ is substituted for $2m-1$, the maximal sum still remains at $m^2+m-1$; otherwise, it jumps to greater than $m^2+m$. Thus $m^2+m$ cannot be attained through Grouping C. Similarly, $m^2$ cannot be attained through Grouping C either. Combining all three groupings thus eliminates all possible values of $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HoRI_DA_GRe8
597 posts
#17 • 2 Y
Y by sanyalarnab, GeoKing
Solved with Kamatadu, Distorteddragon1o4 and sanyalarnab

Consider 4 groupings

1. Grouping A, $\boxed{(1, 2), (3, 4), (5, 6), \dots, (2m-1, 2m)}$.This restricts $n$ in the range $[m^2,m^2+m]$

2.Grouping B, $\boxed{(1,m+1), (2, m+2), (3,m+3), \dots, (m,2m)}$.In this grouping any $n$ produced should be always congruent to $0 \pmod m$ for $m$ odd as,
$$n \equiv 1+2+3+\cdots +m \equiv \frac{m(m+1)}{2} \equiv 0 \pmod m$$So only $n$ left for odd is $m^2,m^2+m$ the Grouping C avoids it (to be proved).
For $n$ even ,
$$n \equiv 1+2+3+\cdots +m \equiv \frac{m(m+1)}{2} \equiv \frac{m}{2} \pmod m$$So for $m$ even $n$ restricts to $[m^2+\frac{m}{2}]$

3.Grouping C, $\boxed{(1,2m),(2,m+1),\cdots,(m,2m-1)}$
Any sum of grouping C should be of the form $\boxed{\frac{m(m+1)}{2}+(2m-1)\cdot e+(m-1) \cdot k}$ where $e=0,1$ and $0 \leq k \leq m-1$.

Now if, $\frac{m(m+1)}{2}+(2m-1)+(m-1) \cdot k=m^2$ ,then by arranging we get that $m-1 |\frac{m+1}{2}$ but $\frac{m+1}{2}\le m-1 $ for $m \ge 3$ but for $m=3$ it can be manually checked that this construction works.If $\frac{m(m+1)}{2}+(m-1) \cdot k=m^2$ then we have $k=\frac{m}{2}$ ,impossible since $m$ is odd.

Now ,$\frac{m(m+1)}{2}+2m-1+(m-1) \cdot k=m^2+m \implies k \equiv m-1 \pmod m$ but putting $k=m-1$ gives $m=\frac{m(m+1)}{2}$ but we seriously don't care about $1$.If $\frac{m(m+1)}{2}+(m-1) \cdot k=m^2+m$ then $m-1|\frac{m+1}{2} $ a.k.a "a joke"

4.Grouping D,$\boxed{(1,m+2),(2,m+3),\cdots (m-1,2m),(m,m+1)}$ for $m$ even
The sums are of the form ,$\boxed{\frac{m(m+1)}{2}+(m+1)k+0/1}$
Now, $$\frac{m(m+1)}{2}+(m+1)k+0/1=m^2+\frac{m}{2} \implies m+1 |\frac{ m^2}{2}/\frac{m^2-2}{2}$$But $m+1|m^2-1$ so it can't divide either one of $\frac{m^2}{2}$ or $\frac{m^2-2}{2}$ and hence grouping D avoids $m^2+\frac{m}{2}$ for all even $m$.

Since all numbers could be avoided by the above $4$ groupings, we are done $\blacksquare$
This post has been edited 2 times. Last edited by HoRI_DA_GRe8, Jan 2, 2024, 7:35 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CrazyInMath
457 posts
#19
Y by
:knock knock
:who's in there?
:Codeforces 1404D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
superagh
1865 posts
#20
Y by
1. $(1, 2), (3, 4), ..., (2m-1, 2m)$ eliminates $n < m^2$ and $n > m^2+m$.
2. $(1, 2m), (2, 3), (4, 5), ..., (2m-2, 2m-1)$ eliminates $m^2 < n < m^2+m$.
3. $(1, 2m-1), (2, 2m), (3, 4), (5, 6), ..., (2m-3), (2m-2)$ eliminates $m^2$ and $m^2+m$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
620 posts
#21
Y by
We first consider $n < m^2$ and $n > m^2+m$. Then, Anastasia provides the pairing
\[\frac{1}{2} \frac{3}{4} \dots \frac{2m-1}{2m} \]Note that then,
\[S \ge 1+3+\dots + 2m-1 = m^2\]and
\[S \le 2 + 4+ \dots + 2m = m^2 +m\]implying that for all $n < m^2$ or $n > m^2+m$ Boris cannot make his sum equal to $n$.
Now, we have two cases to examine.

Case 1 : $m$ is even, and $m^2 \le n \le m^2+2$. Here, say $n \ne m^2 + \frac{m}{2}$, then Anastasia will provide the pairing,
\[\frac{1}{m+1} \frac{2}{m+2} \dots \frac{m}{2m} \]Then, from each pair Boris must chose a number which is $1,2,\dots , 0 \pmod{m}$ and thus,
\[S \equiv 0 + 1 + 2 + \dots + m-1 \equiv \frac{m(m+1)}{2} \equiv \frac{m}{2} \pmod{m}\]Thus, since $m^2 \le n \le m^2+2$ and $n \ne m^2 + \frac{m}{2}$, it is impossible for Boris to make his sum equal to $n$.

Now, if $n=m^2 + \frac{m}{2}$, for $m=2$, Anastasia provides the pairing
\[\frac{1}{4} \frac{2}{3}\]from which it is obviously impossible to make a sum of 5. For $m >2$, we consider an odd prime $p \mid m-1$ (must exist since $m-1>1$ is odd) and then, Anastasia provides the pairing,
\[\frac{1}{m} \frac{2}{m+1} \dots \frac{m-1}{2m-2}\frac{2m-1}{2m}\]Then, from the first $m-1$ pairs, Boris must chose a number which it $1,2,\dots , 0 \pmod{m-1}$ and from the last pair, a number which is either 1 or 2 $\pmod{m-1}$. Thus,
\[S \equiv 0 + 1 + 2 + \dots + m-2 + a \equiv \frac{m(m-1)}{2} + a \equiv a \pmod{m-1}\]where $a\equiv 1,2\pmod{m-1}$. But, note that letting $m=2k$,
\[m^2 + \frac{m}{2} \equiv k+1 \pmod{m-1}\]which is not $1,2 \pmod {m-1}$ for all $k > 1$. Thus, Boris can never make his sum equal to $n$ in this case.

Case 2 : $m$ is odd, and $m^2 \le n \le m^2+2$. Here, say $n \not \in \{m^2,m^2+m\}$, then Anastasia will provide the pairing,
\[\frac{1}{m+1} \frac{2}{m+2} \dots \frac{m}{2m} \]Then, from each pair Boris must chose a number which is $1,2,\dots , 0 \pmod{m}$ and thus,
\[S \equiv 0 + 1 + 2 + \dots + m-1 \equiv \frac{m(m+1)}{2} \equiv 0 \pmod{m}\]Thus, since $m^2 \le n \le m^2+2$ and $n \not \in \{m^2,m^2+m\}$, it is impossible for Boris to make his sum equal to $n$.

Now, if $n  \in \{m^2,m^2+m\}$, and $m=3$, Anastasia provides the pairing,
\[\frac{1}{5}  \frac{2}{6} \frac{3}{4} \]from which it is easy to check that Boris cannot make a sum of either $9$ or $12$. When $m=5$, Anastasia provides the pairing,
\[\frac{1}{2}  \frac{3}{7} \frac{4}{9} \frac{5}{6}  \frac{8}{10}\]from which it can be confirmed that Boris cannot make a sum of either $25$ or $30$. Now, when $m >5$, Anastasia provides the pairing,
\[\frac{1}{m-1} \frac{2}{m} \dots \frac{m-2}{2m-4}\frac{2m-3}{2m-1} \frac{2m-2}{2m}\]Then, from each of the first $m-2$ pairs Boris must chose a number which is $1,2,\dots , 0 \pmod{m-2}$ and thus,
\[S \equiv 0 + 1 + 2 + \dots + m-3 + a + b\equiv \frac{({(m-2)(m-1)}}{2} + a+ b \equiv a+b \pmod{m}\]Now, $m^2 \equiv 4 \pmod{m-2}$ and $m^2 +m \equiv 6 \pmod{m-2}$. But, it is easy to see from the pairing that since $2m-1 \equiv 3 , 2m-2 \equiv 2 , 2m-2 \equiv 2 $ and $2m \equiv 4 \pmod{m-2}$ none of the possible choses from the last two pairs allow this. Thus, in thic case as well Boris cannot make the sum of the numbers equal to $n$ and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
emi3.141592
71 posts
#22
Y by
Consider the following pairings:
\[
(1, 2), (3, 4), \ldots, (2m-1, 2m)
\]\[
(1, m+1), (2, m+2), \ldots, (m, 2m).
\]The first discards all \(n < m^2\) and \(n > m^2 + m\). The second discards all \(n \not\equiv \frac{m(m+1)}{2} \pmod{m}\).

Now, we consider two cases.

Case 1: If \(m\) is odd, we only need to discard \(n = m^2, m^2+m\). For this, consider the pairing:
\[
(1, m+2), (2, m+3), \ldots, (m-1, 2m), (m, m+1).
\]The only values that can be obtained are
\[
n \equiv \frac{m(m+1)}{2} + 0, 1 \pmod{m+1}.
\]But \(m^2 \equiv 1 \pmod{m+1}\) and \(m^2 + m \equiv 0 \pmod{m+1}\).

Case 2: If \(m\) is even, we need to discard \(n = m^2 +\frac{m}{2}\equiv\frac{m}{2}+1 \pmod{m+1}\). Using the same arrangement as the previous case, the only values we can obtain are
\[
n \equiv \frac{m(m+1)}{2} + 0, 1 \pmod{m+1}.
\]And we are done.
This post has been edited 1 time. Last edited by emi3.141592, Dec 6, 2024, 7:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bin_sherlo
719 posts
#23
Y by
Similar
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
616 posts
#24
Y by
First note that $(1, m + 1), (2, m + 2), \dots, (m, 2m)$ implies it suffices to prove the statement when $n\equiv \frac{m(m+1)}2\pmod m.$ From $(1, 2), (3, 4), \dots, (2m - 1, 2m),$ it suffices to prove the statement for $n\in[m^2, m^2 + m].$ We now do casework on parity of $m$.

If $m\equiv0\pmod{2},$ then it suffices to prove statement for $n = m^2 + \frac m2.$ Take $(1, m + 2), (2, m + 3), \ldots, (m - 1, 2m), (m, m + 1)$. From modulo $m + 1,$ this is impossible unless $m\leq2.$ $m = 2$ is easy to hand check.

If $m\equiv1\pmod2,$ then we prove statement for $n = m^2, m^2 + m.$ Take $(1, m + 2), (2, m + 3), \ldots, (m - 1, 2m), (m, m + 1)$. Modulo $m + 1$ finishes for $m\geq5.$ Handcheck $m = 1, 3.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Avron
37 posts
#25
Y by
Fun one

By taking the pairs $(i,i+1)$ the minimum sum Boris can make is $1+3+...+(2m-1)=m^2$ and the maximum is $2+4+...+2m=m^2+m$ so we only need to consider $m^2\leq n\leq m^2+m$. By taking the pairs $(i,m+i)$ every sum is $1+2+...+m=\frac{m(m+1)}{2}\equiv 0,\frac{m}{2}$ mod $m$ depending on the parity of $m$.

Assume $n$ is odd and $n\in\{m^2,m^2+m\}$. Take the pairs $(i,i+m+1)$ for $0<i<m+1$ (instead of $2m+1$ write $m+1$). Modulo $m+1$ every sum is $\frac{m(m-1)}{2}+b\equiv b-\frac{m-1}{2}$ where $b\in\{0,m\}$, so it is clearly not congruent to $m^2$ nor $m^2+m$. For $m$ even take the same pairing then the possible values modulo $m+1$ are $\frac{m(m-1)}{2}+b\equiv b-m$ so it is again not congruent to $m^2+\frac{m}{2}$ and we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
endless_abyss
45 posts
#26
Y by
Nice, we have two constructions -
:)

Claim: $(1,m +1), (2,m +2), (3, m+3)... (m, 2m)$ will only yield sum that is $S \equiv m(m +1)/2 \mod m$,
Because even if we change the terms we pick inside the pairs, it will only change by a sum of $m$
$\blacksquare$

Claim: $(1,2), (3,4), (5,6)... (2m - 1, m)$ can yield any number between $m^2$ and $m^2 +  m$
because the difference between the terms in each pair is exactly $1$, so if $S$ is achievable, so is $S +1$ as long as it is lesser than or equal to the maximum possible sum.
$\blacksquare$

so, in claim 2, we can only obtain $S$ such that -

$m^2 \leq S \leq m^2 + m$
and note that no such $S \equiv m(m+ 1)/2 \mod m$, so they are disjoint and if $S$ falls in any one of the categories, we simply pick the other one.

$\square$
:starwars:
Z K Y
N Quick Reply
G
H
=
a