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
problem 5
termas   74
N 3 minutes ago by maromex
Source: IMO 2016
The equation
$$(x-1)(x-2)\cdots(x-2016)=(x-1)(x-2)\cdots (x-2016)$$is written on the board, with $2016$ linear factors on each side. What is the least possible value of $k$ for which it is possible to erase exactly $k$ of these $4032$ linear factors so that at least one factor remains on each side and the resulting equation has no real solutions?
74 replies
termas
Jul 12, 2016
maromex
3 minutes ago
Inspired by nhathhuyyp5c
sqing   2
N 6 minutes ago by lbh_qys
Source: Own
Let $ x,y>0, x+2y- 3xy\leq 4. $Prove that
$$ \frac{1}{x^2} + 2y^2 + 3x + \frac{4}{y} \geq 3\left(2+\sqrt[3]{\frac{9}{4} }\right)$$
2 replies
sqing
an hour ago
lbh_qys
6 minutes ago
I think I know why this problem was rejected by IMO PSC several times...
mshtand1   1
N 24 minutes ago by sarjinius
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 11.8
Exactly $102$ country leaders arrived at the IMO. At the final session, the IMO chairperson wants to introduce some changes to the regulations, which the leaders must approve. To pass the changes, the chairperson must gather at least \(\frac{2}{3}\) of the votes "FOR" out of the total number of leaders. Some leaders do not attend such meetings, and it is known that there will be exactly $81$ leaders present. The chairperson must seat them in a square-shaped conference hall of size \(9 \times 9\), where each leader will be seated in a designated \(1 \times 1\) cell. It is known that exactly $28$ of these $81$ leaders will surely support the chairperson, i.e., they will always vote "FOR." All others will vote as follows: At the last second of voting, they will look at how their neighbors voted up to that moment — neighbors are defined as leaders seated in adjacent cells \(1 \times 1\) (sharing a side). If the majority of neighbors voted "FOR," they will also vote "FOR." If there is no such majority, they will vote "AGAINST." For example, a leader seated in a corner of the hall has exactly $2$ neighbors and will vote "FOR" only if both of their neighbors voted "FOR."

(a) Can the IMO chairperson arrange their $28$ supporters so that they vote "FOR" in the first second of voting and thereby secure a "FOR" vote from at least \(\frac{2}{3}\) of all $102$ leaders?

(b) What is the maximum number of "FOR" votes the chairperson can obtain by seating their 28 supporters appropriately?

Proposed by Bogdan Rublov
1 reply
mshtand1
Mar 14, 2025
sarjinius
24 minutes ago
Quadrilateral with Congruent Diagonals
v_Enhance   38
N an hour ago by Giant_PT
Source: USA TSTST 2012, Problem 2
Let $ABCD$ be a quadrilateral with $AC = BD$. Diagonals $AC$ and $BD$ meet at $P$. Let $\omega_1$ and $O_1$ denote the circumcircle and the circumcenter of triangle $ABP$. Let $\omega_2$ and $O_2$ denote the circumcircle and circumcenter of triangle $CDP$. Segment $BC$ meets $\omega_1$ and $\omega_2$ again at $S$ and $T$ (other than $B$ and $C$), respectively. Let $M$ and $N$ be the midpoints of minor arcs $\widehat {SP}$ (not including $B$) and $\widehat {TP}$ (not including $C$). Prove that $MN \parallel O_1O_2$.
38 replies
v_Enhance
Jul 19, 2012
Giant_PT
an hour ago
Interesting inequality
sealight2107   4
N 2 hours ago by NguyenVanHoa29
Source: Own
Let $a,b,c>0$ such that $a+b+c=3$. Find the minimum value of:
$Q=\frac{a}{b}+\frac{b}{c}+\frac{c}{a}+\frac{1}{a^3+b^3+abc}+\frac{1}{b^3+c^3+abc}+\frac{1}{c^3+a^3+abc}$
4 replies
sealight2107
May 6, 2025
NguyenVanHoa29
2 hours ago
Inequality
nguyentlauv   3
N 2 hours ago by NguyenVanHoa29
Source: Own
Let $a,b,c$ be positive real numbers such that $ab+bc+ca=3$ and $k\ge 0$, prove that
$$\frac{\sqrt{a+1}}{b+c+k}+\frac{\sqrt{b+1}}{c+a+k}+\frac{\sqrt{c+1}}{a+b+k} \geq \frac{3\sqrt{2}}{k+2}.$$
3 replies
1 viewing
nguyentlauv
May 6, 2025
NguyenVanHoa29
2 hours ago
schur weighted
Ducksohappi   1
N 2 hours ago by truongngochieu
Schur-weighted:
let a,b,c be positive. Prove that:
$a^3+b^3+c^3+3abc\ge \sum ab\sqrt{a^2+b^2}$
1 reply
Ducksohappi
4 hours ago
truongngochieu
2 hours ago
forced vertices in graphs
Davdav1232   1
N 2 hours ago by CBMaster
Source: Israel TST 7 2025 p2
Let \( G \) be a graph colored using \( k \) colors. We say that a vertex is forced if it has neighbors in all the other \( k - 1 \) colors.

Prove that for any \( 2024 \)-regular graph \( G \), there exists a coloring using \( 2025 \) colors such that at least \( 1013 \) of the colors have a forced vertex of that color.

Note: The graph coloring must be valid, this means no \( 2 \) vertices of the same color may be adjacent.
1 reply
Davdav1232
May 8, 2025
CBMaster
2 hours ago
Cyclic inequality with rational functions
MathMystic33   1
N 3 hours ago by Nguyenhuyen_AG
Source: 2025 Macedonian Team Selection Test P3
Let \(x_1,x_2,x_3,x_4\) be positive real numbers. Prove the inequality
\[
\frac{x_1 + 3x_2}{x_2 + x_3}
\;+\;
\frac{x_2 + 3x_3}{x_3 + x_4}
\;+\;
\frac{x_3 + 3x_4}{x_4 + x_1}
\;+\;
\frac{x_4 + 3x_1}{x_1 + x_2}
\;\ge\;8.
\]
1 reply
MathMystic33
Yesterday at 6:00 PM
Nguyenhuyen_AG
3 hours ago
I got stuck in this combinatorics
artjustinhere237   2
N 3 hours ago by artjustinhere237
Let $S = \{1, 2, 3, \ldots, k\}$, where $k \geq 4$ is a positive integer.
Prove that there exists a subset of $S$ with exactly $k - 2$ elements such that the sum of its elements is a prime number.
2 replies
artjustinhere237
Yesterday at 4:56 PM
artjustinhere237
3 hours ago
d1-d2 divides n for all divisors d1, d2
a_507_bc   5
N 3 hours ago by Assassino9931
Source: Romania 3rd JBMO TST 2023 P1
Determine all natural numbers $n \geq 2$ with at most four natural divisors, which have the property that for any two distinct proper divisors $d_1$ and $d_2$ of $n$, the positive integer $d_1-d_2$ divides $n$.
5 replies
a_507_bc
May 20, 2023
Assassino9931
3 hours ago
Something weird with this one FE in integers (probably challenging, maybe not)
Gaunter_O_Dim_of_math   2
N 3 hours ago by aaravdodhia
Source: Pang-Cheng-Wu, FE, problem number 52.
During FE problems' solving I found a very specific one:

Find all such f that f: Z -> Z and for all integers a, b, c
f(a^3 + b^3 + c^3) = f(a)^3 + f(b)^3 + f(c)^3.

Everything what I've got is that f is odd, f(n) = n or -n or 0
for all n from 0 to 11 (just bash it), but it is very simple and do not give the main idea.
I actually have spent not so much time on this problem, but definitely have no clue. As far as I see, number theory here or classical FE solving or advanced methods, which I know, do not work at all.
Is here a normal solution (I mean, without bashing and something with a huge number of ugly and weird inequalities)?
Or this is kind of rubbish, which was put just for bash?
2 replies
Gaunter_O_Dim_of_math
Yesterday at 8:10 PM
aaravdodhia
3 hours ago
Bulgaria 8
orl   9
N 3 hours ago by Assassino9931
Source: IMO LongList 1959-1966 Problem 34
Find all pairs of positive integers $\left( x;\;y\right) $ satisfying the equation $2^{x}=3^{y}+5.$
9 replies
orl
Sep 2, 2004
Assassino9931
3 hours ago
P (x^2) = P (x) P (x + 2) for any complex x
parmenides51   8
N 3 hours ago by Wildabandon
Source: 2008 Brazil IMO TST 4.2
Find all polynomials $P (x)$ with complex coefficients such that $$P (x^2) = P (x) · P (x + 2)$$for any complex number $x.$
8 replies
parmenides51
Jul 24, 2021
Wildabandon
3 hours ago
Game of Polynomials
anantmudgal09   13
N Apr 28, 2025 by Mathandski
Source: Tournament of Towns 2016 Fall Tour, A Senior, Problem #6
Petya and Vasya play the following game. Petya conceives a polynomial $P(x)$ having integer coefficients. On each move, Vasya pays him a ruble, and calls an integer $a$ of his choice, which has not yet been called by him. Petya has to reply with the number of distinct integer solutions of the equation $P(x)=a$. The game continues until Petya is forced to repeat an answer. What minimal amount of rubles must Vasya pay in order to win?

(Anant Mudgal)

(Translated from here.)
13 replies
anantmudgal09
Apr 22, 2017
Mathandski
Apr 28, 2025
Game of Polynomials
G H J
Source: Tournament of Towns 2016 Fall Tour, A Senior, Problem #6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#1 • 7 Y
Y by Wave-Particle, Ankoganit, dgrozev, Adventure10, Mango247, TheHimMan, ohiorizzler1434
Petya and Vasya play the following game. Petya conceives a polynomial $P(x)$ having integer coefficients. On each move, Vasya pays him a ruble, and calls an integer $a$ of his choice, which has not yet been called by him. Petya has to reply with the number of distinct integer solutions of the equation $P(x)=a$. The game continues until Petya is forced to repeat an answer. What minimal amount of rubles must Vasya pay in order to win?

(Anant Mudgal)

(Translated from here.)
This post has been edited 2 times. Last edited by anantmudgal09, Feb 5, 2018, 1:11 PM
Reason: Titular reference to "Game of Thrones"
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ankoganit
3070 posts
#2 • 9 Y
Y by anantmudgal09, Vietnamisalwaysinmyheart, Vrangr, hansu, Wizard_32, kamatadu, Adventure10, Ru83n05, EvansGressfield
This is a very cute problem, so let's hope I got this right for Anant's sake :P

We claim that Vasya could do with $4$ rubles. We'll use the following notation: for an integer $a$, $n(a)$ is the number of distinct integer roots of $P(x)=a$. We'll first prove a lemma:

Lemma: If $P(x)=a$ has $3$ or more distinct integer root for some $P(x)\in\mathbb Z[x]$ and $a\in \mathbb Z$, then both the equations $P(x)=a+1$ and $P(x)=a-1$ have no integer root.
Proof: We can shift the origin appropriately and assume WLOG $a=0$. Then $$P(x)=(x-a_1)^{b_1}(x-a_2)^{b_2}(x-a_3)^{b_3}Q(x)$$for integers $a_i$'s , $b_i$'s and $Q\in\mathbb Z[x]$. Here $a_i$'s are all distinct and $b_i$'s are all positive. Then to have $|P(x)|=1$, we'll need $(x-a_i)=\pm 1$ for each $i$; but by PHP, this is impossible with distinct $a_i$'s. This proves our lemma. $\square$

Now for the main problem. We'll first show that Vasya can win in at most $4$ moves. Let Vasya call the integers $0,-1,+1$ in the first three moves. If $n(0)\ge 3$, then $n(1)=n(-1)=0$ by the lemma and Vasya wins. If one of $n(1)$ and $n(-1)$ is $\ge 3$, say WLOG $n(1)=3$; then Vasya can call $2$ in the next move and win, because then $n(0)=n(2)=0$ by our lemma. So suppose $n(0), n(1),n(-1)$ are all $\le 2$. If some of two these were equal, Vasya would've won already, so let's say $n(0),n(-1),n(1)$ are $0,1,2$ in some order. Then at least one of $n(1)$ and $n(-1)$ is nonzero; say WLOG $n(1)\ne 0$. Then let Vasya call $2$ in the fourth move. $n(2)$ can't be $\ge 3$, or we would have $n(1)=0$; so $n(2)\in\{0,1,2\}$, so it has to collide with one of $n(0),n(1),n(-1)$, letting Vasya win.

Now it remains to show that Vasya can't be sure of winning in $3$ moves or less. Indeed, we may WLOG assume the first integer called by Vasya is $0$. Then if he calls the integers $a$ and $b$ in the next two moves and hopes to win, then Petya could smash his hopes by conceiving the polynomial $$P(x)\equiv -a(x-1)(x-3)\left( (x-2)^2\left(x^{2016}+|b|+2017^{2017}\right)+1\right).$$Indeed, $P(x)=0$ has two roots $1$ and $3$; $P(x)=a$ has only one root $2$, because $$P(x)=a\implies |(x-1)(x-3)|=1\implies x=2;$$and $P(x)=b$ has no roots at all, because for $x\not\in \{1,2,3\}$, we have $|P(x)|>b$. Thus we're done. $\blacksquare$
This post has been edited 2 times. Last edited by Ankoganit, Apr 23, 2017, 11:43 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#3 • 3 Y
Y by anantmudgal09, Adventure10, Mango247
@Anant Mudgal: Not that it matters, but Petya and Vasya are russian male names. So- him/his. :)
I suppose your original statement was different, but the russians change it in their Petya/Vasya game style ?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#4 • 3 Y
Y by Ankoganit, Adventure10, Mango247
dgrozev wrote:
@Anant Mudgal: Not that it matters, but Petya and Vasya are russian male names. So- him/his. :)
I suppose your original statement was different, but the russians change it in their Petya/Vasya game style ?

Thanks for pointing, I had this misconception for a while :). As you said, my original formulation involved Alice and Bob, which was taken as it is in the English version. Interestingly, I didn't pose it in the form of a game involving money, but it looks like Russian paper setters are fond of it.


@Ankoganit, that's almost the same idea I had in mind (except my phrasing of the key lemma wasn't as tidy). I had a different construction though; and it turns out that the contestants gave many other constructions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2463 posts
#5 • 17 Y
Y by BartSimpsons, anantmudgal09, Ankoganit, Tintarn, rafayaashary1, 62861, claserken, InCtrl, tarzanjunior, Wizard_32, AlastorMoody, starchan, Assassino9931, Adventure10, Mango247, Supercali, kiyoras_2001
anantmudgal09 wrote:
...Interestingly, I didn't pose it in the form of a game involving money, but it looks like Russian paper setters are fond of it.
Don't worry, it could have been... glasses of vodka. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#6 • 2 Y
Y by Adventure10, Mango247
...........
This post has been edited 1 time. Last edited by anantmudgal09, Feb 2, 2020, 3:47 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ankoganit
3070 posts
#7 • 9 Y
Y by anantmudgal09, rafayaashary1, biomathematics, Wizard_32, AlastorMoody, kamatadu, anurag27826, Adventure10, Mango247
Who said he's gonna drink it?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#8 • 4 Y
Y by rafayaashary1, Ankoganit, Wizard_32, Adventure10
I'll post my solution for the part about construction. Proof for sufficiency of $4$ moves is the same as in post #2.

WLOG, assume Vasya is done in $3$ moves (for lesser number, he simply asks random questions to reach $3$). Petra replies with $1,2,0$ in this order. To see his answers are consistent, let $m, n, l$ be the numbers asked by Vasya in this order. Then, for $$P(X) \overset{\text{def}}{:=} tX^4+(n-m-t)X^2+m,$$where $t$ is a positive integer, so that $P$ is increasing over positive integers. We have $P(0)=m$ and $P(\pm 1)=n$ and $P(2)>\operatorname{max}\{m, n, l \}$ so we are done.
This post has been edited 1 time. Last edited by anantmudgal09, Feb 2, 2020, 3:48 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
primesarespecial
364 posts
#9
Y by
The minimum number of rubles Vasya needs to pay is $4$.
We divide into two cases.Firstly Vasya asks $0$.
If $P$ does not have an integer root,then let Vasya ask integers $d>1$ and $d+1$.We must have solutions to $P(x)=d,d+1$,otherwise we are done.
Let $a_1<a_2,..<a_r$ and $b_1<b_2...<b_k$ be such that $P(a_i)=d,P(b_i)=d+1$.WLOG,assume $r>k>0$,since $b_i -a_j|1$,for any $i,j$,we can conclude that for this to be true,$r=2,k=1$ and we have $a_2=a_1+2,b_1=a_1+1$.Now,if Vasya asks $d-1$,we can conclude by the same logic for $d-1,d$ that $P(x)=d-1$ has no solutions and we are done in at most $4$ moves.

Now,if $P$ has an integer root,then we can be done by Vasya asking $0,1,-1,-2$ or $0,1,-1,2$(depending on whether $P(x)-1$ or $P(x)+1$ has no integer roots),by the same logic in the first case.

Now,we give a construction where $3$ fails.Let Vasya ask $a<b<c$.
Then Petya conceives $P(x)=(a-b)(x+1)(x+3)+a$,for which $P(x)=a,b,c$ has $2,1,0$ solutions respectively.
This post has been edited 2 times. Last edited by primesarespecial, Jan 21, 2022, 7:24 AM
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
#10
Y by
The answer is $4$ rubles.

We first outline a strategy for Vasya to win by paying only four rubles. He begins by querying $0$.
If Petya's response is $\geq 2$, then by shifting WLOG let $P(x)=x(x-r)Q(x)$ where $Q$ is an arbitrary integer polynomial (possibly constant), and $r>0$. He then queries $1$ and $-1$. Note that for a response to be nonzero, we must have $x,x-r \in \{-1,1\}$ simultaneously. Since $r>0$ this forces $r=2$ and $x=1$, in which case one answer is zero and the other is one. In this case (since in the other case our responses are 2, 0, 0 and Vasya wins by paying three rubles), query $2$, which forces $x,x-2 \in \{-1,1,-2,2\}$ if the answer is nonzero. $x=1$ fails because $P(1)=1$, and $x \in \{-1,-2.2\}$ fail because then $x-2 \not \in \{-1,1,-2,2\}$, so Petya answers zero and thus repeats a prior answer.
If Petya's response is $0$ or $1$, then Vasya queries $1000$. If the response to that query is $\geq 2$, Vasya then queries $999$ and $1001$. By our previous result (shifted appropriately), if the responses to these two queries are different then they are $0$ and $1$, so there is a repeat. On the other hand, if the response to our $1000$ query is $1$ or $0$ (the opposite of what the first response is), then query $10000$. If the response to that is $0$ or $1$ we're done, and if it's $\geq 2$ then query $10001$ which for similar reasons as before must either be $0$ or $1$. In any case, a response is repeated, and Vasya pays at most four rubles.

Now we prove that Vasya cannot win by paying three rubles. Note that the only information Vasya gains at the conclusion of each query is the response to the previous, so let's say that Petya is feeling nice and decides to tell Vasya beforehand that his answers to the first and second queries will be $2$ and $1$ respectively. However, this action isn't only done out of charity—now that Vasya cannot gain new information based on responses, Petya asks Vasya to write down his three queries beforehand. Despite this, Vasya's task is still made easier. However, Petya still cannot get Vasya to repeat an answer in the first three queries.
By shifting, WLOG let the first query be $0$, the second one be $a$, and the third one be $b$. If Petya then selects the polynomial
$$P(x)=-ax(x-2)(|b|(x(x-1)(x-2))^2+1).$$$P(x)=0$ then has solutions $0,2$, $P(x)=a$ has $1$ as the only solution, since we would require $x,x-2 \in \{-1,1\}$ which forces $x=1$. Finally, $P(x)=b$ has no solutions because the absolute value of the last factor is always greater than $|b|$ unless $x \in \{0,1,2\}$, but these cases have already been handled and don't satisfy $P(x)=b$. Thus the response to the third query will be $0$, and Vasya will have to pay an additional ruble (at least) to get a repeat. We are done. $\blacksquare$
This post has been edited 1 time. Last edited by IAmTheHazard, Dec 19, 2022, 3:25 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8866 posts
#11
Y by
The answer is $4$ guesses.

Strategy: The key is the following claim.

Claim. For some integer polynomial $P$, if $P(x) = a$ has at least $3$ solutions for some integer $a$, then $P(x) = a\pm 1$ has no integer solutions.

Proof. Write $$P(x) = (x-x_1)(x-x_2)(x-x_3)R(x) + a$$for integers $x_1, x_2, x_3$ and integer polynomial $R$. For $P(x) = a \pm 1$, $(x-x_1)(x-x_2)(x-x_3) = \pm 1$, but this is impossible as the $x_i$ are distinct. $\blacksquare$

Now Vasya guesses $a = 0$ first. If Petya responds with any integer at least $3$, Vasya can guess $a = 1$ and $a=-1$ and be sure that both answers will be $0$.

If Petya responds with $1$ or $2$, then Vasya may guess $1$ and $-1$, knowing he will receive answers in $\{0, 1, 2\}$. If both guesses reveal $0$, he wins. Otherwise, suppose the answer to $1$ was nonzero; then Vasya can guess $2$ as well. Then by Pigeonhole, two of the four answers will be identical.

If Petya responds with $0$, Vasya can again guess $1$ and $-1$; if one of them is zero, Petya wins; otherwise, the same Pigeonhole argument applies.

Bound: We show Vasya cannot win in three moves. Indeed, let his first three guesses be $a, b, c$ integers. Without loss of generality assume $a<b<c$ (the order of the guesses doesn't matter). Petya can pick the polynomial $$P(x) = a+(c-a)(x-x_1)(x-(x_1+2))$$for some integer $x_1$. Then $P(x) = a$ has two solutions, $P(x) = c$ has precisely one, and as the second term is at least $c-a$ when it is positive, $P(x) = b$ has no solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4188 posts
#12
Y by
The answer is $4$.

To show that $3$ is not enough, suppose Vasya queries $a,b,c$ for $a>b>c$. Then, the polynomial $(a-b)x^2+b$ attains $a$ at $x=\pm 1$, $b$ at $x=0$, and $c$ never. Thus, Vasya does not win.

We claim that querying $0,1,2,3$ is sufficent, that is, no integer polynomial attains $0,1,2,3$ each a different number of times.

The key idea is to use the fact that $a-b|P(a)-P(b)$. Consider the sequence $\dots,P(-2),P(-1),P(0),\dots$. Suppose this sequence has $0,1,2,3$ each a different number of times. All instances of $0$ and all instances of $1$ must be adjacent, and same with all other consecutive pairs.

Some number has to happen at least $3$ times. If $1$ happens 3 times, then no position is adjacent to all three 1s, so $0$ and $2$ can never occur, contradiction. Same thing happens if $2$ happens at least $3$ times. Thus, WLOG assume $0$ happens at least $3$ times (3 is the same). Then $1$ can never occur, since no position is adjacent to all three $0$s.

Therefore, at least one of $2$ and $3$ must appear at least twice, and the other must appear at least once. If $2$ appears at least twice, then the $3$ must be adjacen to both $2$s, which forces $232$. However, since $a-b\mid P(a)-P(b)$, $0$s must be within 2 spots of all $2$s, but there is nowhere for $0$s to go after $232$, contradiction. If we had $323$ instead, we only have two spots that are valid spots for $0$s, but there are $3$ of them, contradiction. Thus we are done.


Remark: The main idea of this problem is to invoke $a-b\mid P(a)-P(b)$ to restrict where outputs can lie. The key observation is that, if the polynomial is only required to have rational coefficents, then Petya can just interpolate through whatever Vasya queries, thus he cannot win. The key feature of integer polynomials that distinguishes it from rational ones is $a-b\mid P(a)-P(b)$ which is why we use it here.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1745 posts
#13
Y by
Answer: $4$. Vasya calls $0$. If it is $\ge 2$, he calls $1,2,-1$. If $1$ returns $\ge 1$, then if $P(a)=P(b)=0$ and $P(c)=1$, then $a-c,b-c\mid 1$ so $a,c,b$ are consecutive and in particular $c$ is unique so $1$ returns $1$. Next if $P(d)=2$, then $a-d,b-d\mid 2$ with $a-b=2$ so $d=c$, contradiction, so $2$ returns $0$, and similarly so does $-1$. If $1$ returns $0$ and $2$ returns $1$, then similarly $-1$ returns $0$. Otherwise $1,2$ both return $0$.

If $0$ returns $\le 1$, then he calls $1,2,3$. If $1$ is $\ge 2$, then similarly either $2,3$ return the same value or $2,3$ return $0,1$, one of which returns the same as $0$. If $1$ is $\le 1$ but $2$ returns $\ge 2$, then similarly $3$ returns either $0,1$ which returns the same as either $0$ or $1$. If $0,1,2$ return $\le 1$ then two are the same.

To show $4$ is minimum, if Vasya calls $a,b,c$, we claim Petya can return $2,1,0$ respectively, since Petya has $P(x)=(a-b)x^2+b$ if $a$ is not between $b$ and $c$, and $P(x)=(a-b)x^{2\left\lfloor\log_4\frac{c-b}{a-b}\right\rfloor+2}+b$ otherwise.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathandski
758 posts
#14
Y by
Subjective Difficulty Rating
Attachments:
Z K Y
N Quick Reply
G
H
=
a