Join our FREE webinar on May 1st to learn about managing anxiety.

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. 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 events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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
Sunday, Apr 13 - Aug 10
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
Sunday, Apr 13 - Aug 10
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
Monday, Apr 7 - Jul 28
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
Wednesday, Apr 16 - Jul 2
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
Thursday, Apr 17 - Jul 3
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
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Wednesday, Apr 23 - Oct 1
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

Intermediate: Grades 8-12

Intermediate Algebra
Monday, Apr 21 - Oct 13
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
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Wednesday, Apr 9 - Sep 3
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
Wednesday, Apr 16 - Jul 2
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
Friday, Apr 11 - Jun 27
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

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
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Apr 2, 2025
0 replies
hard problem
Cobedangiu   14
N 39 minutes ago by IceyCold
Let $a,b,c>0$ and $a+b+c=3$. Prove that:
$\dfrac{4}{a+b}+\dfrac{4}{b+c}+\dfrac{4}{c+a} \le \dfrac{1}{a}+\dfrac{1}{b}+\dfrac{1}{c}+3$
14 replies
Cobedangiu
Apr 21, 2025
IceyCold
39 minutes ago
Vasc = 1?
Li4   8
N an hour ago by IceyCold
Source: 2025 Taiwan TST Round 3 Independent Study 1-N
Find all integer tuples $(a, b, c)$ such that
\[(a^2 + b^2 + c^2)^2 = 3(a^3b + b^3c + c^3a) + 1. \]
Proposed by Li4, Untro368, usjl and YaWNeeT.
8 replies
Li4
Apr 26, 2025
IceyCold
an hour ago
\sqrt{(1^2+2^2+...+n^2)/n}$ is an integer.
parmenides51   7
N an hour ago by lightsynth123
Source: Singapore Open Math Olympiad 2017 2nd Round p3 SMO
Find the smallest positive integer $n$ so that $\sqrt{\frac{1^2+2^2+...+n^2}{n}}$ is an integer.
7 replies
parmenides51
Mar 26, 2020
lightsynth123
an hour ago
Intersection of circumcircles of MNP and BOC
Djile   39
N 2 hours ago by bjump
Source: Serbian National Olympiad 2013, Problem 3
Let $M$, $N$ and $P$ be midpoints of sides $BC, AC$ and $AB$, respectively, and let $O$ be circumcenter of acute-angled triangle $ABC$. Circumcircles of triangles $BOC$ and $MNP$ intersect at two different points $X$ and $Y$ inside of triangle $ABC$. Prove that \[\angle BAX=\angle CAY.\]
39 replies
Djile
Apr 8, 2013
bjump
2 hours ago
No more topics!
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