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 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
weird conditions in geo
Davdav1232   2
N 29 minutes ago by teoira
Source: Israel TST 7 2025 p1
Let \( \triangle ABC \) be an isosceles triangle with \( AB = AC \). Let \( D \) be a point on \( AC \). Let \( L \) be a point inside the triangle such that \( \angle CLD = 90^\circ \) and
\[
CL \cdot BD = BL \cdot CD.
\]Prove that the circumcenter of triangle \( \triangle BDL \) lies on line \( AB \).
2 replies
Davdav1232
May 8, 2025
teoira
29 minutes ago
Long FE with f(0)=0
Fysty   4
N an hour ago by MathLuis
Source: Own
Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ satisfying $f(0)=0$ and
$$f(f(x)+xf(y)+y)+xf(x+y)+f(y^2)=x+f(f(y))+(f(x)+y)(f(y)+x)$$for all $x,y\in\mathbb{R}$.
4 replies
Fysty
May 23, 2021
MathLuis
an hour ago
Inspired by old results
sqing   1
N an hour ago by sqing
Source: Own
Let $ a,b> 0. $ Prove that
$$  \frac{a^3}{b^3+ab^2}+ \frac{4b^3}{a^3+b^3+2ab^2}\geq \frac{3}{2}$$$$\frac{a^3}{b^3+(a+b)^3}+ \frac{b^3}{a^3+(a+b)^3}+ \frac{(a+b)^2}{a^2+b^2+ab} \geq \frac{14}{9}$$
1 reply
sqing
2 hours ago
sqing
an hour ago
Quadruple isogonal conjugate inside cyclic quad
Noob_at_math_69_level   8
N 2 hours ago by awesomeming327.
Source: DGO 2023 Team & Individual P3
Let $ABCD$ be a cyclic quadrilateral with $M_1,M_2,M_3,M_4$ being the midpoints of segments $AB,BC,CD,DA$ respectively. Suppose $E$ is the intersection of diagonals $AC,BD$ of quadrilateral $ABCD.$ Define $E_1$ to be the isogonal conjugate point of point $E$ in $\triangle{M_1CD}.$ Define $E_2,E_3,E_4$ similarly. Suppose $E_1E_3$ intersects $E_2E_4$ at a point $W.$ Prove that: The Newton-Gauss line of quadrilateral $ABCD$ bisects segment $EW.$

Proposed by 土偶 & Paramizo Dicrominique
8 replies
Noob_at_math_69_level
Dec 18, 2023
awesomeming327.
2 hours ago
Interesting inequality
sqing   3
N 3 hours ago by sqing
Source: Own
Let $ a,b,c\geq  0 , a^2+b^2+c^2 =3.$ Prove that
$$ a^4+ b^4+c^4+6abc\leq9$$$$ a^3+ b^3+  c^3+3( \sqrt{3}-1)abc\leq 3\sqrt 3$$
3 replies
sqing
Yesterday at 2:54 AM
sqing
3 hours ago
2-var inequality
sqing   12
N 3 hours ago by sqing
Source: Own
Let $ a,b>0 , a^2+b^2-ab\leq 1 . $ Prove that
$$a^3+b^3 -\frac{a^4}{b+1}  -\frac{b^4}{a+1} \leq 1 $$
12 replies
sqing
May 27, 2025
sqing
3 hours ago
Sum of whose elements is divisible by p
nntrkien   46
N 3 hours ago by Jackson0423
Source: IMO 1995, Problem 6, Day 2, IMO Shortlist 1995, N6
Let $ p$ be an odd prime number. How many $ p$-element subsets $ A$ of $ \{1,2,\dots,2p\}$ are there, the sum of whose elements is divisible by $ p$?
46 replies
nntrkien
Aug 8, 2004
Jackson0423
3 hours ago
Graph Theory
achen29   4
N 4 hours ago by ABCD1728
Are there any good handouts or even books in Graph Theory for a beginner in it? Preferable handouts which are extensive!
4 replies
achen29
Apr 24, 2018
ABCD1728
4 hours ago
Guess period of function
a1267ab   10
N 4 hours ago by cosmicgenius
Source: USA TST 2025
Let $n$ be a positive integer. Ana and Banana play a game. Banana thinks of a function $f\colon\mathbb{Z}\to\mathbb{Z}$ and a prime number $p$. He tells Ana that $f$ is nonconstant, $p<100$, and $f(x+p)=f(x)$ for all integers $x$. Ana's goal is to determine the value of $p$. She writes down $n$ integers $x_1,\dots,x_n$. After seeing this list, Banana writes down $f(x_1),\dots,f(x_n)$ in order. Ana wins if she can determine the value of $p$ from this information. Find the smallest value of $n$ for which Ana has a winning strategy.

Anthony Wang
10 replies
a1267ab
Dec 14, 2024
cosmicgenius
4 hours ago
interesting geo config (2/3)
Royal_mhyasd   1
N 6 hours ago by Royal_mhyasd
Source: own
Let $\triangle ABC$ be an acute triangle and $H$ its orthocenter. Let $P$ be a point on the parallel through $A$ to $BC$ such that $\angle APH = |\angle ABC-\angle ACB|$. Define $Q$ and $R$ as points on the parallels through $B$ to $AC$ and through $C$ to $AB$ similarly. If $P,Q,R$ are positioned around the sides of $\triangle ABC$ as in the given configuration, prove that $P,Q,R$ are collinear.
1 reply
Royal_mhyasd
6 hours ago
Royal_mhyasd
6 hours ago
interesting geo config (1\3)
Royal_mhyasd   0
6 hours ago
Source: own
Let $\triangle ABC$ be an acute triangle with $AC > AB$, $H$ its orthocenter and $O$ it's circumcenter. Let $P$ be a point on the parallel through $A$ to $BC$ such that $\angle APH = \angle ABC - \angle ACB$ and $P$ and $C$ are on different sides of $AB$. Denote by $S$ the intersection of the circumcircle of $\triangle ABC$ and $PA'$, where $A'$ is the reflection of $H$ over $BC$, $M$ the midpoint of $PH$, $Q$ the intersection of $OA$ and the parallel through $M$ to $AS$, $R$ the intersection of $MS$ and the perpendicular through $O$ to $PS$ and $N$ a point on $AS$ such that $NT \parallel PS$, where $T$ is the midpoint of $HS$. Prove that $Q, N, R$ lie on a line.

fiy it's 2am and i'm bored so i decided to look further into this interesting config that i had already made some observations on, maybe this problem is trivial from some theorem so if that's the case then i'm sorry lol :P i'll probably post 2 more problems related to it soon, i'd say they're easier than this though
0 replies
Royal_mhyasd
6 hours ago
0 replies
Parallel lines..
ts0_9   9
N 6 hours ago by OutKast
Source: Kazakhstan National Olympiad 2014 P3 D1 10 grade
The triangle $ABC$ is inscribed in a circle $w_1$. Inscribed in a triangle circle touchs the sides $BC$ in a point $N$. $w_2$ — the circle inscribed in a segment $BAC$ circle of $w_1$, and passing through a point $N$. Let points $O$ and $J$ — the centers of circles $w_2$ and an extra inscribed circle (touching side $BC$) respectively. Prove, that lines $AO$ and $JN$ are parallel.
9 replies
ts0_9
Mar 26, 2014
OutKast
6 hours ago
KMN and PQR are tangent at a fixed point
hal9v4ik   4
N Yesterday at 11:08 PM by OutKast
Let $ABCD$ be cyclic quadrilateral. Let $AC$ and $BD$ intersect at $R$, and let $AB$ and $CD$ intersect at $K$. Let $M$ and $N$ are points on $AB$ and $CD$ such that $\frac{AM}{MB}=\frac{CN}{ND}$. Let $P$ and $Q$ be the intersections of $MN$ with the diagonals of $ABCD$. Prove that circumcircles of triangles $KMN$ and $PQR$ are tangent at a fixed point.
4 replies
hal9v4ik
Mar 19, 2013
OutKast
Yesterday at 11:08 PM
one cyclic formed by two cyclic
CrazyInMath   40
N Yesterday at 10:58 PM by HamstPan38825
Source: EGMO 2025/3
Let $ABC$ be an acute triangle. Points $B, D, E$, and $C$ lie on a line in this order and satisfy $BD = DE = EC$. Let $M$ and $N$ be the midpoints of $AD$ and $AE$, respectively. Suppose triangle $ADE$ is acute, and let $H$ be its orthocentre. Points $P$ and $Q$ lie on lines $BM$ and $CN$, respectively, such that $D, H, M,$ and $P$ are concyclic and pairwise different, and $E, H, N,$ and $Q$ are concyclic and pairwise different. Prove that $P, Q, N,$ and $M$ are concyclic.
40 replies
CrazyInMath
Apr 13, 2025
HamstPan38825
Yesterday at 10:58 PM
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.
Acclab
33 posts
#65 • 1 Y
Y by Marshall_Huang
Main claim: $a_n$ is a valid permutation iff $|a_i-i| \leq 1 \; \forall i$ :D . FTSoC suppose $|a_i - i| \geq 2$ for some $i$, write $a_i = i+k$ with $k \geq 2$, and further require such $k$ to be maximal. By the Pigeonhole principle, it is possible to choose $ \phi \geq i$ so that $a_\phi \leq i$. Then since $\phi \geq i$, $$\phi a_{\phi} \geq i a_i = i(i+k).$$Suppose $a_\phi = i-t$, then $\phi \geq i+k+t$ as otherwise $\phi a_\phi < (i+k+t)(i-t) = i(i+k) - tk - t \leq i(i+k).$

Futhermore, we claim $|a_\phi - \phi| > k$ even if $t = 0$ ($t > 0$ is trivial). That is, $\phi > i+k+t$ is strict as otherwise $$\phi a_\phi = (i+k)i, ia_i = (i+1)a_{i+1} = ... = (i+k)a_{i+k} = i(i+k).$$This is contradictive if $k \geq 2$, as $gcd(i, i+1) = 1$ so $a_i = i+1 = i+k$ implying $k=1$, so $|a_\phi - \phi| > k$, contraditing with maximality. The converse is easy to check, as
$$ ia_i \leq i(i+1) = (i+1)((i+1)-1) \leq (i+1)a_{i+1}$$for any $1 \leq i \leq n$.

Now consider $p_n$ to be the number of such permutations. By combinatorics reasoning, if $a_n = n$ then there are $p_{n-1}$ ways of valid permutation, and if $a_n = n-1$, $a_{n-1} = n$ and we have $p_{n-2}$ ways. So $p_n = p_{n-1} + p_{n-2}$. It's easy to check $p_1 = 1$ and $p_2 = 2$, so $p_n = F_{n+1}$, 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.
shendrew7
799 posts
#66 • 1 Y
Y by Marshall_Huang
We prove the answer is $f(n) = \boxed{F_{n+1}}$ through recursion, starting by noting trivial base cases $n=1$ and $n=2$.

Our problem can be translated to selecting $n$ numbers from each row of an $n \times n$ multiplication table such that each cell is in a distinct column and the entries are in weakly increasing order. We consider the number selected in the last column:
  • $n^2$: The remaining $n-1$ numbers have $f(n-1)$ permutations.
  • $n(n-1)$: We're forced to select $n(n-1)$ from the $(n-1)$-th column too, leaving $f(n-2)$ possibilities.
  • $n(n-k)$ for $k \ge 2$: Consider the selections from row $n-k+1$ to row $n$, which must be at least $n(n-k)$. Since we clearly can't select $n(n-k)$ on row $n$, as this forces equality to holds on all rows in between, we are left with a $k \times (k-1)$ rectangle of potential cells. Attempting to select $k$ cells in distinct rows and columns results in a Pigeonhole contradiction.

Hence we get $f(n) = f(n-1)+f(n-2)$, as desired. $\blacksquare$
This post has been edited 1 time. Last edited by shendrew7, Apr 23, 2024, 3:50 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PennyLane_31
77 posts
#67 • 2 Y
Y by Thelink_20, Marcos_Vinicius
For each $n\in\mathbb{Z^*_+}$, let $P_n$ be the number of permutations of $\{1,2,3,\dots, n\}$ such that \[a_1\le 2a_2\leq 3a_3\le\dots na_n\]
Afirmation: $P_n= F_{n+1}$, where $F_n$ denotes the $n$th Fibonacci.

Proof: Induction in $n$

(I) Base case:
$n= 2$, we have two possible permutations: $\{1,2\}$ and $\{2,1\}$, note that $1\cdot 1\le 2\cdot 2$ and $1\cdot 2\le 2\cdot 1$. So, $P_2= 2= F_3$.


(ii) Hypothesis: Assuming the lemma is valid for all $m\le n-1$ $m\in\mathbb{Z^*_+}$, we will prove it is valid for $n$.

We have two cases:

If $a_n= n$, then we need to choose $\{1,2,\dots, n-1\}$ for $a_1, a_2, \dots, a_{n-1}$. So, there are $P_{n-1}$ possible permutations.

If $a_n= n-i$, with $i\in\{1,2,\dots, n-1\}$, then we know that

$(n-1)a_{n-1}\le na_n= n(n-i)\implies \dfrac{a_{n-1}}{n-i}\le 1+\dfrac{1}{n-1}$.

If $a_{n-1}\ge n-i+1\implies \dfrac{n-i+1}{n-i}\le \dfrac{a_{n-1}}{n-i}\le 1+\dfrac{1}{n-1}\implies n-1\le n-i\implies i\le 1\therefore i=1$.

So, $a_n= n-1$ and $a_{n-1}= n$. Indeed, this gives us a solution, because we now have $\{1,2,3,\dots, n-2\}$ for $a_1, a_2, \dots, a_{n-2}$, which leads us to $P_{n-2}$ possible permutations.

Now, if $a_{n-1}\le n-i-1$. Let $a_{n-1}= n-j$, with $j\ge i+1$.

Observe that $(n-2)a_{n-2}\le (n-1)a_{n-1}= (n-j)(n-1)\implies \dfrac{a_{n-2}}{n-j}\le \dfrac{n-1}{n-2}= 1+\dfrac{1}{n-2}$.

If $a_{n-2}\geq n-j+1$ ($a_{n-2}\neq a_{n-1}$), thus $1+\dfrac{1}{n-j}=\dfrac{n-j+1}{n-j}\le\dfrac{a_{n-2}}{n-j}\le 1+\dfrac{1}{n-2}$

$\implies n-2\le n-j\implies j\le 2\implies j=2\implies i=1$.

Finally, $a_n= n-1$ and $a_{n-1}= n-2$. Also, we get that $a_{n-2}\ge n-2+1= n-1\implies a_{n-2}= n$.

But $a_{n-2}(n-2)= n(n-2)\leq a_{n-1}(n-1)= (n-2)(n-1)\implies n\le n-1$, absurd!
So, we must have $a_{n-2}\le n-j-1$. Inductively, we will have that $a_1<a_2<a_3<\dots<a_{n-2}<a_{n-1}<a_n$. One number is missing! As $a_n\neq n$, then $n$ would appear somewhere, but with this ordination is impossible! Contradiction!

Therefore, $P_n= P_{n-1}+P_{n-2}$, $\forall n$. As $P_2= 2$ and $P_3=3$, we get that $P_n= F_{n-1}$, QED $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
L13832
268 posts
#68
Y by
Almost similar to the solutions above but i'll still post it becoz i spent an hour solving it and another to write it...
The answer is $A_n=F_{n+1}$, the ${n+1}^{th}$ Fibonacci number (this can be checked by going upto $n=5$) where $A_n$ denotes the number of permutations.
CLAIM: $a_i\neq n$ for $1\le i\le n-2$.
PROOF: Note that if $a_i \le k-2$, then $a_k=k-2$ or $a_k \le k-3$. If $a_k = k -2$, then we have
\[ a_{k-1} (k-1)  < (k-1)^2 \implies a_{k-1} < k-1 \implies a_{k-1} \le k-2.\]If $a_k = k-2$, then $a_{k-1} \ne k-2$, hence $a_{k-1} \le k-3$. Otherwise if $a_k \le k-3$, then we have
\[ a_{k-1}  (k-1) \le k(k-3) < (k-1)(k-2) \implies a_{k-1} < k-2 \implies a_{k-1} \le k-3.\]This is a contradiction, so the only remaining cases to be checked are $a_{n-1}=n$ or $a_n=n$ which is trivial recurrence. Hence, $A_n=A_{n-1}+A_{n-2}$ where $A_1=1$ and $A_2=2$ so $\boxed{A_n=F_{n+1}}$.
This post has been edited 2 times. Last edited by L13832, Jul 13, 2024, 6:14 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PEKKA
1850 posts
#69
Y by
The answer is $F_{n+1},$ where $F_k$ is the kth Fibonacci number.
The key claim is that in any permutation that works (interchangeable with the description "is good"), $n=a_{n-1}$ or $n=a_n.$
FTSOC assume there is a $k$ with $1 \le k \le n-2$ such that we have a good permutation and $a_{k}=n.$
First, we establish that all the numbers $a_i$ with index higher than $k$ must be at least $k,$ else there is a value $m$ such that $ma_m<kn,$ which does not happen in a good permutation.
Then the only option for $a_n$ is $k,$ as a lower index causes the $ia_i$ value to be less than $kn.$
Then, every number in between must have the exact value $kn.$
However, any permutation of the numbers that are at least $k$ into the indices $a_{k+1}, a_{k+2}\dots a_n$ is $\sum _{i=1}^{k}(n-k+i)(n-i)$ by the rearrangement inequality. This sum equals $kn(n-k)+\frac{k^2(k+1)}{2},$ which exceeds $kn(n-k).$
This is a contradiction.
Therefore, $n=a_{n-1}$ or $n=a_n.$
Now we use induction to count the number of permutations.
Base case: $n=2,3.$ These cases are true, verified on paper (too lazy to type)
Inductive step: Assume for the values $n=k-1,k$ there are $F_k$ and $F_{k+1}$ good permutations. Now consider $n=k+1.$
In the case of $n=a_{n-1},$ $a_n=n-1$ is the only option, then the earlier terms are permuted in $F_k$ ways
When $a_n=n,$ the earlier terms are permuted in $F_{k+1}$ ways.
Therefore, in total for the $k+1$ case there are $F_k+F_{k+1}=F_{k+2}$ total ways to permute, completing the induction. Q.E.D.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
qwertyuiop123456789
6 posts
#70
Y by
Click to reveal hidden text
I think just split into 2 cases whether $a_n$ and $a_{n-1}$ are $n$ and $n-1$ or not.
Maybe induction is also ok?
Btw I am a noob at LaTeX so I can't type my solution out
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
401 posts
#71
Y by
Our answer is $\text{F}_{n + 1}$, with $\text{F}_0 = 1, \text{F}_1 = 2$. Let $F_n$ denote the number of permutations for $n$. First off, if $n$ is in $n ^{\text{th}}$ spot, then the number of permutations is simply $\text{F}_{n - 1}$, since $n^2 > (n - 1)^2$. If $n$ is the $(n - 1)^{\text{th}}$ spot, then $n - 1$ is forced to be in the $n^{\text{th}}$ spot, since $n(n - 1) > n(n - 2)$. Now, our number of permutations is simply $F_{n - 2}$, as $n(n - 1) > (n - 2)^2$.

Now, we claim that $n$ can't be in the spots $1, 2, \dots, n - 2$. Say $n$ is in the $(n - k) ^ {\text{th}}$ spot, where $k \geq 2$. Observe that $n(n - k) > (n - k - 1)n$, so numbers $\leq n - k - 1$, can't be in the spots ahead of where $n$ is positioned. So $n - k, n - k + 1, ..., n - 1$, are forced to be in the spots ahead of $n$. Note that $n - k$ is forced to be in the $n^{\text{th}}$ spot, and since $n(n - k) < (n - k + 1)(n - 1)$, we have a contradiction.

So, $\text{F}_n = \text{F}_{n - 1} + \text{F}_{n - 2}$, and 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.
MathWithAnE
7 posts
#72
Y by
Counting solution :coolspeak:
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1310 posts
#73
Y by
The answer is $F_{n + 1}$ where $F_i$ is the $i$th Fibonacci number. We prove this by induction. The base cases of $n = 1,2$ are trivial.

Inductive Step: We consider the placement of the element $n$. If it is in the end, we get $F_{n}$ valid sequences. If it is second to the end, we must have $a_n \cdot n \ge n(n - 1)$, forcing $a_n = n - 1$, so we just need the condition to hold for the first $n - 2$ elements, giving another $F_{n - 1}$ valid sequences. We now claim that $n$ cannot be placed any further back. Assume for the sake of contradiction that it is placed at $n - k$. Then we have $k$ elements less than $n$ after $n$, at least one of these $a_i$ is at most $n - k$. If it is less than $n - k$, we would have $n(n - k) > ia_i$, since $n \ge i, n - k > a_i$, so it must be exactly $n - k$ (furthermore all of these elements located after $n$ are at least $n - k$ to satisfy the inequality). Furthermore, since $i(n - k) \ge (n - k)n$, we have $i \ge n$, forcing $ i = n$. So we have for $n > i >  n - k$, $ na_n \ge ia_i \ge (n - k)a_{n - k}$, so $ia_i = n(n - k)$, however just consider when $a_i = n -1$, we must have $ i > n - k$ since the elements located after $n$ are all the elements from $n - 1$ to $n - k$ in some order. Then we have $ia_i \ge (n - 1)(n - k + 1) = n^2 - kn + k  - 1 > (n)(n - k)$, contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bonime
38 posts
#74
Y by
Let $f(n)$ be the number of permutations satisfying the statement. The answer is $\boxed{f(n)=F_{n+1}=\frac{(\frac{1+\sqrt{5}}{2})^{n+1}-(\frac{1-\sqrt{5}}{2})^{n+1}}{\sqrt{5}}}$

We´re prove it by a strong induction in $n$:

Base Case: For $n=1$ we just have the permutation {1}, so, $f(1)=F_2=1$. For $n=2$ we have {1,2} and {2,1}, so $f(2)=F_3=2$. $\blacksquare$

Induction Hypothesis: Assume the afirmation is valid for all $m\leq n-1$.

Inductive Step: Let´s prove the following lemma:

Lemma: In a permutation such that \[a_1\le 2a_2\leq 3a_3\le\dots na_n\]we just can have $n=a_{n-1}$ or $n=a_n$

Proof: FTSoC, assume that we can have $n=a_{n-2}$. Clearly, if this case is impossible, the other ones will be too. Look at the position of $n-2$ in that permutation: Since $n(n-2)>(n-1)(n-2)$ for $n>2$, we must have $a_n=n-2$. But, note that we won´t have numbers to place in $a_{n-1}$ since $(n-2)a_{n-2}=n^2-2n$ and $na_n=n^2-2n$, so we´ll must have $(n-1)a_{n-1}=n^2-2n$ but $(n-1)\nmid n^2-2n$ for $n>1$. Contradiction! $\blacksquare$

Therefore, if $n+a_n$, we´ll have $f(n-1)=F_n$ permutations for the other numbers and if $n=a_{n-1}$, we´ll must have $a_n=n-1$ therefore we´re going to have $f(n-2)=F_{n-1}$ permutations. Hence by the additive principle, $f(n)=f(n-1)+f(n-2)=F_n+F_{n-1}=F_{n+1}=\frac{(\frac{1+\sqrt{5}}{2})^{n+1}-(\frac{1-\sqrt{5}}{2})^{n+1}}{\sqrt{5}}$ as we wanted to show $\blacksquare$
This post has been edited 1 time. Last edited by Bonime, Oct 31, 2024, 10:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
203 posts
#75
Y by
Note that the largest number $n$ could either be in position $n-1$ or position $n$ because if it is in position $n-2$ then we must have $n-1$ in position $n-1$ and that doesn't work as $(n-1)^2=n^2-2n+1 > n(n-2)=n^2-2n$. Further note that if $n$ is in position $n-1$ then $n-1$ must be in position $n$, and that $(n-2)^2 =n^2-4n+4 \leq (n-1)n=n^2-n$ for all $n \geq 3$.

Thus, if we let $p_n$ denote the number of valid permutations for $1,2,\ldots, n$ we must have that $p_n=p_{n-1}+p_{n-2}$ for all $n \geq 3$. The base cases are $p_1=1, p_2=2$ (easily derivable manually) so $p_n=f_{n+1}$ where $f_i$ is the $i$th fibonacci number indexed at $1$.
This post has been edited 1 time. Last edited by de-Kirschbaum, Feb 26, 2025, 8:53 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
636 posts
#76
Y by
The answer is $F_{n+1}$ in the notation of fibonacci numbers. Let the answer be $x_n$. Basically if $n$ pairs with $n$, then we only need to decide the rest and we can ignore the last one, giving $x_{n-1}$. If $n$ pairs with $n-1$, then $n-1$ must pair with $n$. The rest are then indepdent giving $x_{n-2}$. If $n$ pairs with $n-2$ then to satisfy the condition $n-1$ must pair with $n-1$ which leaves nothing for $n$ which works. Then $x_n = x_{n-1} + x_{n-2}$ and the rest is trivial.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
575 posts
#77
Y by
We claim that the answer is $\boxed{F_{n+1}}$ where $F_n$ is the $n$th Fibonacci Number. We proceed with induction. The base cases, $n=1, 2$ are trivial, so if the proposition holds for $n \leq k-1$ where $k \geq 3$ then for $n=k,$ suppose that $a_r=k$ with $r < k.$ Then $ra_r=rk,$ so all $\ell < r$ must have occured somewhere in $a_x$ with $x < r.$ Therefore for the inequalities to hold $a_k=r,$ so $$rk=ra_r \leq (r+1)a_{r+1} \leq \cdots \leq (k-1)a_{k-1} \leq ka_k=kr.$$Hence equality holds so $(k-1)a_{k-1} = kr.$ But $\gcd(k, k-1) = 1 \implies (k-1) | r \implies r=k-1.$ Therefore $a_{k-1}=k, a_k=k-1$ and by the inductive hypothesis there are $F_{k-1}$ ways. But if $a_r=k$ with $r=k$ by the inductive hypothesis there are $F_k$ ways, so adding yields $F_k+F_{k-1}=F_{k+1}$ ways. QED
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SYBARUPEMULA
26 posts
#78
Y by
Claim: $a_j \geq j - 1$, for $1 \leq j \leq n$.
For $j = 1$ is trivial. Assume FTSOC, $a_i \leq i - 2$ for some $i \geq 2$. Thus
$$(i-1)a_{i-1} \leq i\cdot a_{i} \Rightarrow a_{i-1} \leq \frac{i}{i-1} \cdot a_i < a_i + 1$$The last inequality is true as $i - a_i > 1 \Rightarrow i - a_i - 1 > 0 \Rightarrow i\cdot a_i + i - a_i - 1 > i\cdot a_i \Rightarrow (a_i + 1)(i - 1) > i\cdot a_i$ where $a_i, i > 0$. Hence as $a_{i-1} < a_i + 1$ and $a_{i-1} \neq a_i$, then $a_{i-1} \leq a_i - 1 \leq a_i - 3$. Continuing this gives $a_1 \leq -2$. Contradiction. So our claim proved.

Then with our claim, $a_n = n$ or $a_n = n-1$. Denote $b_n$ as the number permutations $(a_1, a_2, ..., a_n)$.
If $a_n = n$, the number permutation is simply $b_{n-1}$.

If $a_n = n-1$, there must exist $k$ such that $a_k = k - 1, a_{k-1} = n$. To prove this, this is because $a_n = n -1$, the value of $a_{n-1} = n-2$ or $a_{n-1} = n$. If $a_{n-1} = n-2$, the value of $a_{n-2}=n-3$ or $a_{n-2}=n$. If $a_{n-1}=n$, thus we are done. Repeating the same process until $a_{k-1} = n$, hence our statement was proved. Thus,
$$(k-1)a_{k-1} \leq k\cdot a_k \Rightarrow (k-1)n \leq k(k-1)$$.
This gives $k \geq n$, hence $k = n$, so $a_{n-1} = n$. Thus, the number permutation in this case is $b_{n-2}$.

Then, we have $b_n = b_{n-1} + b_{n-2}$. It's easy to see that $b_1 = 1, b_2 = 2$. Thus, $b_n = F_{n+1}$ where $F_n$ denote the $n$-th Fibonacci number.
This post has been edited 1 time. Last edited by SYBARUPEMULA, May 17, 2025, 12:40 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
maromex
224 posts
#79
Y by
Let $P(n)$ denote the answer to this question for each positive integer $n.$

First, in the cases $n = 1$ and $n = 2,$ check all permutations to see that $P(1) = 1$ and $P(2) = 2.$

Now assume $n \ge 3.$ We will do cases on which of the $a_i$ is equal to $n.$

If $a_n = n,$ then notice that $(n-1)a_{n-1} \le (n-1)(n-1) < n^2,$ so the last inequality is always true. The count of the number of ways to permute $a_1, a_2, \ldots a_{n-1},$ to make the rest of the inequalities true, is equal to $P(n-1).$

If $a_{n-1} = n,$ then notice that $(n-1)n \le na_n \le n(n-1),$ which implies $a_n = n-1.$ Then, $(n-2)a_{n-2} \le (n-2)(n-2) < (n-1)n,$ so the second last inequality is true. The count of the number of ways to permute $a_1, a_2, \ldots a_{n-2},$ to make the rest of the inequalities true, is equal to $P(n-2).$

Now for the "other" case: suppose that for some $m < n-1$ we have $a_m  = n.$ Notice that, for all $m+1 \le k \le n,$ we must have $mn \le ka_k.$ Because there are $n - m$ different $a_k$ and all of them must be different and at most $n-1,$ one of them must be $m$ or less. In order to have $mn \le ka_k$ for the $k$ such that $a_k \le m,$ we have \[mn \le ka_k \le km \le mn \implies k = n \text{ and } a_k = m.\]Therefore, we have $na_n = mn.$ This causes us to have $mn \le ka_k \le mn$ for all $m+1 \le k \le n-1,$ therefore $ka_k = mn.$ But if we choose $k = n - 1,$ we get \[ a_k = \frac{mn}{n-1} = m + \frac{m}{n-1}.\]This is not an integer because $m < n-1,$ so we have a contradiction; this case's assumption is false.

We conclude that $P(n) = P(n-2) + P(n-1)$ for all $n \ge 3.$ Therefore the values of $P(n)$ follow the Fibonacci sequence.
Z K Y
N Quick Reply
G
H
=
a