Happy Memorial Day! Please note that AoPS Online is closed May 24-26th.

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
Inequality em981
oldbeginner   16
N a few seconds ago by mihaig
Source: Own
Let $a, b, c>0, a+b+c=3$. Prove that
\[\sqrt{a+\frac{9}{b+2c}}+\sqrt{b+\frac{9}{c+2a}}+\sqrt{c+\frac{9}{a+2b}}+\frac{2(ab+bc+ca)}{9}\ge\frac{20}{3}\]
16 replies
oldbeginner
Sep 22, 2016
mihaig
a few seconds ago
Nice FE over R+
doanquangdang   4
N a minute ago by jasperE3
Source: collect
Let $\mathbb{R}^+$ denote the set of positive real numbers. Find all functions $f:\mathbb{R}^+ \to \mathbb{R}^+$ such that
\[x+f(yf(x)+1)=xf(x+y)+yf(yf(x))\]for all $x,y>0.$
4 replies
doanquangdang
Jul 19, 2022
jasperE3
a minute ago
right triangle, midpoints, two circles, find angle
star-1ord   0
4 minutes ago
Source: Estonia Final Round 2025 8-3
In the right triangle $ABC$, $M$ is the midpoint of the hypotenuse $AB$. Point $D$ is chosen on the leg $BC$ so that the line segment $DM$ meets $(ACD)$ again at $K$ ($K\neq D$). Let $L$ be the reflection of $K$ in $M$. The circles $(ACD)$ and $(BCL)$ meet again at $N$ ($N\neq C$). Find the measure of $\angle KNL$.
0 replies
star-1ord
4 minutes ago
0 replies
interesting functional equation
tabel   3
N 6 minutes ago by waterbottle432
Source: random romanian contest
Determine all functions \( f : (0, \infty) \to (0, \infty) \) that satisfy the functional equation:
\[
f(f(x)(1 + y)) = f(x) + f(xy), \quad \forall x, y > 0.
\]
3 replies
tabel
an hour ago
waterbottle432
6 minutes ago
Serbian selection contest for the IMO 2025 - P6
OgnjenTesic   4
N 22 minutes ago by GreenTea2593
Source: Serbian selection contest for the IMO 2025
For an $n \times n$ table filled with natural numbers, we say it is a divisor table if:
- the numbers in the $i$-th row are exactly all the divisors of some natural number $r_i$,
- the numbers in the $j$-th column are exactly all the divisors of some natural number $c_j$,
- $r_i \ne r_j$ for every $i \ne j$.

A prime number $p$ is given. Determine the smallest natural number $n$, divisible by $p$, such that there exists an $n \times n$ divisor table, or prove that such $n$ does not exist.

Proposed by Pavle Martinović
4 replies
OgnjenTesic
May 22, 2025
GreenTea2593
22 minutes ago
pairs (m, n) such that a fractional expression is an integer
cielblue   2
N 39 minutes ago by cielblue
Find all pairs $(m,\ n)$ of positive integers such that $\frac{m^3-mn+1}{m^2+mn+2}$ is an integer.
2 replies
cielblue
Yesterday at 8:38 PM
cielblue
39 minutes ago
Sociable set of people
jgnr   23
N an hour ago by quantam13
Source: RMM 2012 day 1 problem 1
Given a finite number of boys and girls, a sociable set of boys is a set of boys such that every girl knows at least one boy in that set; and a sociable set of girls is a set of girls such that every boy knows at least one girl in that set. Prove that the number of sociable sets of boys and the number of sociable sets of girls have the same parity. (Acquaintance is assumed to be mutual.)

(Poland) Marek Cygan
23 replies
jgnr
Mar 3, 2012
quantam13
an hour ago
diophantine equation
m4thbl3nd3r   0
an hour ago
Find all positive integers $n,k$ such that $$5^{2n+1}-5^n+1=k^2$$
0 replies
m4thbl3nd3r
an hour ago
0 replies
A geometry problem
Lttgeometry   1
N an hour ago by Funcshun840
Triangle $ABC$ has two isogonal conjugate points $P$ and $Q$. The circle $(BPC)$ intersects circle $(AP)$ at $R \neq P$, and the circle $(BQC)$ intersects circle $(AQ)$ at $S\neq Q$. Prove that $R$ and $S$ are isogonal conjugates in triangle $ABC$.
Note: Circle $(AP)$ is the circle with diameter $AP$, Circle $(AQ)$ is the circle with diameter $AQ$.
1 reply
Lttgeometry
Today at 4:03 AM
Funcshun840
an hour ago
Functional equation
shobber   19
N 3 hours ago by Unique_solver
Source: Canada 2002
Let $\mathbb N = \{0,1,2,\ldots\}$. Determine all functions $f: \mathbb N \to \mathbb N$ such that
\[ xf(y) + yf(x) = (x+y) f(x^2+y^2)  \]
for all $x$ and $y$ in $\mathbb N$.
19 replies
shobber
Mar 5, 2006
Unique_solver
3 hours ago
Prove the inequality
Butterfly   0
3 hours ago
Let $a,b,c$ be real numbers such that $a+b+c=3$. Prove $$a^3b+b^3c+c^3a\le \frac{9}{32}(63+5\sqrt{105}).$$
0 replies
Butterfly
3 hours ago
0 replies
Functional equation
shactal   1
N 3 hours ago by ariopro1387
Let $f:\mathbb R\to \mathbb R$ a function satifying $$f(x+2xy) = f(x) + 2f(xy)$$for all $x,y\in \mathbb R$.
If $f(1991)=a$, then what is $f(1992)$, the answer is in terms of $a$.
1 reply
shactal
5 hours ago
ariopro1387
3 hours ago
interesting diophantiic fe in natural numbers
skellyrah   5
N 3 hours ago by skellyrah
Find all functions \( f : \mathbb{N} \to \mathbb{N} \) such that for all \( m, n \in \mathbb{N} \),
\[
mn + f(n!) = f(f(n))! + n \cdot \gcd(f(m), m!).
\]
5 replies
skellyrah
Yesterday at 8:01 AM
skellyrah
3 hours ago
Non-linear Recursive Sequence
amogususususus   3
N 3 hours ago by SunnyEvan
Given $a_1=1$ and the recursive relation
$$a_{i+1}=a_i+\frac{1}{a_i}$$for all natural number $i$. Find the general form of $a_n$.

Is there any way to solve this problem and similar ones?
3 replies
amogususususus
Jan 24, 2025
SunnyEvan
3 hours ago
Romanian Masters in mathematics 2010 Day 1 Problem 1
Goutham   8
N Feb 14, 2018 by ABCDE
For a finite non empty set of primes $P$, let $m(P)$ denote the largest possible number of consecutive positive integers, each of which is divisible by at least one member of $P$.

(i) Show that $|P|\le m(P)$, with equality if and only if $\min(P)>|P|$.

(ii) Show that $m(P)<(|P|+1)(2^{|P|}-1)$.

(The number $|P|$ is the size of set $P$)

Dan Schwarz, Romania
8 replies
Goutham
Apr 25, 2010
ABCDE
Feb 14, 2018
Romanian Masters in mathematics 2010 Day 1 Problem 1
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Goutham
3130 posts
#1 • 5 Y
Y by anantmudgal09, Davi-8191, Adventure10, Mango247, kiyoras_2001
For a finite non empty set of primes $P$, let $m(P)$ denote the largest possible number of consecutive positive integers, each of which is divisible by at least one member of $P$.

(i) Show that $|P|\le m(P)$, with equality if and only if $\min(P)>|P|$.

(ii) Show that $m(P)<(|P|+1)(2^{|P|}-1)$.

(The number $|P|$ is the size of set $P$)

Dan Schwarz, Romania
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lasha
204 posts
#2 • 1 Y
Y by Adventure10
I just managed to solve part a). Assume we have primes $p_1, p_2, ... , p_n$ and $n$ consecutive integers $x+1,x+2,...,x+n$ such that each of this $n$ numbers has a divisor among primes $p_i, 1\leq{i}\leq{n}$. Consider new (n+1)-tuples: ${x+Np_1p_2...p_n+i|1\leq{i}\leq{n}}$, where $N$ is any positive integer. Easy to prove that we can find such $N$ that $x+Np_1p_2...p_n$ is divisible by $p_{n+1}$, for any new prime in the set, as the numbers $Np_1p_2...p_n$, where $1\leq{N}\leq{p_{n+1}}$, give any remainder exactly once modulo $p_{n+1}$. Clearly, we have a basis for this induction conjecture. Hence, we have the way to construct $n$ consecutive integers, satisfying the given conditions. It immediately follow that $m(p)\geq{|P|}$, q.e.d.
P.S. Sorry, I don't have enough time to post the proof of the second part of question a). I will post it tomorrow if no one else does :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
tianc
29 posts
#3 • 2 Y
Y by Adventure10, Mango247
Could you tell me the problem of yesterday?Thank you.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PhilAndrew
207 posts
#4 • 3 Y
Y by miaoxiaodai, Adventure10, math90
This is already solved on the forum (see the discussion on the contest's topic of this year). One can prove that $m(P) < 2^{|P|}$ (this is the solution to be found at the link above):
Solution for b) wrote:
Start with

Lemma.
If the integer arithmetic sequences $ \{ mn_j \}_{m \in \mathbb{Z}}$, $ 1 \leq j \leq k$, are such that they cover $ 2^k$ consecutive integers, then they cover $ \mathbb{Z}$.

(Particular case of a Crittenden & Vanden Eynden Theorem)

Proof.
Let $ \displaystyle \omega_j = \textrm{e}^{\frac {2\pi \textrm{i}} {n_j}}$ be a primitive root of unity. Then $ n_j \mid m$ if and only if $ \displaystyle \omega_j^m = 1$, hence $ m$ is divisible by at least one $ n_j$ if and only if
$ \displaystyle 0 = \prod_{j = 1}^k(1 - \omega_j^m) = \sum_{\emptyset \subseteq S \subseteq [k]} ( - 1)^{|S|}\textrm{e}^{2m\pi\textrm{i}\sum_{j \in S} \frac {1} {n_j}}$. Denote $ \alpha_S = ( - 1)^{|S|}$, $ z_S = \textrm{e}^{2\pi\textrm{i}\sum_{j \in S} \frac {1} {n_j}}$, $ \displaystyle u_m = \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_Sz_S^m$.

Consider now the polynomial $ \displaystyle f(x) = \prod_{\emptyset \subseteq S \subseteq [k]} (x - z_S) = \sum_{j = 0}^{2^k} c_jx^j$, of degree $ \deg f = 2^k$, and with $ c_{2^k} = 1$, $ \displaystyle |c_0| = \prod_{\emptyset \subseteq S \subseteq [k]} |z_S| = 1$. Then $ \alpha_Sz_S^bf(z_S) = 0$ for any integer $ b$, hence
\[ \displaystyle 0 = \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_Sz_S^bf(z_S) = \sum_{j = 0}^{2^k} c_j \sum_{\emptyset \subseteq S \subseteq [k]} \alpha_Sz_S^{b + j} = \sum_{j = 0}^{2^k} c_ju_{b + j}.\]
Assume the $ 2^k$ consecutive integers $ a + 1, \ldots, a + 2^k$ are covered, so, according with the above, $ u_{a + 1} = \cdots = u_{a + 2^k} = 0$. Since $ c_0 \neq 0$ and $ c_{2^k} \neq 0$, by simple induction one gets $ u_b = 0$ for any integer $ b$ (a linear recurrence relation of order $ 2^k$ containing $ 2^k$ consecutive null terms generates an all-null sequence). $ \blacksquare$

Now, in our case, if we assume $ m(P) \geq 2^{|P|}$, then the $ |P|$ arithmetic sequences given by $ \{ mp \}_{m \in \mathbb{Z}}$, $ p \in P$, will cover $ 2^k$ consecutive integers, hence they will cover $ \mathbb{Z}$. But clearly a large enough prime $ q$ is not divisible by any $ p \in P$, so this is absurd, therefore $ m(P) < 2^{|P|}$.

Bibliography

Richard K. Guy, Unsolved Problems in Number Theory E23
Zhi-Wei Sun, Arithmetic Properties of Periodic Maps (with an extensive bibliography of its own).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hendrata01
280 posts
#5 • 2 Y
Y by Adventure10, Mango247
I'll also try a.)

Let $s = |P|$. We proceed by constructing $s$ consecutive integers which are each divisible by a prime in $P$. Indeed, the following system has a solution, according to Chinese Remainder Theorem:
$x+1 \equiv 0 \pmod {p_1}$
$x+2 \equiv 0 \pmod {p_2}$
...
$x+s \equiv 0 \pmod {p_s}$

Second part:
Suppose we have $s < \min(P)$ and that we have $s+1$ consecutive integers all divisible by some $p_i$: $x, x+1, x+2, ... , x+s$. Let $p_1 = \min(P)$.

For each $p_i$, it can only divide at most one of the above-mentioned integers. For if it divides $x+a$ and $x+b$ then it also divides $|a-b| \leq s < p_1$, a contradiction (since $p_1$ is the smallest prime in $P$).
So $m(P) \leq s$. But it's been shown that $m(P) \geq s$, so $m(P) = s$.

Now suppose we have $s \geq \min(P)$. We will show $s+1$ consecutive integers such that each is divisible by a prime in $P$, which then establishes $m(P) > s$.
Let $k = \min(P)$.
Again, we set up a system of equations as described above, but we choose the ordering of $p_i$s such that $p_k = k$. The rest can be arbitrary ordering. This is always possible if $s \geq k$.
According to CRT, there is a solution of $s$ consecutive integers that satisfy the above system of equations. But then we also have $x = x+k - k$ divisible by $p_k = k$. So together with $x$, they form $s+1$ consecutive integers.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gustavoe
19 posts
#6 • 3 Y
Y by iarnab_kundu, Adventure10, Mango247
Letter $b$:

Let $M+1, M+2,...,M+m$ be consecutive integers, each multiple of some $p_i$, $n=|P|$, $Q = p_1p_2...p_n$. The number of multiples of some $p_i$ between $M+1$ and $M+m$ is $m$, since they are all multiples, but by the PIE it is also:

$\displaystyle\sum_{d|Q, d>1}\left\lfloor\dfrac{M+m}{d}\right\rfloor(-\mu(d)) - \displaystyle\sum_{d|Q, d>1}\left\lfloor\dfrac{M}{d}\right\rfloor(-\mu(d))$

For every $k$, we have $\dfrac{m}{k} - 1 < \left\lfloor\dfrac{M+m}{k}\right\rfloor - \left\lfloor\dfrac{M}{k}\right\rfloor < \dfrac{m}{k} + 1$, so we have:

$m=\displaystyle\sum_{d|Q, d>1}\mu(d)\left(\left\lfloor\dfrac{M}{d}\right\rfloor - \left\lfloor\dfrac{M+m}{d}\right\rfloor\right)
=\displaystyle\sum_{d|Q, d>1, \mu(d)=1}\left(\left\lfloor\dfrac{M}{d}\right\rfloor - \left\lfloor\dfrac{M+m}{d}\right\rfloor\right) + \displaystyle\sum_{d|Q, d>1, \mu(d)=-1}\left(\left\lfloor\dfrac{M+m}{d}\right\rfloor - \left\lfloor\dfrac{M}{d}\right\rfloor\right) 
< \displaystyle\sum_{d|Q, d>1, \mu(d)=1}\left(1-\dfrac{m}{d}\right) + \displaystyle\sum_{d|Q, d>1, \mu(d)=-1}\left(1+\dfrac{m}{d}\right) 
= \left(\displaystyle\sum_{d|Q, d>1}1\right) - m\left(\displaystyle\sum_{d|Q, d>1}\dfrac{\mu(d)}{d}\right) 
= 2^n-1 - m\left[\left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right) - 1\right]$

$\Longrightarrow m < 2^n-1+m-m\left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right) \Longleftrightarrow
m < \dfrac{2^n - 1}{\left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right)}$

So we need $\dfrac{1}{\left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right)} \le n+1 \Longleftrightarrow \dfrac{1}{n+1} \le \left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right)$

Now $f(x) = 1 - \dfrac{1}{x}$ is increasing, and assuming $p_1 < p_2 < ... < p_n$, we have $p_i \ge i+1$, so $\left(\displaystyle\prod_{i}1-\dfrac{1}{p_i}\right) \ge \left(\displaystyle\prod_{i}1-\dfrac{1}{i+1}\right) = \left(\displaystyle\prod_{i}\dfrac{i}{i+1}\right) = \dfrac{1}{2}\dfrac{2}{3}...\dfrac{n}{n+1} = \dfrac{1}{n+1}$, 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.
anantmudgal09
1980 posts
#7 • 2 Y
Y by Adventure10, Mango247
Hint:
a.) Use CRT
b.) Use Inclusion/exclusion principle.
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
#8 • 8 Y
Y by tenplusten, huricane, AlastorMoody, hellomath010118, Kobayashi, Adventure10, Mango247, signifance
$\textbf{Part (i)}:$
Suppose the elements of $P$ are $p_1,p_2,\cdots ,p_{|P|}$. To show $|P|<m(P)$, we need to find $|P|$ consecutive numbers each of which is divisible by some $p_i$. But this is easy: we can try to solve the system: \begin{align*} x+1&\equiv 0\pmod{p_1}\\
x+2&\equiv 0\pmod{p_2}\\
&\vdots\\
x+|P|&\equiv 0\pmod{p_{|P|}}\end{align*}But this has a solution because of Cathode Ray Tube Chinese Remainder Theorem.

Now for the equality case. For the if part, note that if $\min (P)>|P|$, and equality in $|P|\le m(P)$ does not hold, then that means there is a set of $|P|+1$ consecutive numbers each divisible by some $p_i$. Since there are more numbers than there are primes, Pigeonhole principle says some $p_i$ must divide two of those consecutive numbers, and hence also their difference, which cannot exceed $|P|$. This forces $p_i\le |P|\implies \min (P)\le p_i\le |P|$, contradicting the hypothesis.

It remains to prove the converse, and we would be done with part(i). That is, we need to show $\min(P)>|P|$ implies equality. We'll show the contrapositive. Suppose we have $\min(P)\le |P|$ instead. Say WLOG $p_1\le |P|$. We again set up a system of equations:
\begin{align*} x+1&\equiv 0\pmod{p_1}\\
x+2&\equiv 0\pmod{p_2}\\
&\vdots\\
x+p_1&\equiv 0\pmod{p_{p_1}}\\
x+p_1+2&\equiv 0\pmod{p_{p_i+1}}\\
&\vdots\\
x+|P|+1&\equiv 0\pmod{p_{|P|}}\end{align*}This system consists of all equations of the form $x+i\equiv 0\pmod{p_i}$ for $i\in\{1,\cdots ,p_1\}$, then skips $x+p_1+1$ altogether, and continues as $x+i\equiv 0\pmod{p_{i-1}}$ for $i\in\{p_1+1,\cdots ,|P|\}$. This has a solution $x$ by CRT again. So the numbers $x+1,x+2,\cdots x+p_1,x+p_1+2,\cdots x+|P|$ are all forced to divisible by some $p_i$, and the number $x+p_1+1$ is automatically divisible by $p_1$ because $x+1\equiv 0\pmod{p_1}$. Thus we ended up with $|P|+1$ consecutive numbers with the desired properties, which shows $m(P)\ge |P|+1$, and so the equality in $|P|\le m(P)$ cannot hold. This settles part (i) . $\blacksquare$

$\textbf{Part (ii)}$

First of all, a notation thing: for a set $S$, and a positive integer $k$, $\left|\Large\substack{S\\ \sim \\ k}\right|$ is the number of elements in $S$ divisible by $k$. Note that if $S$ is a set of consecutive integers, then $\left|\Large\substack{S\\ \sim \\ k}\right|=\left\lfloor\frac{|S|}{k}\right\rfloor\text{ or }\left\lfloor\frac{|S|}{k}\right\rfloor+1$, depending on $S$. This in particular gives us the bounds $\left|\Large\substack{S\\ \sim \\ k}\right|\le \frac{|S|}{k}+1$ and $\left|\Large\substack{S\\ \sim \\ k}\right|\ge \frac{|S|}{k}-1$; these will be of use to us later on.

Now, let $|P|=m,m(P)=N,$ and $S=$a set of $N$ consecutive integers each divisible by some element of $P$. Also, as before, say the elements of $P$ are $p_1,p_2,\cdots ,p_m$. Now if $\Large\smiley$ denotes the set of integers within $S$ that are divisible by none of the $p_i$'s, we must have $\left| \Large\smiley\right|=0$. But we can compute $\left| \Large\smiley\right|$ in another way: the Principle of Inclusion and Exclusion, which yields:
\begin{align*}0=\left| \Large\smiley\right| & =|S|-\sum_{1\le i\le m}\left|\Large\substack{S\\ \sim \\ {p_i}}\right|+\sum_{1\le i<j\le m}\left|\Large\substack{S\\ \sim \\ {p_ip_j}}\right|-\sum_{1\le i<j<k\le m}\left|\Large\substack{S\\ \sim \\ {p_ip_jp_k}}\right|+\cdots\\
&\ge N-\sum_{1\le i\le m}\left(\frac{N}{p_i}+1\right)+\sum_{1\le i<j\le m}\left(\frac{N}{p_ip_j}-1\right)-\sum_{1\le i<j<k\le m}\left(\frac{N}{p_ip_jp_k}+1\right)+\cdots\\
&= N-\sum_{1\le i\le m}\frac{N}{p_i}+\sum_{1\le i<j\le m}\frac{N}{p_ip_j}-\sum_{1\le i<j<k\le m}\frac{N}{p_ip_jp_k}+\cdots\\
&\quad\quad-\left( \binom{m}{1}+\binom{m}{2}+\binom{m}{3}+\cdots\right)\\
&=N\prod_{i=1}^{m} \left(1-\frac{1}{p_i}\right)-(2^m-1)\\
\implies m(P)&=N\le \frac{2^m-1}{\prod_{i=1}^{m} \left(1-\frac{1}{p_i}\right)}.\end{align*}It remains to show $\frac{1}{\prod_{i=1}^{m} \left(1-\frac{1}{p_i}\right)}<|P|+1=m+1\iff \prod_{i=1}^m \frac{p_i}{p_i-1}<m+1$, which follows from easy induction. Thus, we are (finally!) done. $\blacksquare$
This post has been edited 1 time. Last edited by Ankoganit, Nov 8, 2016, 6:03 AM
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
#9 • 3 Y
Y by JG666, Adventure10, Mango247
(i) We can easily construct $|P|$ consecutive integers, each one of which is divisible by an element of $P$, by the Chinese Remainder Theorem. In the case of $\min(P)>|P|$, this is the best we can do, as among any $|P|$ consecutive integers at most one of them is divisible by $p$ for every $p\in P$. Conversely, if $\min(P)\le|P|$ we can cover two integers and exhibit $|P|+1$ consecutive integers.

(ii) We will show that among any $N=(|P|+1)(2^{|P|}-1)$ consecutive integers there will be at least one relatively prime to $p_1p_2\cdots p_{|P|}$, the product of the elements of $P$. Indeed, note that the number of such integers is at most $N+\sum_{S\subset\{1,2,\ldots,|P|\}}(-1)^{|S|}\left\lfloor\frac{N}{\prod_{i\in S}p_i}\right\rceil$, where the expression is a floor if $S$ has an even number of elements and a ceiling otherwise. This count is by the Principle of Inclusion and Exclusion. Bounded from below, we may get rid of the floors and ceilings at a cost of $1$ for each floor/ceiling, resulting in the number of relatively prime integers being strictly more than $N\prod\frac{p_i-1}{p_i}-(2^{|P|}-1)$. Now note that $\prod\frac{p_i-1}{p_i}>\frac12\cdot\frac23\cdots\frac{|P|}{|P|+1}=\frac1{|P|+1}$, from which we conclude that there are more than $\frac{N}{|P|+1}-(2^{|P|}-1)=0$ numbers not divisible by any element of $P$, as desired.
Z K Y
N Quick Reply
G
H
=
a