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
Only consecutive terms are coprime
socrates   36
N 34 minutes ago by deduck
Source: 7th RMM 2015, Problem 1
Does there exist an infinite sequence of positive integers $a_1, a_2, a_3, . . .$ such that $a_m$ and $a_n$ are coprime if and only if $|m - n| = 1$?
36 replies
socrates
Feb 28, 2015
deduck
34 minutes ago
Colouring digits to make a rational Number
Rg230403   3
N an hour ago by quantam13
Source: India EGMO 2022 TST P4
Let $N$ be a positive integer. Suppose given any real $x\in (0,1)$ with decimal representation $0.a_1a_2a_3a_4\cdots$, one can color the digits $a_1,a_2,\cdots$ with $N$ colors so that the following hold:
1. each color is used at least once;
2. for any color, if we delete all the digits in $x$ except those of this color, the resulting decimal number is rational.
Find the least possible value of $N$.

~Sutanay Bhattacharya
3 replies
Rg230403
Nov 28, 2021
quantam13
an hour ago
flipping rows on a matrix in F2
danepale   17
N 2 hours ago by eg4334
Source: Croatia TST 2016
Let $N$ be a positive integer. Consider a $N \times N$ array of square unit cells. Two corner cells that lie on the same longest diagonal are colored black, and the rest of the array is white. A move consists of choosing a row or a column and changing the color of every cell in the chosen row or column.
What is the minimal number of additional cells that one has to color black such that, after a finite number of moves, a completely black board can be reached?
17 replies
danepale
Apr 27, 2016
eg4334
2 hours ago
4 variables with quadrilateral sides
mihaig   4
N 2 hours ago by arqady
Source: VL
Let $a,b,c,d\geq0$ satisfying
$$\frac1{a+1}+\frac1{b+1}+\frac1{c+1}+\frac1{d+1}=2.$$Prove
$$4\left(abc+abd+acd+bcd\right)\geq3\left(a+b+c+d\right)+4.$$
4 replies
mihaig
Yesterday at 5:11 AM
arqady
2 hours ago
No more topics!
N integers
perfect_radio   5
N Jun 22, 2007 by darij grinberg
Source: http://mathworld.wolfram.com/VandermondeDeterminant.html
If $a_1,a_2,\ldots,a_n \in \mathbb{Z}$ then \[ \left. \prod_{i=1}^n (i-1)! \right| \prod_{i>j} (a_i-a_j) . \]
5 replies
perfect_radio
Oct 18, 2005
darij grinberg
Jun 22, 2007
N integers
G H J
Source: http://mathworld.wolfram.com/VandermondeDeterminant.html
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
perfect_radio
2607 posts
#1 • 2 Y
Y by Adventure10, Mango247
If $a_1,a_2,\ldots,a_n \in \mathbb{Z}$ then \[ \left. \prod_{i=1}^n (i-1)! \right| \prod_{i>j} (a_i-a_j) . \]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
tµtµ
393 posts
#2 • 3 Y
Y by Adventure10, Mango247, and 1 other user
The source and the reference to Vandermonde is a precious clue !


Here is a, not elementary proof with heavy use of linear algebra, which, I think, works :

Let's write $X^i= \sum a_j^i L_j$ where $L_j$ is Lagrange interpolation polynomial such as $L_j(a_j)=1$ and $L_j(a_i)=0$

Then by Vandermonde, $\prod_{i>j} (a_i-a_j)$ is the determinant of the matrix from basis $X^i$ to $L_i$.

If $M_j$ is Lagrange interpolation polynomial such as $L_j(j)=1$ and $L_j(i)=0$, then $\prod_{i=1}^n (i-1)!$ is the determinant from basis $M_i$ to $X^i$.

By composition, it suffices to prove that the matrix from $L_i$ to $M_i$ is an integer, i.e. if $M_i = \sum m_{ij} L_j$ then $det(m_{ij}) \in Z$
We have $m_ij = M_i(a_j)$, it is a classical exercice to prove that if $P$ is a polynomial of degree $n$ such an $P(n)$ is an integer for $0, ..., n$ then $P(n)$ is an integer for all $n$. Conclusion follows.


Hope it's correct and not too obscur
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
perfect_radio
2607 posts
#3 • 2 Y
Y by Adventure10, Mango247
tµtµ wrote:
Let's write $X^i= \sum a_j^i L_j$ where $L_j$ is Lagrange interpolation polynomial such as $L_j(a_j)=1$ and $L_j(a_i)=0$

Then by Vandermonde, $\prod_{i>j} (a_i-a_j)$ is the determinant of the matrix from basis $X^i$ to $L_i$.

I don't understand how you define the $X^i$'s... can you give an example for a special case (n=4 or smth like that)

And another thing: what does a matrix from a basis ... to ... mean?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Singular
749 posts
#4 • 1 Y
Y by Adventure10
Consider prime factorization of $\prod_{i=1}^n (i-1)!$. Prime p must have exponent $\displaystyle \sum_{k=1}^{n-1} \left \lfloor \frac{k}{p} \right \rfloor$.

In product $\prod_{i>j} (a_i - a_j)$, lets count how many factors p there are. If there are $b_i$ $a_i$'s modulo p, then there are $\sum \frac{b_i(b_i-1)}{2}$ factors p. Obviously $\sum b_i = n$. So there are $\frac{-n + \sum b_i^2}{2}$ factors p.

So it remains to prove $\frac{-n + \sum^p b_i^2}{2} \ge \sum_{k=1}^{n-1} \left \lfloor \frac{k}{p} \right \rfloor$

By induction on n. Extreme values are easy; else adding one to n adds $\lfloor \frac{n}{p} \rfloor$ to the RHS, but the minimum of the LHS increases by this plus one.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
perfect_radio
2607 posts
#5 • 1 Y
Y by Adventure10
Singular wrote:
Prime p must have exponent $\displaystyle \sum_{k=1}^{n-1} \left \lfloor \frac{k}{p} \right \rfloor$.

Are you sure this is true?

I knew that power of a prime $p$ in $n!$ is $\displaystyle \sum_{i \geq 1} \left\lfloor \frac{n}{p^i} \right\rfloor$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
darij grinberg
6555 posts
#6 • 3 Y
Y by Adventure10, Mango247, and 1 other user
perfect_radio wrote:
I don't understand how you define the $X^{i}$'s... can you give an example for a special case (n=4 or smth like that)

And another thing: what does a matrix from a basis ... to ... mean?

I just noticed this thread. Are the questions still to be answered?

First, some corrections to tµtµ's post (apparently he worked with $n+1$ integers $x_{0}$, $x_{1}$, ..., $x_{n}$ instead of the $n$ integers $x_{1}$, $x_{2}$, ..., $x_{n}$ and thus his notation doesn't quite fit with the notation of the problem):
tµtµ, corrected wrote:
The source and the reference to Vandermonde is a precious clue !


Here is a, not elementary proof with heavy use of linear algebra, which, I think, works :

Let's write $X^{i-1}= \sum_{j=1}^{n}a_{j}^{i-1}L_{j}$ where $L_{j}$ is Lagrange interpolation polynomial such as $L_{j}(a_{j})=1$ and $L_{j}(a_{i})=0$ for $i\neq j$.

Then by Vandermonde, $\prod_{i>j}(a_{i}-a_{j})$ is the determinant of the transfer matrix from the basis $\left(1,X,X^{2},...,X^{n-1}\right)$ to the basis $\left(L_{1},L_{2},...,L_{n}\right)$.

If $M_{j}$ is Lagrange interpolation polynomial such as $M_{j}(j)=1$ and $M_{j}(i)=0$ for $i\neq j$, then $\prod_{i=1}^{n}(i-1)!$ is the determinant of the transfer matrix from the basis $\left(1,X,X^{2},...,X^{n-1}\right)$ to the basis $\left(M_{1},M_{2},...,M_{n}\right)$.

By composition, it suffices to prove that the determinant of the transfer matrix from the basis $\left(M_{1},M_{2},...,M_{n}\right)$ to the basis $\left(L_{1},L_{2},...,L_{n}\right)$ is an integer, i.e. if $M_{i}= \sum_{j=1}^{n}m_{ij}L_{j}$ then $\det (m_{ij}) \in \mathbb{Z}$.

But in fact, even all $m_{ij}$ are integers, since we have $m_{ij}= M_{i}(a_{j})$, and this is integer since it is a classical exercise to prove that if $P$ is a polynomial of degree $\leq n-1$ such that $P(k)$ is an integer for all $k\in\left\{1, 2, ..., n\right\}$ then $P(k)$ is an integer for all $k\in\mathbb{Z}$. Conclusion follows.

In fact, tµtµ works in the $n$-dimensional $\mathbb{Q}$-vector space of all polynomials of one variable $X$ over $\mathbb{Q}$ whose degree is $\leq n-1$. Therefore, $\left(1,X,X^{2},...,X^{n-1}\right)$ is a basis of this vector space.

If $\left(a_{1},a_{2},...,a_{n}\right)$ and $\left(b_{1},b_{2},...,b_{n}\right)$ are two bases of a vector space, then the transfer matrix from the basis $\left(a_{1},a_{2},...,a_{n}\right)$ to the basis $\left(b_{1},b_{2},...,b_{n}\right)$ means (at least in tµtµ's notation) the matrix $\left(t_{ij}\right)_{1\leq i,j\leq n}$ satisfying $a_{i}=\sum_{j=1}^{n}t_{ij}b_{j}$ for every $i\in\left\{1,2,...,n\right\}$.

The Lagrange interpolation polynomials for $n$ distinct (yes, they must be distinct) elements $x_{1}$, $x_{2}$, ..., $x_{n}$ of a field $K$ are $n$ special polynomials $N_{1}$, $N_{2}$, ..., $N_{n}$ of degree $n-1$ over $K$ which are defined as follows:

$N_{i}\left(X\right)=\prod_{1\leq j\leq n;\ j\neq i}\frac{X-x_{j}}{x_{i}-x_{j}}$ for every $i\in\left\{1,2,...,n\right\}$.

They satisfy $N_{i}\left(x_{i}\right)=1$ for every $i\in\left\{1,2,...,n\right\}$, and $N_{i}\left(x_{j}\right)=0$ for every $i,j\in\left\{1,2,...,n\right\}$ such that $i\neq j$.

The name-giving property of these Lagrange interpolation polynomials is the following one: For every polynomial $S$ of degree $\leq n-1$, we have $S=\sum_{i=1}^{n}S\left(x_{i}\right)N_{i}$.

In tµtµ's solution,
- the polynomials $L_{1}$, $L_{2}$, ..., $L_{n}$ are defined as the the Lagrange interpolation polynomials for the elements $a_{1}$, $a_{2}$, ..., $a_{n}$ of the field $\mathbb{Q}$;
- the polynomials $M_{1}$, $M_{2}$, ..., $M_{n}$ are defined as the the Lagrange interpolation polynomials for the elements $1$, $2$, ..., $n$ of the field $\mathbb{Q}$.

I hope I was able to clear up some things...

Darij
Z K Y
N Quick Reply
G
H
=
a