Stay ahead of learning milestones! Enroll in a class over the summer!

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
Vasc = 1?
Li4   0
13 minutes ago
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.
0 replies
Li4
13 minutes ago
0 replies
Symmetric Homogeneous Polynomial of Degree 3
USJL   3
N 26 minutes ago by USJL
Source: 2025 Taiwan TST Round 3 Independent Study 1-A
Find all symmetric homogeneous polynomials $P(x,y,z)$ with real coefficients of degree $3$ such that $P(1,x,x^2)$ divides $P(-(x+1)^3,x,x^2)$.

Proposed by usjl
3 replies
+1 w
USJL
an hour ago
USJL
26 minutes ago
Collect ...
luutrongphuc   4
N an hour ago by Rayanelba
Find all functions $f: \mathbb{R^+} \rightarrow \mathbb{R^+}$ such that:
$$f\left(f(xy)+1\right)=xf\left(x+f(y)\right)$$
4 replies
luutrongphuc
Apr 21, 2025
Rayanelba
an hour ago
Algebra problem
kjhgyuio   0
an hour ago
........
0 replies
kjhgyuio
an hour ago
0 replies
No more topics!
European Mathematical Cup 2016 senior division problem 1
steppewolf   11
N Apr 15, 2025 by MuradSafarli
Is there a sequence $a_{1}, . . . , a_{2016}$ of positive integers, such that every sum
$$a_{r} + a_{r+1} + . . . + a_{s-1} + a_{s}$$(with $1 \le r \le s \le 2016$) is a composite number, but:
a) $GCD(a_{i}, a_{i+1}) = 1$ for all $i = 1, 2, . . . , 2015$;
b) $GCD(a_{i}, a_{i+1}) = 1$ for all $i = 1, 2, . . . , 2015$ and $GCD(a_{i}, a_{i+2}) = 1$ for all $i = 1, 2, . . . , 2014$?
$GCD(x, y)$ denotes the greatest common divisor of $x$, $y$.

Proposed by Matija Bucić
11 replies
steppewolf
Dec 31, 2016
MuradSafarli
Apr 15, 2025
European Mathematical Cup 2016 senior division problem 1
G H J
G H BBookmark kLocked kLocked NReply
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
steppewolf
351 posts
#1 • 3 Y
Y by Lukaluce, amar_04, Adventure10
Is there a sequence $a_{1}, . . . , a_{2016}$ of positive integers, such that every sum
$$a_{r} + a_{r+1} + . . . + a_{s-1} + a_{s}$$(with $1 \le r \le s \le 2016$) is a composite number, but:
a) $GCD(a_{i}, a_{i+1}) = 1$ for all $i = 1, 2, . . . , 2015$;
b) $GCD(a_{i}, a_{i+1}) = 1$ for all $i = 1, 2, . . . , 2015$ and $GCD(a_{i}, a_{i+2}) = 1$ for all $i = 1, 2, . . . , 2014$?
$GCD(x, y)$ denotes the greatest common divisor of $x$, $y$.

Proposed by Matija Bucić
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ThE-dArK-lOrD
4071 posts
#2 • 2 Y
Y by Adventure10, Mango247
We will show that for each $i=3,4,...,2016$, there exist sequence $a_1,a_2,...,a_i$ of positive integers such that $\sum_{t=r}^{t=s}{a_t}$ is composite number for all $1\leq r\leq s\leq i$ and $gcd(a_j,a_{j+1})=1$ for all $j=1,2,...,i-1$ and $gcd(a_j,a_{j+2})=1$ for all $j=1,2,...,i-2$

For $i=3$, we choose sequence $4,81,121$
Suppose there exist sequence $a_1,a_2,...,a_i$, then we choose $a_{i+1}=p^c$ where $p$ is prime number larger than $\Big( \sum_{t=1}^{t=i}{a_t}\Big)+1$ and $c$ is a positive integer such that $\prod_{t=1}^{t=i}{(q_t-1)}\mid c$ where $q_t$ is a prime divisor of $\Big( \sum_{l=t}^{l=i}{a_l}\Big) +1$ for all $t=1,2,...,i$
This value of $a_{i+1}$ will give us for all $t=1,2,...,i$, $\Big( \sum_{l=t}^{l=i}{a_l}\Big) +p^c\equiv_{q_t} \Big( \sum_{l=t}^{l=i}{a_l}\Big)+1\equiv_{q_t} 0 $ and $a_{i+1}>q_t$
And we clearly have $gcd(a_t,a_{i+1})=gcd(a_t,p^c)=1$ for all $t=1,2,...,i$
This post has been edited 2 times. Last edited by ThE-dArK-lOrD, Jan 1, 2017, 5:36 AM
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
#3 • 2 Y
Y by PRO2000, Adventure10
The answer is yes, and prove that, it suffices to give an example satisfying the conditions in part (b); so we'll do just that.

Pick an odd prime $p$, and another bunch of odd primes (pairwise distinct and also distinct from $p$ ), say, $p_1,p_2,\cdots ,p_{2016},q_1,q_2,\cdots ,q_{2016}$. Now by virtue of CRT, choose a number $a_0$ such that:
\begin{align*}
a_0 &\equiv 1\pmod{2}\\
a_0 &\equiv 1\pmod{p}\\
&\text{and...}\\
a_0+2ip &\equiv 0\pmod{p_iq_i} \text{ for }i=1,2,3,\cdots ,2016.\end{align*}Now set $a_i=a_0+2ip$ for $i=1,2,\cdots ,2016$. We claim that this works. Indeed, since the $a_i$'s are in an arithmetic progression, we have $$a_{r} + a_{r+1} + . . . + a_{s-1} + a_{s}=\left(\frac{a_r+a_s}{2}\right)\cdot(s-r+1).$$Now $\frac{a_r+a_s}{2}$ is always an integer, because by construction, $a_0$ and hence all $a_i$'s are odd. For $r\ne s$, the above sum is obviously composite, and for $r=s$, the above sum reduces to $a_r$, which is composite because $p_rq_r|a_r$.

Now it remains to check that GCD condition. Fortunately, this is easy: $\gcd\left(a_i,a_{i+2}\right)=\gcd\left(a_i,a_i+4p\right)=\gcd\left(a_i,4p\right)$, which can't be $>1$ since we've been careful to set $a_i\equiv a_0\equiv 1\pmod{2}\text{ and }\pmod{ p}$. The case $\gcd\left(a_i,a_{i+1}\right)$ is similar, so we win. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
muuratjann
56 posts
#4 • 2 Y
Y by Ankoganit, Adventure10
My solution at the contest
a) and b) $3^3;5^3$ and so on
This post has been edited 1 time. Last edited by muuratjann, Jan 2, 2017, 12:11 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Somebany
11 posts
#5 • 2 Y
Y by Adventure10, Mango247
@muuratjann I think that your solution is incorrect because if you take $r=s$ then you have that sum is $a_{r}=1^3$ which is obviously incorrect since $1$ is not a composite number.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sqing
41839 posts
#6 • 2 Y
Y by Adventure10, Mango247
http://emc.mnm.hr/wp-content/uploads/2016/12/EMC_2016_Seniors_ENG_Solutions.pdf
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
muuratjann
56 posts
#7 • 1 Y
Y by Adventure10
Somebany wrote:
@muuratjann I think that your solution is incorrect because if you take $r=s$ then you have that sum is $a_{r}=1^3$ which is obviously incorrect since $1$ is not a composite number.

Starting from $3^3$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PRO2000
239 posts
#8 • 2 Y
Y by Adventure10, Mango247
Does this work for the part b):

Take $a_1=p_1^{2017}$ , then $a_2 \equiv 0 \pmod {p_2} $ , $a_2 \equiv 1 \pmod {a_1} $ and $a_2 \equiv -{a_1} \pmod {p_{1,2}} $ . Then inductively construct the $a_i$'s for $i \geq 3$ as follows.

Take $a_s \equiv 0 \pmod {p_s} $ , $a_s \equiv -{ a_1+a_2+\cdots+a_{s-1}} \pmod   {p_{k,s}} $ for $1 \leq k \leq {s-1}$ and $a_s \equiv 1 \pmod {a_{s-1} a_{s-2}} $ . This can be done by CRT as we can take sufficiently large $p_i$'s and $p_{k,i}$'s to ensure that they are pairwise coprime and also coprime to $a_{s-1}a_{s-2}$

Continue till $s=2016$.
This post has been edited 1 time. Last edited by PRO2000, Feb 12, 2017, 10:53 AM
Reason: specified value of s
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathematicsislovely
245 posts
#9 • 1 Y
Y by amar_04
Claim:The sum of any $r\ge 1$ consecutive terms of a arithmetic progression whose each term is odd composite number is a composite number.
proof.If we take even number of consecutive terms then the sum is even.Now consider the sum of odd number of consecutive terms.Let the terms be $x,x+d,X+2d\dots x+(n-1)d$ where n is odd.Clearly the sum $ n[x+\frac{n-1}{2}d]$ is composite.$\blacksquare$

Claim:For all integer $n$ there is a arithmetic progression with $n$ terms such that the following holds:
  • Each term is a odd composite number.
  • GCD of any term of this AP is 1.
proof.Take $M\ge (2020n)!$.Consider the AP,
$M!+n!+1,M!+n!+1+(n!),M!+n!+1+2\times n!,\dots M!+n!+1+(n-1)n!$.
In short,the AP with first term $M!+n!+1$ and common difference $n!$ and first $n$ terms.

Obviously each term is odd composite.If a prime $p$ devides GCD of 2 terms,
say
$p|GCD(M!+n!+1+r(n!),M!+n!+1+s\times n!)\\
\implies p|(r-s)n!\\
\implies p|n!\\
\implies p|M!+n!+r(n!)\\
\implies p|1$.
A contradiction.
The third line follows from the fact that $p$ devides at least one of $|r-s|$ or $n!$ but in both cases,as $|r-s|<n$,$p|n!$.The 4th line follows from the fact that $n!|M!+n!+r(n!)$.
Hence GCD of any 2 term is 1.$\blacksquare$

Taking $n=2016$ by the above 2 claims both (a),(b) holds .$\blacksquare$
This post has been edited 6 times. Last edited by Mathematicsislovely, Oct 29, 2020, 9:20 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jalil_Huseynov
439 posts
#10
Y by
The answer is positive for both cases, so proving second one is enough.
Let $a_i=N!+2i+1$ for all $1\le i\le 2016$, where $N \geq 3+5+\cdots 4033$.
$\gcd(a_i,a_{i+1})=\gcd(a_i,a_{i+1}-a_i)=\gcd(a_i,2)=1$ and similarly $\gcd(a_i,a_{i+2})=\gcd(a_i,4)=1$.
And since $(2r+1)+(2r+3)+\cdots (2s+1)\mid N!$ for all $1 \le r \le s \le 2016$, we get $(2r+1)+(2r+3)+\cdots (2s+1)\mid a_{r} + a_{r+1} + . . . + a_{s-1} + a_s$ and since $2r+1\geq 3$ we are done!
This post has been edited 2 times. Last edited by Jalil_Huseynov, Nov 29, 2021, 3:14 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NumberzAndStuff
43 posts
#11
Y by
The answer is yes for both (a) and (b)
We prove this for all $n$. (Goal being $n=2016$)

For $n=1$ just take $a_1=4$ or anything similar.

Now for $n \rightarrow n+1$ we choose $n$ primes $p_{n,1}, p_{n,2}, \dots p_{n,n}$ such that they are all distinct and coprime to any subarray sum we have so far. Now we construct $a_{n+1}$ using $C.R.T$ such that:
\[ a_{n+1} \equiv -\sum_{i=j}^n a_i \mod p_{n,j}^2\]for all $1 \leq j \leq n$ and
\[ a_{n+1} \equiv 1 \mod a_na_{n-1} \]This is valid, since each of the squares are coprime to all elements, including $a_na_{n-1}$. Since each new subarray containing $a_{n+1}$ is divisible by some square, they will not be prime. Additionally, $a_{n+1}$ is coprime to both $a_n$ and $a_{n-1}$, so the construction is valid for $n+1$ and by induction for all $n$, including 2016
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MuradSafarli
86 posts
#12
Y by
i think answer is yes.
My construction--->(1,3,5,7,9,11,.....,4033)
Z K Y
N Quick Reply
G
H
=
a