Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

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
Easy P4 combi game with nt flavour
Maths_VC   1
N 2 hours ago by p.lazarov06
Source: Serbia JBMO TST 2025, Problem 4
Two players, Alice and Bob, play the following game, taking turns. In the beginning, the number $1$ is written on the board. A move consists of adding either $1$, $2$ or $3$ to the number written on the board, but only if the chosen number is coprime with the current number (for example, if the current number is $10$, then in a move a player can't choose the number $2$, but he can choose either $1$ or $3$). The player who first writes a perfect square on the board loses. Prove that one of the players has a winning strategy and determine who wins in the game.
1 reply
Maths_VC
May 27, 2025
p.lazarov06
2 hours ago
Central sequences
EeEeRUT   14
N 3 hours ago by HamstPan38825
Source: EGMO 2025 P2
An infinite increasing sequence $a_1 < a_2 < a_3 < \cdots$ of positive integers is called central if for every positive integer $n$ , the arithmetic mean of the first $a_n$ terms of the sequence is equal to $a_n$.

Show that there exists an infinite sequence $b_1, b_2, b_3, \dots$ of positive integers such that for every central sequence $a_1, a_2, a_3, \dots, $ there are infinitely many positive integers $n$ with $a_n = b_n$.
14 replies
EeEeRUT
Apr 16, 2025
HamstPan38825
3 hours ago
Elementary Problems Compilation
Saucepan_man02   32
N 4 hours ago by atdaotlohbh
Could anyone send some elementary problems, which have tricky and short elegant methods to solve?

For example like this one:
Solve over reals: $$a^2 + b^2 + c^2 + d^2  -ab-bc-cd-d +2/5=0$$
32 replies
Saucepan_man02
May 26, 2025
atdaotlohbh
4 hours ago
Random Points = Problem
kingu   5
N 4 hours ago by happypi31415
Source: Chinese Geometry Handout
Let $ABC$ be a triangle. Let $\omega$ be a circle passing through $B$ intersecting $AB$ at $D$ and $BC$ at $F$. Let $G$ be the intersection of $AF$ and $\omega$. Further, let $M$ and $N$ be the intersections of $FD$ and $DG$ with the tangent to $(ABC)$ at $A$. Now, let $L$ be the second intersection of $MC$ and $(ABC)$. Then, prove that $M$ , $L$ , $D$ , $E$ and $N$ are concyclic.
5 replies
+1 w
kingu
Apr 27, 2024
happypi31415
4 hours ago
No more topics!
Weighted Blocks
ilovemath04   52
N May 1, 2025 by ND_
Source: ISL 2019 C2
You are given a set of $n$ blocks, each weighing at least $1$; their total weight is $2n$. Prove that for every real number $r$ with $0 \leq r \leq 2n-2$ you can choose a subset of the blocks whose total weight is at least $r$ but at most $r + 2$.
52 replies
ilovemath04
Sep 22, 2020
ND_
May 1, 2025
Weighted Blocks
G H J
Source: ISL 2019 C2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Leo.Euler
577 posts
#43
Y by
Consider the process in which the empty set is considered, and in each step, the heaviest block that does not allow the sum of the weights of the block in the set exceed $r+2$ is appended to the set, until this step cannot be done. Assume for contradiction that the problem does not hold. Then the process terminates with the total weight of the set being less than $r$.

Let the weights of the blocks that have been used in the process be $w_1, \dots, w_k$. The key claim is the following.

Claim: All blocks that have not been used have weight greater than $r+2 > w_1+\dots+w_k+2$.
Proof. Otherwise, such a block would have been used in the first step and the process would successfully terminate, with the total weight of the set in $[r, r+2]$.
:yoda:

Since there are $n-k$ blocks that are unused, the total weight of all blocks is greater than \[ (w_1+\dots+w_k) + (n-k)(w_1+\dots+w_k+2) = (n-k+1)(w_1+\dots+w_k)+2(n-k). \]Thus \[ w_1+\dots+w_k < \frac{2k}{n-k+1} \le \frac{2k}{2} = k, \]a contradiction since all blocks have weight at least $1$.

Remark: [motivation] The process defined is motivated by the local idea of Repeating Until Stuck (RUST). The main nontrivial step used is the key claim; when using RUST, it is important to understand when an element of the universal set is a candidate for the constructed set, and moreover what happens after a candidate is accepted and another candidate is rejected. This is often useful in local problems. (The main claim in 2023 AIME I #14 is a good example of this.)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
naonaoaz
334 posts
#44
Y by
Label the weights $w_1$ to $w_n$ in increasing order. Take any real $r \in [0, 2n-2]$. Now we construct a set $S$ such that $W(S) \in [r,r+2]$ (where $W(S)$ is the weight of set $S$).

We start by repeatedly taking the largest weight $w$ such that $W(S)+w \le r+2$. Once we get stuck, there are two possibilities.
Case 1: We have that $r \le W(S)$. In this case, we are clearly done as the set $S$ works.
Case 2: We have that $r>W(S)$. Take the minimal $w_{\ell}$ that isn't in $S$. Since we are taking the maximal $w$ each step, we must have
\[\sum_{w \in S,\text{ }w>w_{\ell}} w+w_{\ell} > r+2\]If it was less than or equal to, then we would've chosen $w_{\ell}$ contradicting the definition of $w_{\ell}$. Furthermore, since $w_{\ell}$ is minimal, we have
\[\sum_{w \in S,\text{ }w>w_{\ell}} w+\sum_{i = 1}^{\ell-1} w_i < r\]These two imply that
\[w_{\ell} > \sum_{i = 1}^{\ell-1}w_i+2 \implies w_{\ell} > \ell+1\]as $w \ge 1$ for all weights. Now using the fact that the max weight is $2n$, we have
\[2n \ge \ell-1+w_{\ell} \cdot (n-\ell+1) > \ell-1+(\ell+1)\cdot (n-\ell+1)\]For $n > 1$, this implies that $\ell > n$, a clear contradiction since we only have $n$ blocks, and the $n = 1$ case is trivial.

Therefore, the only Case that can exist is Case 1, implying this construction works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1329 posts
#45
Y by
Let the sum of the blocks be $S$ and solve generally for $S \leq 2n$.
Let our blocks be $b_1 \leq b_2 \leq \dots \leq b_n$. If all $b_i$ are equal then the claim is obviously true, so we WLOG assume that not all $b_i$ are equal.
We can do induction by removing the largest element of $b_i$ to show that all possible values of $r$ work. Our base case of $n = 1$ is obviously true. Then removing the largest element $b_n$ gives us that there is a sequence $g_i$ satisfying $r \in [0, S - b_n - 2]$ by induction. Adding in $b_n$ gives us that $r \in [b_n, S - 2]$ works. All we need to show that is $2n - b_n - 2 \geq S - b_n - 2 \geq b_n \implies n - 1 \geq b_n$ which would imply that $r \in [0, S]$ works. Notice that all $b_i \geq 1$ so then $b_n \leq S - n + 1 \leq n + 1$ which is true, 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.
alsk
28 posts
#46
Y by
We can induct. Say we have $n$ blocks, total weight $A \leq 2n$. We would like to show that for any $r$ in $[0, A-2]$, the problem statement holds.

If $n=1$, then this is trivial.

Then, consider the inductive step. Consider the biggest block, and say it has weight $k > 2$ (if $k=2$, then greedy works). Then, if $k$ is in $[r, r+2]$, then we are done. If $k < r+2$, then the problem is reduced to $n-1$ blocks, total weight $A-k$, and ``target'' range $[r-k, r-k+2]$, which is done by the inductive hypothesis.

If $k > r+2$, then we reduce the problem to having $n-1$ blocks, total weight $A-k$, and our ``target'' range is still $[r, r+2]$.

If $r \leq A-k-2$ then we are again done by the inductive hypothesis. Then, assume that $r > A-k-2$. In that case, this implies that $k > \frac{A}{2}$, which then implies that the rest of the blocks must have weights in $[1, 2]$. Then greedy algorithm finishes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ike.chen
1162 posts
#47
Y by
We will prove a stronger result, namely that if we have $n$ blocks each weighing at least $1$ and with a total weight of $S \le 2n$, then for all $r \in [0, S]$ it is possible to choose a subset of blocks whose total weight lies in the interval $[r, r+2]$. We proceed with induction on $n$, with the base case of $n = 1$ being trivial. Assuming the claim is true for $n$, we will show that it also holds for $n+1$.

Let $A = \{b_1, b_2, \ldots, b_k\}$ denote the set of blocks with weight at most $2$ and let $w_i$ denote the weight of $b_i$ for $1 \le i \le k$. In addition, define $S_i = \sum_{t = 1}^{i} w_t$ for $1 \le i \le k$ and let $b_{n+1}$ denote the heaviest block with weight $w_{n+1}$. Notice that $$S - w_{n+1} \le S - \frac{S}{n+1} = S \cdot \frac{n}{n+1} \le (2n+2) \cdot \frac{n}{n+1} = 2n$$so the claim holds for the $n$ blocks other than $b_{n+1}$, meaning the desired condition is achievable for all $r \in [0, S - w_{n+1}]$. Now, consider the subsets of blocks with total weights $$S, S - S_1, S - S_2, \ldots, S - S_k.$$Because $$(S - S_i) - (S - S_{i+1}) = w_{i+1} \le 2$$for $1 \le i \le k-1$, we know all $r \in [S - S_{i+1}, S - S_i]$ can be achieved via the subset with total weight $S - S_i$ for $i \in [1, k-1].$ Using identical reasoning, it also follows that all $r \in [S - S_1, S]$ can be achieved using the subset of all $n+1$ blocks and all $r \in [S - S_k - 2, S - S_k]$ can be achieved via the subset with total weight $S - S_k$. Thus, we have shown all $$r \in [0, S - w_{n+1}] \cup [S - S_k - 2, S]$$can be achieved.

FTSOC, suppose $S - w_{n+1} < S - S_k - 2$ or equivalently $w_{n+1} > S_k + 2$. Then, $$2n+2 \ge S \ge S_k + w_{n+1} + 2((n+1) - (k+1))$$$$> 2S_k + 2 + 2(n-k) \ge 2k + 2(n - k + 1) \ge 2n+2$$which is absurd. Thus, $S - w_{n+1} \ge S - S_k - 2$ must hold, implying $[0, S - w_{n+1}] \cup [S - S_k - 2, S]$ fully contains $[0, S]$. $\blacksquare$


Remarks: The inequality $S \ge S_k + w_{n+1} + 2((n+1) - (k+1))$ is not strict because $n = k$ is possible.

Although this ends up being useless, the claim can be extended to $r \in [-2, S].$
This post has been edited 10 times. Last edited by ike.chen, Mar 28, 2024, 8:19 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7585 posts
#48
Y by
Sort blocks in sizes $a_1\ge \dots\ge a_n$. If the condition fails, then there exists an index $i$ where
\[s=a_1+\dots+a_i<r\]\[s+a_j=a_1+\dots+a_i+a_j>r+2\]for any $j>i$. As a result $s+a_n>r+2>s+2\implies a_n>2$ which is a contradiction. $\blacksquare$
wait this is wrong
This post has been edited 1 time. Last edited by asdf334, Apr 25, 2024, 10:43 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7585 posts
#49
Y by
aha
Let the weights be $1\le a_1\le \dots\le a_n$. Add in weights one by one in increasing order; we prove that the following holds.
Claim: Given weights $a_1,\dots,a_i$ with $S=a_1+\dots+a_i\ge i$, we can choose a subset of blocks with weight in $[r,r+2]$ for any $0\le r\le S-2$.
Proof: Use induction; with $i=1$ we are done. Otherwise we can only fail if $a_{i+1}>S+2$ which would imply
\[a_1+\dots+a_i+a_{i+1}>2S+2\ge 2i+2\]which implies the average of these weights is more than $2$, a contradiction (since the average of the first $i$ weights is nondecreasing). $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ywgh1
139 posts
#50
Y by
Let $b_1,b_2, \dots b_n$ denote the weights and assume WLOG that $b_1 \leq b_2 \leq \dots \leq b_n$.

Now construct the following greedy algorithm: Add the minimum term to our previous sum, do that until the first time the sum $b_1+b_2+\dots +b_k > r$.

If the sum $b_1+b_2+\dots +b_k$ is more than $r+2$, then look at $b_k$, if $b_k \leq r+2$, then just take $b_k$.

If $b_k > r+2$, then we have that.

$$b_k>r+2>b_1+b_2+ \dots +b_{k-1}+2 \geq (k-1)+2=k+1$$.
Now looking at the sum of all elements to get a contradiction.

\begin{align*}
 2n & = b_1+b_2+ \dots +b_n\\
 & = (b_1+b_2+ \dots+b_{k-1})+(b_k+b_{k+1}+\dots +b_m) \\
 & \geq (k-1)+(n-k+1)b_k\\
 & > (k-1)+(n-k+1)(k+1) \\
 & = kn-k^2+2k\\
\end{align*}

The maximum $kn-k^2+2k$ gets is when $n=k$, hence equal to $2n$.
which is a contradiction, hence 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.
joshualiu315
2534 posts
#51
Y by
Let the blocks be $a_1 \le a_2 \le \dots \le a_n$. We will prove the following holds, which will solve the problem:


Given $a_1, a_2, \dots, a_i$ such that $S = a_1+a_2+\dots + a_i$, we can choose a subset of the blocks whose total weight is between $r$ and $r+2$, inclusive, for $0 \le r \le S-2$.


We proceed by induction; the base case $i=1$ obviously works. Now, suppose that the inductive hypothesis holds for $i$ blocks.

Since we currently cover $[0,S]$, adding $a_{i+1}$ would allow us to cover $[a_{i+1},S+a_{i+1}]$. Thus, the only way for adding a block to be invalid is if $a_{i+1}>S+2$. However

\[a_1+a_2+\dots+a_{i+1} > S + (S+2) = 2S+2 > 2i+2,\]
which implies the average of the blocks is greater than $2$, a contradiction. Hence, the induction is complete. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
onyqz
195 posts
#52
Y by
quite tricky
solution

Note to myself for memorization
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7585 posts
#53 • 1 Y
Y by OronSH
it sort of came out of first splitting $s$ and $\ell$ by whether they were less or greater than $2$ (hence small and large) then i realized that splitting by which side of $2$ the numbers were on was actually sort of arbitrary so then stuff worked.
Assume (for contradiction, as if this condition is false we will prove the problem is solved) the numbers are $s_1\le \dots\le s_x\le \ell_1\le \dots\le \ell_y$, where the following property holds: $\ell_1>S+2$, where $S:=s_1+\dots+s_x$. Here $x,y\le 1$.
Then we obtain
\[2n>(S+2)y+S\implies 2n-2y>S(y+1)\implies 2x>S(y+1)\ge x(y+1)\implies 1>y,\]a contradiction. Here we have used $S\ge x$, as $s_1,\dots,s_x\ge 1$.
Hence the following algorithm is guaranteed to run to completion: Order numbers $a_1\le \dots\le a_n$, and begin with the guaranteed-good (referring to real numbers $r$ in the question statement) interval $[0,a_1]$. Additionally write $S_1:=a_1$.
  • At any moment with good interval $[0,S_i]$, we can "merge" this interval with the next interval $[a_{i+1},S_i+a_{i+1}]$, which is guaranteed to work as $a_{i+1}>S_i+2$ never holds.
  • This yields the new interval $[0,S_{i+1}]$, so we have essentially "inducted upwards."
Hence eventually the good interval reaches $[0,S_n]$ or simply $[0,2n]$, and 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.
qwertyuiop123456789
6 posts
#54
Y by
asdf334 wrote:
aha
Let the weights be $1\le a_1\le \dots\le a_n$. Add in weights one by one in increasing order; we prove that the following holds.
Claim: Given weights $a_1,\dots,a_i$ with $S=a_1+\dots+a_i\ge i$, we can choose a subset of blocks with weight in $[r,r+2]$ for any $0\le r\le S-2$.
Proof: Use induction; with $i=1$ we are done. Otherwise we can only fail if $a_{i+1}>S+2$ which would imply
\[a_1+\dots+a_i+a_{i+1}>2S+2\ge 2i+2\]which implies the average of these weights is more than $2$, a contradiction (since the average of the first $i$ weights is nondecreasing). $\blacksquare$

You mean $a_{i+1}>S-2$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NTguy
23 posts
#55 • 1 Y
Y by alexanderhamilton124
The statement is equivalent to showing that in any $2$ consecutive integers, we can form one of them using the given blocks. Notice that the average weight of a block is $2$. So, if there exist any blocks with weight $k>2$, we need to have exactly $k-2$ blocks of weight $1$ to get the average back to $2$. Having a block of $2$ does not affect the average in any way. So, if we have $k$ blocks with weights $w_1, w_2, ..., w_k (w_i>2)$, then we have exactly $w_1+w_2+...+w_k - 2k$ blocks of weight $1$.
There are $2$ cases -
Case $1$ - There is no block with weight $2$.
Now, if the blocks with weight $>2$ have weights $w_1, ..., w_k$, then we can split them into groups such that each group has weight $2(w_i - 1)$, by taking the block with weight $w_i$ and the corresponding $w_i - 2$ blocks of weight $1$. Then, it is trivial to prove that in each of these groups, a subset can be chosen such that it forms all weights from $1$ to $2w_i-2$ except for $w_i-1$. Taking sums of different groups of subsets, we can ensure that in every pair of consecutive integers, one of them can be made. In particular, we can make $2(w_1+w_2+...+w_k - k)$.

Case $2$ - There exist $m$ blocks with weight $2$.
Notice that by taking away these $m$ blocks, we get Case $1$. So, we can ensure that for all $r$ such that $0 \leq r \leq 2(n-m)$, we can get a subset of blocks with total weight in the range $[r, r+2]$ without using a single block of weight $2$. So, we can make subsets with weight $2(n-m)$ and $2(n-m)-1$. Now, using blocks of weight $2$ along with these subsets, we can form every integer greater than $2(n-m)$, 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.
Maximilian113
575 posts
#56
Y by
We claim that the statement holds when the sum is between $2n-2, 2n.$ We proceed by induction on $n.$ The base case, $n=1,$ is trivial, so assume that the proposition holds for $n$ and everything below. For $n+1,$ if every block has weight at most $2,$ greedily adding blocks works as we never "skip" over an interval of the form $[k, k+2]$ for integers $k.$ So the proposition holds for any real $r.$

However, if there is a block $B$ with weight more than $2,$ taking away this big weight we are left with the inductive hypothesis for $$\lceil n-k/2 \rceil \geq \lceil n/2-1/2 \rceil$$as $B$s weight is at most $n+1.$ For the numbers above we can take $B$ plus the other weights and apply the inductive hypothesis. QED
This post has been edited 1 time. Last edited by Maximilian113, Apr 30, 2025, 5:49 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ND_
56 posts
#57
Y by
We keep taking the highest weight available, if taking it does not take the weight above $r + 2$. Let the last block taken have weight $m$ and let the number of blocks taken be $k$, $t$ the weight needed more. Let $s$ be the number of light blocks, blocks weighing less than 2. Then,
$\frac{m \cdot k  + 1 \cdot s}{k+s} \leq 2 \Rightarrow m \leq 2 + \frac{s}{k}  $.

If $k > 1$ and $s>2$, $t \leq m \leq 2+\frac{s}{k}  \leq s  \leq  \text{Weight of the light blocks}$
If $k=1$, each other block weighs less than $m$ and we have at least $m-2$ light blocks, from where it is trivial.
If $s=1$, maximum weight is less than $2+ \frac{1}{n-1}$. $s=2$ is similar

So, we can get the remaining $t$ weight using the $s$ light blocks, through which we won't skip $[r, r+2]$.
This post has been edited 1 time. Last edited by ND_, May 1, 2025, 1:29 PM
Z K Y
N Quick Reply
G
H
=
a