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
Yesterday at 11:16 PM
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
Yesterday at 11:16 PM
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
positive integers forming a perfect square
cielblue   0
17 minutes ago
Find all positive integers $n$ such that $2^n-n^2+1$ is a perfect square.
0 replies
cielblue
17 minutes ago
0 replies
Function equation
LeDuonggg   6
N 29 minutes ago by MathLuis
Find all functions $f: \mathbb{R^+} \rightarrow \mathbb{R^+}$ , such that for all $x,y>0$:
\[ f(x+f(y))=\dfrac{f(x)}{1+f(xy)}\]
6 replies
LeDuonggg
Yesterday at 2:59 PM
MathLuis
29 minutes ago
A nice and easy gem off of StackExchange
NamelyOrange   0
29 minutes ago
Source: https://math.stackexchange.com/questions/3818796/
Define $S$ as the set of all numbers of the form $2^i5^j$ for some nonnegative $i$ and $j$. Find (with proof) all pairs $(m,n)$ such that $m,n\in S$ and $m-n=1$.
0 replies
NamelyOrange
29 minutes ago
0 replies
at everystep a, b, c are replaced by a+\gcd(b,c), b+\gcd(a,c), c+\gcd(a,b)
NJAX   8
N an hour ago by Assassino9931
Source: 2nd Al-Khwarizmi International Junior Mathematical Olympiad 2024, Day2, Problem 8
Three positive integers are written on the board. In every minute, instead of the numbers $a, b, c$, Elbek writes $a+\gcd(b,c), b+\gcd(a,c), c+\gcd(a,b)$ . Prove that there will be two numbers on the board after some minutes, such that one is divisible by the other.
Note. $\gcd(x,y)$ - Greatest common divisor of numbers $x$ and $y$

Proposed by Sergey Berlov, Russia
8 replies
NJAX
May 31, 2024
Assassino9931
an hour ago
Increments and Decrements in Square Grid
ike.chen   23
N an hour ago by Andyexists
Source: ISL 2022/C3
In each square of a garden shaped like a $2022 \times 2022$ board, there is initially a tree of height $0$. A gardener and a lumberjack alternate turns playing the following game, with the gardener taking the first turn:
[list]
[*] The gardener chooses a square in the garden. Each tree on that square and all the surrounding squares (of which there are at most eight) then becomes one unit taller.
[*] The lumberjack then chooses four different squares on the board. Each tree of positive height on those squares then becomes one unit shorter.
[/list]
We say that a tree is majestic if its height is at least $10^6$. Determine the largest $K$ such that the gardener can ensure there are eventually $K$ majestic trees on the board, no matter how the lumberjack plays.
23 replies
ike.chen
Jul 9, 2023
Andyexists
an hour ago
4-var inequality
RainbowNeos   5
N 2 hours ago by RainbowNeos
Given $a,b,c,d>0$, show that
\[\frac{a}{b}+\frac{b}{c}+\frac{c}{d}+\frac{d}{a}\geq 4+\frac{8(a-c)^2}{(a+b+c+d)^2}.\]
5 replies
RainbowNeos
Yesterday at 9:31 AM
RainbowNeos
2 hours ago
Hard diophant equation
MuradSafarli   2
N 2 hours ago by MuradSafarli
Find all positive integers $x, y, z, t$ such that the equation

$$
2017^x + 6^y + 2^z = 2025^t
$$
is satisfied.
2 replies
MuradSafarli
3 hours ago
MuradSafarli
2 hours ago
An almost identity polynomial
nAalniaOMliO   6
N 2 hours ago by Primeniyazidayi
Source: Belarusian National Olympiad 2025
Let $n$ be a positive integer and $P(x)$ be a polynomial with integer coefficients such that $P(1)=1,P(2)=2,\ldots,P(n)=n$.
Prove that $P(0)$ is divisible by $2 \cdot 3 \cdot \ldots \cdot n$.
6 replies
nAalniaOMliO
Mar 28, 2025
Primeniyazidayi
2 hours ago
Euler's function
luutrongphuc   2
N 2 hours ago by KevinYang2.71
Find all real numbers \(\alpha\) such that for every positive real \(c\), there exists an integer \(n>1\) satisfying
\[
\frac{\varphi(n!)}{n^\alpha\,(n-1)!} \;>\; c.
\]
2 replies
luutrongphuc
5 hours ago
KevinYang2.71
2 hours ago
Wot n' Minimization
y-is-the-best-_   25
N 3 hours ago by john0512
Source: IMO SL 2019 A3
Let $n \geqslant 3$ be a positive integer and let $\left(a_{1}, a_{2}, \ldots, a_{n}\right)$ be a strictly increasing sequence of $n$ positive real numbers with sum equal to 2. Let $X$ be a subset of $\{1,2, \ldots, n\}$ such that the value of
\[
\left|1-\sum_{i \in X} a_{i}\right|
\]is minimised. Prove that there exists a strictly increasing sequence of $n$ positive real numbers $\left(b_{1}, b_{2}, \ldots, b_{n}\right)$ with sum equal to 2 such that
\[
\sum_{i \in X} b_{i}=1.
\]
25 replies
y-is-the-best-_
Sep 23, 2020
john0512
3 hours ago
Line AT passes through either S_1 or S_2
v_Enhance   88
N 3 hours ago by bjump
Source: USA December TST for 57th IMO 2016, Problem 2
Let $ABC$ be a scalene triangle with circumcircle $\Omega$, and suppose the incircle of $ABC$ touches $BC$ at $D$. The angle bisector of $\angle A$ meets $BC$ and $\Omega$ at $E$ and $F$. The circumcircle of $\triangle DEF$ intersects the $A$-excircle at $S_1$, $S_2$, and $\Omega$ at $T \neq F$. Prove that line $AT$ passes through either $S_1$ or $S_2$.

Proposed by Evan Chen
88 replies
v_Enhance
Dec 21, 2015
bjump
3 hours ago
Inequality with a,b,c
GeoMorocco   4
N 3 hours ago by Natrium
Source: Morocco Training
Let $   a,b,c   $ be positive real numbers such that : $   ab+bc+ca=3   $ . Prove that : $$\frac{\sqrt{1+a^2}}{1+ab}+\frac{\sqrt{1+b^2}}{1+bc}+\frac{\sqrt{1+c^2}}{1+ca}\ge \sqrt{\frac{3(a+b+c)}{2}}$$
4 replies
GeoMorocco
Apr 11, 2025
Natrium
3 hours ago
China Northern MO 2009 p4 CNMO
parkjungmin   1
N 3 hours ago by WallyWalrus
Source: China Northern MO 2009 p4 CNMO P4
The problem is too difficult.
1 reply
parkjungmin
Apr 30, 2025
WallyWalrus
3 hours ago
Polynomial Squares
zacchro   26
N 3 hours ago by Mathandski
Source: USA December TST for IMO 2017, Problem 3, by Alison Miller
Let $P, Q \in \mathbb{R}[x]$ be relatively prime nonconstant polynomials. Show that there can be at most three real numbers $\lambda$ such that $P + \lambda Q$ is the square of a polynomial.

Alison Miller
26 replies
zacchro
Dec 11, 2016
Mathandski
3 hours ago
IMO ShortList 2001, combinatorics problem 4
orl   12
N Apr 11, 2025 by Maximilian113
Source: IMO ShortList 2001, combinatorics problem 4
A set of three nonnegative integers $\{x,y,z\}$ with $x < y < z$ is called historic if $\{z-y,y-x\} = \{1776,2001\}$. Show that the set of all nonnegative integers can be written as the union of pairwise disjoint historic sets.
12 replies
orl
Sep 30, 2004
Maximilian113
Apr 11, 2025
IMO ShortList 2001, combinatorics problem 4
G H J
Source: IMO ShortList 2001, combinatorics problem 4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 5 Y
Y by narutomath96, Adventure10, ImSh95, Mango247, ohhh
A set of three nonnegative integers $\{x,y,z\}$ with $x < y < z$ is called historic if $\{z-y,y-x\} = \{1776,2001\}$. Show that the set of all nonnegative integers can be written as the union of pairwise disjoint historic sets.
Attachments:
This post has been edited 2 times. Last edited by orl, Oct 25, 2004, 12:12 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#2 • 3 Y
Y by Adventure10, ImSh95, Mango247
Please post your solutions. This is just a solution template to write up your solutions in a nice way and formatted in LaTeX. But maybe your solution is so well written that this is not required finally. For more information and instructions regarding the ISL/ILL problems please look here: introduction for the IMO ShortList/LongList project and regardingsolutions :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jgao
82 posts
#3 • 3 Y
Y by Adventure10, ImSh95, Mango247
Anyone 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.
Ilthigore
315 posts
#4 • 5 Y
Y by narutomath96, DCMaths, ImSh95, Adventure10, Mango247
Just do it.

We partition the nonnegative integers into three sets X, Y and Z by taking disjoint historic triples {x,y,z} x<y<z and putting x into X, y into Y and z into Z according to a simple algorithm. We also keep track of a set S which is the set of nonnegative integers not yet in X,Y or Z. The algorithm is as follows:

i) Take the least element of S, x, and put it into X (so remove it from S). We also put x+1776+2001 into Z.
ii) If x+1776 is in S, we put it into Y. If x+1776 is no longer in S, we put x+2001 into Y instead.
iii) Return to step (i), having removed another historic triple from S.

Since we keep taking the least remaining element of S, it is clear that if such an algorithm succeeds, we have put every integer into precisely one of X,Y and Z once, which is equivalent to having partitioned the integers into historic triples.

Step (i) will clearly succeed, because x is in S by definition, and x+1776+2001 must be in S, as it cannot yet be in X (being bigger than x), or Y (being bigger than x+2001) and can only be put into Z by this value of x.

Step (ii) must also succeed. Suppose it doesn't (noting that for x<1776 it will obviously always work). Then x+2001 must be in Z. But this implies that x-1776 was placed into at some point X. At the time this happened, x should have been placed into Y, but by virtue of its being in S, it isn't already in Y, so this is a contradiction. Thus step (ii) succeeds also, and the algorithm works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ABCDE
1963 posts
#5 • 3 Y
Y by ImSh95, Adventure10, Mango247
We use the following algorithm: Let $a$ be the smallest integer that has not been put in a set. If $a+1776$ has not been put in a set make the set $\{a,a+1776,a+3777\}$ and otherwise make the set $\{a,a+2001,a+3777\}$. Suppose that this fails at some point and we can make neither of those sets. This would mean that $a+2001$ was already in a set. It cannot be the least element of a set because otherwise we would have made a set with $a$ as the least element instead when we first put $a+2001$ in a set. If $a+2001$ is the middle element of a set then the least element has to be $a+225$ since $a$ is not in a set yet, but this would be the same contradiction as $a+2001$ being the least element. This means that $a+2001$ is the largest element of its set, so the least element would be $a-1776$. But then we would have made our middle element $a$, a contradiction. Hence, this algorithm works 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.
EulersTurban
386 posts
#6 • 1 Y
Y by ImSh95
So obviously we are going to have two types of historic sets:
$$\{x,1776+x,3777+x\} \; (I)$$$$\{x,2001+x,3777+x\} \; (II)$$so obviously we don't want to end up in a situation such that all the points except one in the set of $\mathbb{Z}_{\geq 0}$ are covered at all.So we need to devise an algorithm such that we don't get into that position.

Algorithm
The algorithm, takes the smallest number now covered by any of the sets. Use type $I$ if possible, if not then use $II$.
To prove that this works we use contradiction.
Suppose this fails, so let $x_i$ be the $i$-th turn.We say that the algorithm has failed on the $(n+1)$-th turn. Where it failed must have been at $x_{n+1}+2001$ or $x_{n+1}+1776$, since $x_{n+1}+3777$ hasn't been covered at all.Furthermore $x_{n+1}+b$ must have been the largest members of their respected set.So by backtracking we have that:
$$x_{n+1}+2001-3777=x_{n+1}-1776 \; - \; \text{minimal element of set}$$But notice how then $x_{n+1}$ would have been covered by our algorithm.Thus a contradiction is taking place here.
For the case of $x_{n+1}+1776$, we also get a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathleticguyyy
3217 posts
#7 • 2 Y
Y by centslordm, ImSh95
Needless to say, the flavortext didn't age well.

Call an element clogged if it's in a historic set and unclogged otherwise. We use a greedy algorithm, where on the $i$th step, we construct a new historic set $H_i$ with $x$ as the smallest unclogged element, $y$ as $x+1776$ if it's unclogged and $x+2001$ otherwise, and $z=x+3777$. I claim that it will not terminate.

Suppose FTSOC that on some turn, both $x+1776$ and $x+2001$ are clogged. Note that $x+2001$ must be a $z$ element by size, which means that either $x$ or $x+2021-1776$ is clogged as an $y$ element. The former is obviously impossible, and in the latter case, $x$ must have been clogged in the first place.
This post has been edited 2 times. Last edited by mathleticguyyy, Dec 13, 2021, 2:06 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1711 posts
#8 • 1 Y
Y by ImSh95
Let $1776=a,2001=b$. Consider the following algorithm: consider a set $S$. Let $m$ be the smallest nonnegative integer not in $S$, then let $S$ be $S\cup \{m,m+a,m+a+b\}$ whenever possible, and let $S$ be $S\cup\{m,m+b,m+a+b\}$ if not possible, and we call $m$ an operator.

We claim that every point, one of the two historic sets above will be available. First, we take care of $m+a+b.$ Note that if $m+a+b$ is in the set, then there must've been an operator that is at least $m$. However, that raises a contradiction because if a number larger than $m$ is used as an operator, then by then $m$ must have been in $S$ already, but now that we are using $m$ as an operator, $m$ must not have been in $S$.

Now, if $m+a$ is unavailable, then either $m+a-b$ was an operator before or $m-b$ was an operator before. If $m+b$ is unavailable, then $m-a$ was an operator before. Since $m$ is currently being used as an operator, the historic set associated with $m-a$ is $\{m-a,m+b-a,m+b\}$, but the set with $m+b-a$ is only used when $m$ is unavailable! Obviously this cannot be the case, so 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.
cj13609517288
1900 posts
#9 • 2 Y
Y by ImSh95, Mango247
We provide an algorithm that generates sets that cover any nonnegative integer eventually. Call a historic set an $\alpha$ set if $y-x=1776$ and $z-y=2001$. Similarly, call a historic set a $\beta$ set if $y-x=2001$ and $z-y=1776$.

Our algorithm first covers $0$ with an $\alpha$ set, then repeatedly tries to cover the lowest uncovered number with the same type of set until the $x$ of the new set has to be more than one greater than the $x$ of the previous set, then it switches to the other type of set. If at one point, the lowest uncovered number is greater than any covered number, restart by covering the lowest uncovered number with an $\alpha$ set.

Now, we will prove that our algorithm works. When the first $1776$ $\alpha$ sets are made, there will be a gap between the largest $y$ and the smallest $z$. When we start to use the $\beta$ sets, note how the previously largest $y$ and the previously largest $z$ are now one-upped by the $x$ and $y$ in the new $\beta$ set. This continues until a new gap is formed between the largest $y$ and the smallest $z$, and the algorithm is continued. If at any point the gap doesn't exist anymore, we can simply restart the algorithm. Now, we note that the $x$ and $z$ cannot possibly clash($z$ is supposed to always be $1776+2001$ above $x$ which increases every time), and $y$ cannot clash because it one-ups the previous largest $z$. QED.
This post has been edited 2 times. Last edited by cj13609517288, Nov 16, 2022, 6:35 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
programmeruser
2455 posts
#10 • 1 Y
Y by ImSh95
Note that a historic set is either in the form $\{x, x+1776, x+1776+2001\}$ (which we will call a 1776 set) or $\{x, x+2001, x+1776+2001\}$ (a 2001 set).

We can use the following algorithm to achieve this task:
We let $x$ be the smallest number not yet covered. If none of the numbers in the 1776 set have been covered already, then we use a 1776 set, otherwise we use a 2001 set.

Now we prove that this algorithm works. We prove that if the 1776 set does not work, then the 2001 set will always work.
Assume for the sake of contradiction that the 2001 set does not work.
Clearly the $x$ element can't have already been covered.
If the $x+1776+2001$ element has been covered, then that means that on some previous step, we either used the 1776 set on $x+2001$ or the 2001 set on $x+1776$. However, this is impossible as $x < x+1776 < x+2001$.
If the $x+2001$ has already been covered, then either we used the 1776 set on $x+2001-1776$, or we used any set on $x-1776$. Clearly the first one is impossible as $x+2001-1776>x$. Now we consider the second case. If we used the 1776 set on $x-1776$, then it would imply that we would have already covered $x$, a contradiction. If we used the 2001 set, then that means that some element in the 1776 set was already covered. If $x+2001$ was already covered, then this implies that $x$ was already covered, contradiction. Otherwise, this implies that $x$ was already covered, another contradiction.

Therefore, a situation where both sets don't work, and the algorithm always works. $\square$
This post has been edited 1 time. Last edited by programmeruser, Jan 31, 2023, 12:22 AM
Reason: add extra newline
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomehuman
499 posts
#11 • 1 Y
Y by ImSh95
We claim that using the following algorithm we can cover the postive integers:
-Find the lowest positive integer $x$ that hasn't already been covered.
-Let $y$ be the lowest if $x+1776$ and $x+2001$ that isn't covered.
-Let $z$ be $x+3777$.
-Then, add the triple $\{x, y, z\}$.

Assume towards a contradiction $x+2001$ is already covered. It can't be the 1st number in its triplet, since it's higher than $x$ and the triplets are added in strictly increasing order based on the 1st number. For the same reason, it can't be the 2nd number in its triplet. So, it is the third in its triplet. The first must be 1776. However, then, because $x$ has not yet been covered, when this triplet was created, $x$ would've been made the 2nd number, a contradiction. So, the 2nd step must be possible.

By similar logic, if $x+3777$ is already covered, then it must be the 3rd in its triplet. However, then $x$ would be the first, a contradiction.

So, we can continue this procedure indefinitely and cover the positive integers. We can flip it to cover the nonpositive integers. So, we can cover all integers.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
huashiliao2020
1292 posts
#12 • 1 Y
Y by ImSh95
dont like bashy stuff like this
silly from the aime

x,y,z=x (call it 1st element),x+{1776 or 2001} (second elements, where 1776 or 2001 is two options), x+1776+2001
Clearly the optimal strategy is to cover the smaller numbers (because why would you skip and go to larger? That just plugs your historic sets possible)
Now we show that the algorithm choosing the smallest number not used and use the set with smaller sum if possible, use the larger if not. We prove that this works. Suppose at x_n you cannot cover it. This means either both of the second elements are covered or the largest is. Clearly the largest is not by our algorithm of doing small first, so both x+1776 and x+2001 must be covered. x+2001 must be the largest number in its set (it can't be n+1776, and can't be n), hence the smallest number in this set must be x+2001-2001-1776. However, x_n is not covered, hence x_n-1776,x_n,x_n+2001 must have been used (smaller set). Hence, contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
574 posts
#13
Y by
Replace $1776$ and $2001$ with any positive integers $a, b$ with $a<b.$ Note that historic sets would be of the form $\{ x, x+a, x+a+b \}$ or $\{x, x+b, x+a+b\}.$ We use the greedy algorithm, where we operate on the smallest nonnegative integer $k$ not yet covered. If $k+a$ is not yet covered, we use the former set, otherwise we use the latter.

It suffices to show that with this algorithm, no number is covered more than once. For the sake of a contradiction, assume that at some point $\ell$ is the smallest number not covered, but $\ell+a, \ell+b$ are already covered. Assume that this is the first occurence of such a situation. Observe that $\ell+a+b$ cannot be covered as it is larger than any $\ell_i+a+b$ covered previously. $\ell+a, \ell+b$ must not have been the smallest numbers in their sets as they are both larger than $\ell,$ so $\ell+a$ must have been covered with $\{\ell-b, \ell+a-b, \ell+a\}, \{\ell+a-b, \ell+a, \ell+2a\},$ while $\ell+b$ was covered along with $\{\ell-a, \ell+b-a, \ell+b\}, \{\ell+b-a, \ell+b, \ell+2b\}.$ For this the latter cannot occur as $\ell+b-a > \ell,$ so $\{\ell-a, \ell+b-a, \ell+b\}$ must occur. But this overlaps with any of the first two historic sets, contradiction. Hence the algorithm works. QED
Z K Y
N Quick Reply
G
H
=
a