Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this 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 a transformative 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][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 2, 2025
0 replies
Brilliant Problem
M11100111001Y1R   9
N a minute ago by The5
Source: Iran TST 2025 Test 3 Problem 3
Find all sequences \( (a_n) \) of natural numbers such that for every pair of natural numbers \( r \) and \( s \), the following inequality holds:
\[
\frac{1}{2} < \frac{\gcd(a_r, a_s)}{\gcd(r, s)} < 2
\]
9 replies
M11100111001Y1R
May 27, 2025
The5
a minute ago
Draw sqrt(2024)
shanelin-sigma   1
N 10 minutes ago by CrazyInMath
Source: 2024/12/24 TCFMSG Mock p10
On a big plane, two points with length $1$ are given. Prove that one can only use straightedge (which draws a straight line passing two drawn points) and compass (which draws a circle with a chosen radius equal to the distance of two drawn points and centered at a drawn points) to construct a line and two points on it with length $\sqrt{2024}$ in only $10$ steps (Namely, the total number of circles and straight lines drawn is at most $10$.)
1 reply
shanelin-sigma
Dec 24, 2024
CrazyInMath
10 minutes ago
A beautiful Lemoine point problem
phonghatemath   3
N 17 minutes ago by orengo42
Source: my teacher
Given triangle $ABC$ inscribed in a circle with center $O$. $P$ is any point not on (O). $AP, BP, CP$ intersect $(O)$ at $A', B', C'$. Let $L, L'$ be the Lemoine points of triangle $ABC, A'B'C'$ respectively. Prove that $P, L, L'$ are collinear.
3 replies
phonghatemath
Today at 5:01 AM
orengo42
17 minutes ago
Serbian selection contest for the IMO 2025 - P1
OgnjenTesic   4
N 28 minutes ago by Mathgloggers
Source: Serbian selection contest for the IMO 2025
Let \( p \geq 7 \) be a prime number and \( m \in \mathbb{N} \). Prove that
\[\left| p^m - (p - 2)! \right| > p^2.\]Proposed by Miloš Milićev
4 replies
OgnjenTesic
May 22, 2025
Mathgloggers
28 minutes ago
No more topics!
Permutations of Integers from 1 to n
Twoisntawholenumber   76
N May 27, 2025 by maromex
Source: 2020 ISL C1
Let $n$ be a positive integer. Find the number of permutations $a_1$, $a_2$, $\dots a_n$ of the
sequence $1$, $2$, $\dots$ , $n$ satisfying
$$a_1 \le 2a_2\le 3a_3 \le \dots \le na_n$$.

Proposed by United Kingdom
76 replies
Twoisntawholenumber
Jul 20, 2021
maromex
May 27, 2025
Permutations of Integers from 1 to n
G H J
G H BBookmark kLocked kLocked NReply
Source: 2020 ISL C1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Twoisntawholenumber
6 posts
#1 • 12 Y
Y by tree_3, InvertedDiabloNemesisXD, centslordm, jhu08, megarnie, ImSh95, son7, sohere, Kingsbane2139, Supercali, Marshall_Huang, kiyoras_2001
Let $n$ be a positive integer. Find the number of permutations $a_1$, $a_2$, $\dots a_n$ of the
sequence $1$, $2$, $\dots$ , $n$ satisfying
$$a_1 \le 2a_2\le 3a_3 \le \dots \le na_n$$.

Proposed by United Kingdom
This post has been edited 1 time. Last edited by Twoisntawholenumber, Jul 20, 2021, 9:36 PM
Reason: Added the country that proposed the problem
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cadaeibf
701 posts
#2 • 7 Y
Y by centslordm, THEfmigm, ImSh95, son7, crazyeyemoody907, Marshall_Huang, MS_asdfgzxcvb
solution
This post has been edited 1 time. Last edited by cadaeibf, Jul 20, 2021, 9:12 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Twoisntawholenumber
6 posts
#3 • 5 Y
Y by InvertedDiabloNemesisXD, centslordm, ImSh95, son7, Marshall_Huang
Let $A_n$ be the number of permutations which satisfy the property. We claim that $A_N=F_{N+1}$, where $F_k$ is the $k^{th}$ Fibonacci number; defined as $F_0=0, F_1=1, F_{m+2}=F_{m+1}+F_{m} \forall m\ge0$.
Claim: In the permutation, either $N=a_{N-1}$ or $N=a_N$.
Proof: Suppose $N=a_{N-k}$ for some integer $k\ge 2$. We can deduce that any integer $m<N-k$ must be given an index of less than $N-k$; if it were not, we would need $m_i\ge N(N-k)$ for some index $i$, however as $m<N-k$ and $i\le n$, $mi<N(N-k)$, hence a contradiction.
Therefore the first $N-k-1$ integers are in the permutation $(a_1,a_2\dots a_{N-k-1})$ and the integer $N-k$ must be placed further along in the permutation than $N$, so we would need $(N-k)j\ge N(N-k)$ for some index $j$, hence $j=N$. So $a_N=N-k$, and therefore $(N-k)a_{N-k}=Na_N$, sow e need $(N-r)a_{N-r}=N(N-k)$ for all non-negative integers $r\le k$.
Consider the largest prime $p$ which is less than or $k+1$. By Bertrand's Postulate, $p > \frac{k+1}{2}$, hence this prime divides only one of the integers in the set $\{N-k,N-k+1\dots,N\}$, as there are $k+1$ terms, and so at most two of the products $xa_x$ are divisible by this prime. However as $k\ge 2$, we have at least 3 products, and so this is impossible.
We now show that $A_N=F_{N+1}$ by induction.
Base cases: $N=1$ and $N=2$.
$N=1$, we only have 1 permutation so $A_1=1=F_2$.
$N=2$, we only have 2 permutations, $\{1,2\}$ and $\{2,1\}$, so $A_2=2=F_3$.
Now we assume $A_n=F_{n+1}$ and $A_{n+1}=F_{n+2}$ for some $n$.
Consider $A_{n+2}$. By the earlier lemma, either $n+2=a_{n+1}$ or $n+2=a_{n+2}$.
In the first case, if $a_{n+1}=n+2$, we must have $a_{n+2}=n+1$. As these products are greater than all other possible products, we can arrange the previous $n$ terms in a way which satisfies the condition, and we can do this in $A_n=F_{n+1}$ ways.
In the second case, the largest product is $(n+2)^2$ and hence we can arrange the remaining terms in $A_{n+1}=F_{n+2}$ ways. So we have $A_{n+2}=F_{n+1}+F_{n+2}=F_{n+3}$, and so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AwesomeYRY
579 posts
#4 • 5 Y
Y by centslordm, ImSh95, son7, mijail, Marshall_Huang
We claim that the answer is $a_n= F_{n+1}$ where $F_n$ is the $n$-th fibonacci number defined by $F_0=0$, $F_1=1$, $F_k=F_{k-1}+F_{k-2}$. We proceed with induction, our base cases are $a_1=1=F_2$, any permutation works. And $a_2=2=F_3$, once again any permutation works.

Inductive step. We do casework on the position of $n$.

Case 1: $a_n=n$. In this case, all $i\cdot a_i\leq n\cdot a_n$, so we will be left with any of the $a_{n-1}$ permutations of the first $n-1$, all of which will work, Case 1 contributes $a_{n-1}$.

Case 2: $a_{n-1}=n$. In this case
\[a_{n-1}\cdot n\leq (n-1)\cdot a_{n-1}\leq n\cdot a_n\]thus, $a_n\geq n-1$, so $a_n=n$. Now, once again all of the first $n-2$: $1\leq j\leq n-2$ will satisfy $a_j\cdot j \leq n\cdot (n-1)$, so any of the first $n-2$ work, so this case contributes $a_{n-2}$.

Case 3: $a_j=n$ for $j\leq n-2$. I claim that there are no valid solutions. Note for all indices $n\geq k \geq j$, we have
\[j\cdot n = j\cdot a_j \leq k\cdot a_k \Longrightarrow a_k\geq \frac{j\cdot n}{k}\geq j\]Thus,
\[a_j,a_{j+1},\ldots, a_n\geq j\]Since these $a_k$ are distinct, $\{a_j,\ldots a_n\}$ must be some permutation of $\{j,\ldots,n\}$. Consider $x>j$ such that $a_x=j$. Then,
\[jn=j\cdot a_j\leq x\cdot a_x=xj\]Thus, $x\geq n$ so $x=n$ and $a_n=j$. Now, note that $a_y=n-1$ for some $j<y<n$. Thus,
\[n\cdot j=n\cdot a_n\geq y\cdot a_y = y\cdot (n-1)\geq (j+1)(n-1)=nj+n-j-1\geq nj+n-(n-2)-1=nj+1\]Thus, $nj\geq nj+1$, a contradiction. Thus, there are no solutions for $j\leq n-2$. To recap, $a_n=a_{n-1}+a_{n-2}+0=a_{n-2}+a_{n-2}$, so our induction is complete.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Eyed
1065 posts
#5 • 8 Y
Y by VulcanForge, tree_3, centslordm, Smileyklaws, Deemaths, ImSh95, grey_hat_hacker, MS_asdfgzxcvb
Solved with nukelauncher

We claim the answer is $F_{n+1}$, where $F_1=F_2=1$ and $F_n=F_{n-1}+F_{n-2}$ for $n\geq3$ are the Fibonacci numbers. We prove this by induction on $n$, with the base cases of $n=1,2$ being trivially true.

Claim:
$n\in\left\{ a_{n-1},a_n \right\}$.

Proof.
Suppose not. Then let $a_k=n$. Note that none of $1,2,\dots,k-1$ are elements of $\left\{ a_{k+1},a_{k+2},\dots,a_n \right\}$ as that would contradict the given inequality. Therefore, $\left\{ a_{k+1},\dots,a_n \right\}$ is a permutation of $\left\{ k,k+1,\dots,n-1 \right\}$. We must have $a_n=k$ to satisfy the inequality for $na_n\geq ka_k$, but then this implies that we have the equality \[ka_k=(k+1)a_{k+1}=\dots=na_n,\]a clear contradiction when $k<n-1$. $\blacksquare$

With the claim, the number of permutations for $n$ is the sum of the number of permutations for the cases of $n-2$ and $n-1$ by taking cases on whether $a_n=n$ or $a_{n-1}=n$ and $a_n=n-1$. This completes the inductive step, so we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#6 • 6 Y
Y by centslordm, Wizard0001, ImSh95, mijail, alexgsi, Marshall_Huang
Claim: We have $n\in \{a_{n-1},a_n\}$.

Proof: Suppose instead that $a_x=n$ and $x \le n-2$. For all $y>x$, we have
\[ xn = xa_x \le ya_y \le na_y \implies a_y \ge x. \]Therefore,
\[ \{a_{x+1},a_{x+2},\ldots, a_{n-1}\} = \{x,x+1,\ldots,n-1\}. \]In particular, $a_z=x$ for some $z>x$. Then
\[ xn = xa_x \le za_z=zx \implies n \le z \implies z=n. \]So $a_n=x$. Now,
\[ xn = xa_x \le \cdots \le na_n = nx, \]so actually $ia_i=xn$ for all $x\le i\le n$. Now the finish is easy. We have $(n-1)a_{n-1} = nx$, so $n-1 \mid nx$, so $n-1\mid x$. But $x\le n-2$, contradiction. $\blacksquare$
If $a_n=n$, then there are $f(n-1)$ ways for the first $n-1$. If $a_{n-1}=n$, then $a_n=n-1$, and there are $f(n-2)$ ways for the first $n-2$. Hence $f(n)=f(n-1)+f(n-2)$, and since $f(1)=f(2)=1$, we have $f(n) = F_{n+1}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathaddiction
308 posts
#7 • 3 Y
Y by centslordm, ImSh95, Marshall_Huang
The answer is $F_{n+1}$, the $(n+1)^{th}$ Fibonacci number.
Let $a_1,...,a_n$ be such a permutation.
Claim.
(i) $a_i\geq i-1$
(ii) $a_i\leq i+1$

Proof.
(i) If $a_i\leq i-2$, we prove by backward induction that $a_j\leq j-2$ for all $1\leq j\leq i$. If $a_i=i-2$, then
$$(i-1)a_{i-1}\leq ia_i=i(i-2)$$hence $a_{i-1}<i-1$, which implies $a_i\leq i-3$. If $a_i\leq i-3$ then
$$(i-1)a_{i-1}\leq ia_i=i(i-3)$$hence $a_{i-1}<i-2$, which implies $a_{i-1}\leq i-3$ as desired. But this is obviously impossible since $a_2\leq 0$.
(ii) Suppose on the contrary that $a_i\geq i+2$, then $a_{i+1}\geq i+1$, hence at least one of $1,...,i$, say $k$ is not in $a_1,...,a_{i-1}$. Suppose $a_j=k$, then $j\geq i+2$, contradiction. $\blacksquare$
Now it is easy to see that the permutation consists of only $2$-cycles $(i,i+1)$ and fixed points, and conversely every such permutation satisfies the condition.
We count the number of such permutation, denote it by $x_n$. If $a_1=2$ then there are $x_{n-2}$ ways to permute $\{3,..,n\}$, and if $a_1=1$ there are $x_{n-1}$ ways to permute $\{2,...,n\}$. Hence
$$x_n=x_{n-1}+x_{n-2}$$combine with the obvious fact that $x_1=1$ and $x_2=2$ we have $x_n=F_{n+1}$ as desired.
This post has been edited 2 times. Last edited by mathaddiction, Jul 20, 2021, 11:45 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SnowPanda
186 posts
#8 • 2 Y
Y by ImSh95, Marshall_Huang
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lneis1
243 posts
#9 • 2 Y
Y by ImSh95, Marshall_Huang
Let $a_j=n$
First we will show that $j \leq n-2$
If $j < i< n$ then $a_i > j$ because $jn \leq ia_i < na_i$

Also $a_n > j$ because $na_n\geq (n-1)a_{n-1} > nj$.

But notice that $a_j, a_{j+1}, a_{j+2}, \cdot \cdot \cdot a_n$ are $(n-1)(j+1)-nj=n-j+1$ numbers which are all greater than $j$,
Whereas there are only $n-j$ such values.

Hence we get that $n$ can only be placed in the last two positions.

So let $S_n$ denote the total no of permutations satisfying the condition for n numbers.
Now $(a_1,a_2,a_3...a_{n-1},n)$ first keep $n$ constant so we will have $S_{n-1}$ such permutations
And then consider $(a_1, a_2, a_3...., n, n-1)$ which is $S_{n-2}$

So $S_n=S_{n-1}+S_{n-2}$ which is indeed the $(n+1)th$ Fibonacci number.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
554183
484 posts
#10 • 2 Y
Y by ImSh95, Marshall_Huang
Pretty easy.
Let the number of permutations be $x_n$. We claim that $x_n = F_{n+1}$ (the $n+1$th Fibonacci number).
Claim : if $a_i =n$, then $i \in \{n-1, n\}$.
Proof : FTSOC assume $a_i = n, i \leq n-2$. Then we must have $a_{i+1} \geq \frac{in}{i+1} >i \implies a_{i+1} \geq i+1$. Now $a_{i+2} \geq \frac{(i+1)^2}{i+2} > i \implies a_{i+2} \geq i+1$. Now we either have $a_{i+2} \geq i+2$ or $a_{i+2}=i+1$. But if $a_{i+2}=i+1, a_{i+1}=i+2$ for size reasons. Now note that $a_{i+3} \geq \frac{(i+1)(i+2)}{i+3} > i \implies a_{i+3} \geq i+3$. Continuing this till $n$, we see that $a_n \geq n$, or that $a_n=n-1$ and $a_{n-1}=n$. Either way, this is a contradiction.

To finish, note that if $a_n=n$ we have $x_{n-1}$ sequences, and if $a_{n-1}=n, a_n=n-1$ for size reasons, so we have $x_{n-2}$ sequences. We get $x_{n}=x_{n-1}+x_{n-2}$, and seeing $x_1 =1, x_2=2$, we are done !
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
#11 • 2 Y
Y by ImSh95, Marshall_Huang
Let $X_n$ denote the total number of permutation of $[n]$ with the given property.Let $b_n$ denote the number of permutation of $[n]$ with the given property with $a_n=n$ and $c_n$ denote the number of permutation of $[n]$ with the given property with $a_n\ne n$.Then,
$$X_n=b_n+c_n =X_{n-1}+c_n$$Now we will try to find out recursion for $c_n$

Claim: If $a_m=n$ then $a_n=m$.

Proof. If $a_m=n$ then,
$$mn=ma_m\le (m+1)a_{m+1}\le\dots\le na_n$$.
So $m+r\le n$ so the above relation implies $a_{m+r}\ge m$ for $r=1,2,\dots,n-m$.
But then $\{a_{m+1},a_{m+2}\dots a_n\}=\{m,m+1,m+2,\dots,n-1\}$ [becoz size of both set are equal].
But then $$a_{m+r}=m\implies m(m+r)\ge ma_m=mn\implies {m+r}\ge n$$So indeed $m+r=n$ $\blacksquare$

So, $ma_m=(m+1)a_{m+1}=(m+2)a_{m+2}=\dots =na_n=mn$
In particular,$(n-1)a_{n-1}=nm$.Since $\gcd(n,n-1)=1$ so $n\mid a_{n-1}$.This is possible only when $a_{n-1}=n$.In particular,$m=n-1$.
So $c_n=X_{n-2}$ because $a_{n-1}=n\implies a_n=(n-1)$ for size reason.
So $X_n=X_{n-1}+X_{n-2}$ .
Now $X_1=1$ and $X_{2}= 2$ implies $X_n=F_{n+1}$.Where $F_n$ is $n$th Fibonacci number. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Spacesam
596 posts
#12 • 2 Y
Y by ImSh95, Marshall_Huang
We will induct. We establish the base cases first: for $n = 1$ and $n = 2$, the answers are $1$ and $2$, respectively, and we claim that the answer is $F_{n + 1}$ where $F_0 = 0$, $F_1 = 1$, $F_2 = 1$, etc.

Proceed by strong induction. For the inductive step of $i - 1$ to $i$, the idea is to consider where the largest element $i$ could go. It can obviously go at the end; this reduces to the $i - 1$ case, contributing $F_i$.

Additionally, it can also go one place before the end, so the second to last product is $i(i - 1)$. As a result, this forces $i(i - 1) \leq ia_i$, so $i - 1 \leq a_i$ and so $a_i = i - 1$, reducing to the $i - 2$ case. This contributes $F_{i - 1}$. The key claim now which finishes the problem is as follows:

Claim: There are no other positions for $i$ that work other than the two named above.

Assume that $a_k = i$ where $k \leq i - 2$. The idea is to consider what the minimum of $a_{k + 1}, a_{k + 2}, \cdots, a_i$ is. Observe that this minimum element is at most $k$ since there are $i - k$ elements from $a_{k + 1}$ to $i$. Consequently, we know that the elements from $a_{k + 1}$ to $a_i$ are forced to be some permutation of $(k, k + 1, \cdots, i - 1)$ with $a_i = k$.

Since $a_k = a_i$, we know that every term in between must be equal to them as well. Now, we just need to consider where the $i - 1$ element goes. By our logic above, we can write $(i - 1) \cdot a = ki$ for some integer $a$. However, $\gcd(i, i - 1) = 1$, so we know $i - 1 \mid k$, implying $i - 1 \leq k$, contradiction. $\square$

Thus we are done since $F_{i - 1} + F_i = F_{i + 1}$.
This post has been edited 1 time. Last edited by Spacesam, Jul 21, 2021, 10:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yofro
3153 posts
#13 • 2 Y
Y by ImSh95, Marshall_Huang
The answer is the $n+1$th Fibonacci number. I prove this with strong induction. Let $P(n)$ be the number of ways to do so. The base cases are easy since
$$P(1)=|\{1\}|=1=F_2$$$$P(2)=|\{1,2\}, \{2,1\}|=2=F_3$$We do casework on the index of $n$. If $n$ is at the last position, there are $P(n-1)$ ways. If $n$ is at the second-to-last position, $n-1$ must be at the last position, hence there are $P(n-2)$ ways. I now prove that $n$ cannot be at any other position, effectively solving the problem.

Suppose the contrary. Clearly, $n$ cannot be at the first position. Hence there is a valid sequence of the first $k$ numbers, then $n$, then a jumble of the other numbers. Consider the number $k+1$. Let's say its at index $r$. Then
$$n(k+1)\le (k+1)r$$$$n\le r$$$$r=n$$Hence $k+1$ is the last number. Suppose that the number at index $n-1$ is $r$. Thus
$$(n-1)r\le(k+1)n$$But $k+2\le r$, hence
$$(k+2)(n-1)\le (k+1)n$$$$nk+2n-k-2\le nk+n$$$$n\le k+2$$Meaning that there are at least $n-2$ numbers before the number $n$, i.e. $n$ is at one of the last two spots, as desired.
This post has been edited 1 time. Last edited by yofro, Jul 22, 2021, 4:19 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hakN
429 posts
#14 • 2 Y
Y by ImSh95, Marshall_Huang
For $m \leq n$, let $f_m(n)$ denote the number of permutations of the set $\{m,m+1, \dots , n\}$ such that $ma_m \leq (m+1)a_{m+1} \leq \dots \leq na_n$. We will prove that $f_i(n) = f_{i+1}(n) + f_{i+2}(n)$ for all $1 \leq i \leq n-2$. Now fix some $1 \leq i \leq n-2$.
Let $a_k = i$. If $k = i$, then we are left with $f_{i+1}(n)$ such permutations. Let $k > i$. Then we have $k\cdot a_k = k \cdot i \geq (k-1) \cdot a_{k-1} \ge(k-1) \cdot (i+1) \iff k \leq i + 1$.
So we have $k = i+1$, in other words $a_{i+1} = i$. Then $ia_i \leq (i+1)i \implies a_i \leq i+1 \implies a_i = i+1$. So $a_i = i+1$ and $a_{i+1} = i$ and we are left with $f_{i+2}(n)$ such permutations. Thus we have proved the claim.
Now define a sequence as $F_1 = 1 , F_2 = 1,$ and $F_n = F_{n-1} + F_{n-2}$ for all $n \geq 3$. It is easy to see that $f_n(n) = 1$ and $f_{n-1}(n) = 2$.
Thus, we have $f_1(n) = F_{n+1}$. Also it is well known that $F_n = \frac{(\frac{1 + \sqrt{5}}{2})^n - (\frac{1 - \sqrt{5}}{2})^n}{\sqrt{5}}$.
So, our answer is $F_{n+1} = \frac{(\frac{1 + \sqrt{5}}{2})^{n+1} - (\frac{1 - \sqrt{5}}{2})^{n+1}}{\sqrt{5}}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rustam
348 posts
#15 • 2 Y
Y by ImSh95, Marshall_Huang
This problem was used in 2017 Uzbekistan young mathematicians olympiad, but it was take from Crux.
Z K Y
G
H
=
a