We have your learning goals covered with Spring and Summer courses available. Enroll today!

G
Topic
First Poster
Last Poster
k a March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/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, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
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
Tuesday, Mar 25 - Jul 8
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
Sunday, Mar 23 - Jul 20
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
Sunday, Mar 16 - Jun 8
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
Monday, Mar 17 - Jun 9
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
Sunday, Mar 2 - Jun 22
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
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
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
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
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
Sunday, Mar 23 - Aug 3
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
Sunday, Mar 16 - Aug 24
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
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
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
Sunday, Mar 23 - Jun 15
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
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
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
Monday, Mar 24 - Jun 16
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
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
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
Mar 2, 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
SONG circle?
YaoAOPS   1
N an hour ago by bin_sherlo
Source: own?
Let triangle $ABC$ have incenter $I$ and intouch triangle $DEF$. Let the circumcircle of $ABC$ intersect $(AEF)$ at $S$ and have center $O$. Let $N$ be the midpoint of arc $BAC$ on the circumcircle. Suppose quadrilateral $SONG$ is cyclic such that $X = SN \cap OG$ lies on $BC$. Show that $\angle XGD = 90^\circ$.
1 reply
YaoAOPS
3 hours ago
bin_sherlo
an hour ago
A touching question on perpendicular lines
Tintarn   1
N an hour ago by Mathzeus1024
Source: Bundeswettbewerb Mathematik 2025, Round 1 - Problem 3
Let $k$ be a semicircle with diameter $AB$ and midpoint $M$. Let $P$ be a point on $k$ different from $A$ and $B$.

The circle $k_A$ touches $k$ in a point $C$, the segment $MA$ in a point $D$, and additionally the segment $MP$. The circle $k_B$ touches $k$ in a point $E$ and additionally the segments $MB$ and $MP$.

Show that the lines $AE$ and $CD$ are perpendicular.
1 reply
Tintarn
Mar 17, 2025
Mathzeus1024
an hour ago
Inequality with ordering
JustPostChinaTST   7
N an hour ago by AshAuktober
Source: 2021 China TST, Test 1, Day 1 P1
Given positive integers $m$ and $n$. Let $a_{i,j} ( 1 \le i \le m, 1 \le j \le n)$ be non-negative real numbers, such that
$$ a_{i,1} \ge a_{i,2} \ge \cdots \ge a_{i,n} \text{ and } a_{1,j} \ge a_{2,j} \ge \cdots \ge a_{m,j} $$holds for all $1 \le i \le m$ and $1 \le j \le n$. Denote
$$ X_{i,j}=a_{1,j}+\cdots+a_{i-1,j}+a_{i,j}+a_{i,j-1}+\cdots+a_{i,1},$$$$ Y_{i,j}=a_{m,j}+\cdots+a_{i+1,j}+a_{i,j}+a_{i,j+1}+\cdots+a_{i,n}.$$Prove that
$$ \prod_{i=1}^{m} \prod_{j=1}^{n} X_{i,j} \ge \prod_{i=1}^{m} \prod_{j=1}^{n} Y_{i,j}.$$
7 replies
JustPostChinaTST
Mar 17, 2021
AshAuktober
an hour ago
D1010 : How it is possible ?
Dattier   13
N an hour ago by Dattier
Source: les dattes à Dattier
Is it true that$$\forall n \in \mathbb N^*, (24^n \times B \mod A) \mod 2 = 0 $$?

A=1728400904217815186787639216753921417860004366580219212750904
024377969478249664644267971025952530803647043121025959018172048
336953969062151534282052863307398281681465366665810775710867856
720572225880311472925624694183944650261079955759251769111321319
421445397848518597584590900951222557860592579005088853698315463
815905425095325508106272375728975

B=2275643401548081847207782760491442295266487354750527085289354
965376765188468052271190172787064418854789322484305145310707614
546573398182642923893780527037224143380886260467760991228567577
953725945090125797351518670892779468968705801340068681556238850
340398780828104506916965606659768601942798676554332768254089685
307970609932846902
13 replies
Dattier
Mar 10, 2025
Dattier
an hour ago
Find min
hunghd8   8
N an hour ago by imnotgoodatmathsorry
Let $a,b,c$ be nonnegative real numbers such that $ a+b+c\geq 2+abc $. Find min
$$P=a^2+b^2+c^2.$$
8 replies
hunghd8
Yesterday at 12:10 PM
imnotgoodatmathsorry
an hour ago
Nice function question
srnjbr   1
N an hour ago by Mathzeus1024
Find all functions f:R+--R+ such that for all a,b>0, f(af(b)+a)(f(bf(a))+a)=1
1 reply
srnjbr
6 hours ago
Mathzeus1024
an hour ago
Inequality and function
srnjbr   5
N an hour ago by pco
Find all f:R--R such that for all x,y, yf(x)+f(y)>=f(xy)
5 replies
srnjbr
Yesterday at 4:26 PM
pco
an hour ago
Difficult factorization
Dakernew192   1
N an hour ago by Thursday
x^5-2x+6
1 reply
Dakernew192
Jan 8, 2024
Thursday
an hour ago
every point is colored red or blue
Sayan   8
N 2 hours ago by Mathworld314
Source: ISI(BS) 2005 #9
Suppose that to every point of the plane a colour, either red or blue, is associated.

(a) Show that if there is no equilateral triangle with all vertices of the same colour then there must exist three points $A,B$ and $C$ of the same colour such that $B$ is the midpoint of $AC$.

(b) Show that there must be an equilateral triangle with all vertices of the same colour.
8 replies
Sayan
Jun 23, 2012
Mathworld314
2 hours ago
Isogonal conjugates
drmzjoseph   4
N 3 hours ago by Geometrylife
Source: Maybe own
Let $ABC$ a triangle with circumcircle $\Gamma$ and isogonal conjugates $P$ and $Q$. Take $X$ and $Y$ points on $AB$ and $BC$ respectively such that $\angle PXA=\angle CYQ$. If $\odot(PXA)$ cut $\Gamma$ again at $R$. Prove that $RY$ and $QA$ cut at $\Gamma$

If $P$ and $Q$ are external just read it by directed angles
Btw i found this using well-known lemma so it might not be mine
4 replies
drmzjoseph
Mar 10, 2025
Geometrylife
3 hours ago
Combinatorics Geometry
Wasdshift   0
3 hours ago
Source: 2011 All-Russian MO Regional Grade 9 P3
“A closed non-self-intersecting polygonal chain is drawn through the centers of some squares on the $8\times 8$ chess board. Every link of the chain connects the centers of adjacent squares either horizontally, vertically or diagonally, where the two squares are adjacent if they share an edge or a corner. For the interior polygon bounded by the chain, prove that the total area of black pieces equals the total area of white pieces. “
Can I have a hint for this problem please?
Click to reveal hidden text
0 replies
Wasdshift
3 hours ago
0 replies
9 Three concurrent chords
v_Enhance   4
N 3 hours ago by cosmicgenius
Three distinct circles $\Omega_1$, $\Omega_2$, $\Omega_3$ cut three common chords concurrent at $X$. Consider two distinct circles $\Gamma_1$, $\Gamma_2$ which are internally tangent to all $\Omega_i$. Determine, with proof, which of the following two statements is true.

(1) $X$ is the insimilicenter of $\Gamma_1$ and $\Gamma_2$
(2) $X$ is the exsimilicenter of $\Gamma_1$ and $\Gamma_2$.
4 replies
v_Enhance
Yesterday at 8:45 PM
cosmicgenius
3 hours ago
Integral with dt
RenheMiResembleRice   2
N 3 hours ago by RenheMiResembleRice
Source: Yanxue Lu
Solve the attached:
2 replies
RenheMiResembleRice
Today at 3:02 AM
RenheMiResembleRice
3 hours ago
Show these 2 circles are tangent to each other.
MTA_2024   1
N 3 hours ago by MTA_2024
A, B, C, and O are four points in the plane such that
\(\angle ABC > 90^\circ\)
and
\( OA = OB = OC \).

Let \( D \) be a point on \( (AB) \), and let \( (d) \) be a line passing through \( D \) such that
\( (AC) \perp (DC) \)
and
\( (d) \perp (AO) \).

The line \( (d) \) intersects \( (AC) \) at \( E \) and the circumcircle of triangle \( ABC \) at \( F \) (\( F \neq A \)).

Show that the circumcircles of triangles \( BEF \) and \( CFD \) are tangent at \( F \).
1 reply
MTA_2024
Yesterday at 1:12 PM
MTA_2024
3 hours ago
IMO Shortlist 2009 - Problem N4
April   12
N Mar 19, 2025 by asdf334
Find all positive integers $n$ such that there exists a sequence of positive integers $a_1$, $a_2$,$\ldots$, $a_n$ satisfying: \[a_{k+1}=\frac{a_k^2+1}{a_{k-1}+1}-1\] for every $k$ with $2\leq k\leq n-1$.

Proposed by North Korea
12 replies
April
Jul 5, 2010
asdf334
Mar 19, 2025
IMO Shortlist 2009 - Problem N4
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
April
1270 posts
#1 • 3 Y
Y by Amir Hossein, dien9c, Adventure10
Find all positive integers $n$ such that there exists a sequence of positive integers $a_1$, $a_2$,$\ldots$, $a_n$ satisfying: \[a_{k+1}=\frac{a_k^2+1}{a_{k-1}+1}-1\] for every $k$ with $2\leq k\leq n-1$.

Proposed by North Korea
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Rust
5049 posts
#2 • 1 Y
Y by Adventure10
Let $b_k=a_{k-1}-a_k$, then
${b_{k+1}=\frac{(b_k+2)a_k+b_k}{a_k+b_k+1}<b_k+2}$.
Therefore if $a_1=N^2,a_2=N^2-1$, then $a_3>N^2-2^2,a_4>N^2-3^2,...a_{N+1}>N^2-N^2=0.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#3 • 6 Y
Y by Amir Hossein, nikgran, IFA, Adventure10, and 2 other users
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.
JuanOrtiz
366 posts
#4 • 4 Y
Y by Polynom_Efendi, Arshia.esl, Adventure10, Mango247
This is like a "troll" problem. Very simple, but it is stated in such a way that it tricks you into trying other stuff that doesn't work.

The answer is $4$. It is easy to see that if there were $5$, then we would have two even distinct numbers $n$ and $m$ (either $a_2$ and $a_3$ or $a_3$ and $a_4$) satisfying $n+1 | m^2+1$ and $m+1 | n^2+1$. But this is impossible. To prove this, take the least two such numbers $n$ and $m$ (with $n+m$ minimal), and take $m'=(n^2+1)/(m+1)-1$, with $m \textgreater n$. It is easy to see $(n,m')$ also satisfies and that $m' \textless m$. So we must have $m'=0$ so $n^2+1=m+1$ so $n^2=m$, which is easy to discard. So the answer must be at most $4$.

To find such a sequence of 4, one must prove a nontrivial ($n^2 \neq m \neq \sqrt{n}$, $n,m \ge 3$) solution to $n+1 | m^2+1$ and $m+1 | n^2+1$ (where they are both odd), exists. I initially thought they didn't exist. Later I did some casework and found a solution. The smallest such solution is $33$, $217$. I doubt the problem requires you to find this value, so I guess there's an easier way to prove these numbers exist.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
william122
1576 posts
#5 • 1 Y
Y by Adventure10
The answer is $n\le 4$, which is achievable with the sequence $4,33,217,1384$.

First, suppose that $a_i$ is odd. Then, we need $2|a_{i+1}^2+1$, so $a_{i+1}\equiv 1\pmod 2$. So, an odd number must follow an odd number. However, $a_{i+1}^2+1\equiv 2\pmod 4$, so $\frac{a_{i+1}^2+1}{a_i+1}\equiv 1\pmod 2\implies 2|a_{i+2}$. Therefore, $a_{i+3}$ cannot exist. So, if $a_i$ is an odd, then $n\le i+2$.

Suppose, then, that $2|a_1,a_2$. Then, we need $a_1+1|a_2^2+1$, and $$a_2+1|a_3^2+1=\left(\frac{a_2^2-a_1}{a_1+1}\right)^2+1\implies a_2+1\bigg|a_2^4-2a_2^2a_1+2a_1^2+2a_1+1\implies a_2+1|2a_1^2+2\implies a_2+1|a_1^2+2$$So, we have two even numbers such that $a+1|b^2+1,b+1|a^2+1$. I claim that no such pair exists, which we can do with Vieta Jumping. Suppose there exists such $a,b$, and consider the pair which minimizes $a+b$. Also, WLOG $b\le a$ and define $k=\frac{b^2+1}{a+1}-1$. Of course, $k\in2\mathbb{Z}^+$, since if $a=b^2$, then $b+1|b^4+1\iff b+1|2$, which is a contradiction. Furthermore, $k=\frac{b^2-a}{a+1}<\frac{a^2+a}{a+1}=a$, and $$k^2+1=\left(\frac{b^2-a}{a+1}\right)^2+1=\frac{b^4-2b^2a+2a^2+2a+1}{(a+1)^2}=\frac{(b+1)(b^3-b^2+(2-2a)b+(2a-2))+2(a^2+1)}{(a+1)^2}$$As $\gcd(b+1,a+1)|\gcd(b+1,b^2+1)=1$ and $b+1|a^2+1$, we must have that $b+1|k^2+1$. So, $(k,b)$ satisfies our conditions, and $k<a$, so minimality is contradicted. Therefore, if $2|a_{k-1},a_k$, then $a_{k+1}$ cannot exist.

Given these restrictions, our sequence can start like: OE, OOE, EE, EOE, EOOE, giving it a maximum length of 4, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
TheUltimate123
1740 posts
#6 • 1 Y
Y by Soundricio
Solved with goodbear, Th3Numb3rThr33.

The answer is \(n\le4\), achieved by \(4\), \(33\), \(217\), \(1384\). First observe that
  • \(a_{k-1}\) odd and \(a_k\) even imply \(a_{k+1}\) does not exist;
  • \(a_{k-1}\) odd and \(a_k\) odd imply \(a_{k+1}\) even;
  • \(a_{k-1}\) even and \(a_k\) odd imply \(a_{k+1}\) odd.
  • \(a_{k-1}\) even and \(a_k\) even imply \(a_{k+1}\) even.
Hence unless the sequence is forever even, its maximum length is four.

Lemma: If \(a\), \(b\) are even, then \(a+1\mid b^2+1\) and \(b+1\mid a^2+1\) cannot simultaneously hold.

Proof. The proof is Vieta jumping: take the minimal pair \((a,b)\), and let \[\frac{b^2+1}{a+1}=m+1\quad\text{and}\quad\frac{a^2+1}{b+1}=n+1.\]We cannot simultaneously have \(m\ge a\) and \(n\ge b\), so without loss of generality \(m<a\).

Note \(\gcd(a,b+1)=\gcd(a+1,b+1)=1\) since \(b+1\mid a^2+1\), \(a\mid a^2\), \(a+1\mid a^2-1\). By design, \(m+1\mid b^2+1\) and \[m^2+1\equiv\left(\frac{b^2+1}{a+1}-1\right)^2+1\equiv\left(\frac{1-a}{1+a}\right)^2+1\equiv\frac{-2a}{2a}+1\equiv0\pmod{b+1},\]so \((m,b)\) is a smaller pair that works. \(\blacksquare\)

But if the sequence is all even and has length at least four, then both \(a_2+1\mid a_3^2+1\) and \(a_3+1\mid a_2^2+1\) hold, contradiction.
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
Y by
The answer is $n=3$ and $n=4$. Notice that by taking $(a_1,a_2,a_3,a_4)=(4,33,217,1384)$, the condition is satisfied.
Now notice that if such sequence exists for $n$ then we can simply take its first $m(m<n)$ terms to form a sequence with $m$ terms. Hence it suffices to show that there does not exist such a sequence for $n=5$. Suppose on the contrary that such a sequence exists for $n=5$.

CLAIM 1. Both $a_1$ and $a_2$ are even
Proof. This is just simple case work. We call an integer $i$ bad if $a_i$ is odd and $a_{i+1}$ is even. Notice that if $1\leq i\leq 3$ is bad, then
$$a_{i+2}=\frac{a_{i+1}^2+1}{a_i+1}-1$$can not be an integer since $a_{i+1}^2+1$ is odd while $a_i+1$ is even, contradiction.
Now
1. If $a_1$ is odd while $a_2$ is even then $1$ is bad, contradiction.
2. If both $a_1$ and $a_2$ is odd then $a_3$ is even, hence $2$ is bad, contradiction.
3. If $a_1$ is even while $a_2$ is odd then it is easy to see that $a_3$ is odd. Now notice that $$a_4=\frac{a_3^2+1}{a_2+1}-1$$Notice that $a_3^2+1\equiv 2\pmod 4$. Hence $a_4$ is even. This implies that $3$ is bad, contradiciton.
This justifies the claim.

CLAIM 2. $a_2+1|(a_1^2+1)$
Proof. Let $k=a_1+1$. We first show that $(k,a_2+1)=1$. Indeed if $p|k$ and $p|a_2+1$, from $a_1+1|a_2^2+1$ we have
$$0\equiv a_2^2+1\equiv (-1)^2+1\equiv 2\pmod p$$Hence $p=2$. But from CLAIM 1 we show that $k$ is odd, contradiction.
Therefore, the inverse of $k$ modulo $a_2+1$ exists. Now using $a_3=\frac{a_2^2+1}{a_1+1}$ we obtain
\begin{align*}
0&\equiv a_3^2+1\\
&\equiv ((-1)^2+1)k^{-1}-1)^2+1\\
&\equiv 4k^{-2}-4k^{-1}+2\\
&\equiv 4k^{-2}(1-k)+2\pmod{a_2+1}
\end{align*}Hence
\begin{align*}
4k^{-2}(k-1)&\equiv 2\pmod{a_2+1}\\
4(k-1)&\equiv 2k^2\pmod{a_2+1}\\ 
2((k-1)^2+1)&\equiv 0\pmod{a_2+1}\\
a_1^2+1&\equiv 0\pmod{a_2+1}
\end{align*}since $a_2+1$ is odd.

Now let $x=a_1+1$ and $y=a_2+1$. Then $(x,y)$ satisfies the system
$$x|(y-1)^2+1$$$$y|(x-1)^2+1$$Since $(x,y)=1$ we have
\begin{align}
xy|(x+y-1)^2+1
\end{align}CLAIM 3. The only positive integer solution to $(1)$ is $(1,1)$.
Proof. We will use the infinite descent method. WLOG assume $x\geq y$.Suppose that there exists another solution to $(1)$ other than $(1,1)$. We pick the one such that $x$ is minimized.
Notice that
$$(x+y-1)^2+1\equiv (x-1)^2+(y-1)^2\pmod xy$$Hence we have $$kxy=(x-1)^2+(y-1)^2$$for some $k\in\mathbb N$. Now since this is an quadratic equation in $x$ there exists another root $x'$ which satisfies
\begin{align*}
x+x'&=2+ky\\
xx'&=(y-1)^2+1\\
\end{align*}From these we see that $x'$ is a positive integer. Moreover
$$x'=\frac{(y-1)^2+1}{x}\leq\frac{(x-1)^2+1}{x}<x$$From the minimality of $x$ we have $x'=1$. Hence $y=1$. From $(1)$ we have $x=1$, contradiciton.

Therefore we must have $a_1=a_2=0$, contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Al3jandro0000
804 posts
#9
Y by
There are no $(m,n)\in (2\mathbb N)^2$ such that $m+1\mid n^2+1$ and $n+1\mid m^2+1$.

Suppose there exists with $m+n$ minimal and $WLOG: m>n$. Notice
$$(m+1)(n+1)\mid m^2+n^2$$So indeed $m^2+n^2=kmn+km+kn+k$ for some positive integer $k$. So
$$m^2-(kn+k)m+n^2-kn-k=0$$Let $m_0$ be the other root. It follows $m+m_0=k(n+1)$ and $mm_0+k(n+1)=n^2<m^2\implies m_0<m$. By $m+n$ minimal we get that if $m_0\in\mathbb N$ this implies $m_0$ is odd. But so $0\equiv n^2\equiv mm_0+m+m_0\mod 4$ indeed $mm_0\equiv -(m+m_0)\mod 4$ but we have an odd part in $RHS$ and even in $LHS$ contradiction indeed $m_0\in\mathbb Z^-$. So it follows $mm_0+m+m_0=n^2>0$ so $mm_0>-(m+m_0)$ which is a clearly contradiction since $|mm_0|>|m+m_0|$.

Note: This solution works if $\gcd(m+1,n+1)=1$.
This post has been edited 1 time. Last edited by Al3jandro0000, Jul 28, 2020, 3:08 AM
Reason: Change > for <
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 • 4 Y
Y by farhad.fritl, Mango247, Mango247, Mango247
I proved that $n\geq 5$ fails, and I got stuck on $n=4$ case. I tried to prove that "There is not odd $a,b$ such that \(a+1\mid b^2+1\) and \(b+1\mid a^2+1\)". But I coldn't prove it, because it is not true. So I want to know the motivaton behind finiding example for $n=4$, because to find it you need to check numbers, but there are a lot of numbers until valid one.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1198 posts
#11
Y by
Jalil_Huseynov wrote:
I proved that $n\geq 5$ fails, and I got stuck on $n=4$ case. I tried to prove that "There is not odd $a,b$ such that \(a+1\mid b^2+1\) and \(b+1\mid a^2+1\)". But I coldn't prove it, because it is not true. So I want to know the motivaton behind finiding example for $n=4$, because to find it you need to check numbers, but there are a lot of numbers until valid one.

https://www.imo-official.org/problems/IMO2009SL.pdf See Comment 1
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1668 posts
#12
Y by
It is not possible for $n\ge 5$. If it were possible then $(a_1+1)(a_3+1)=a^2+1$, $(a_2+1)(a_4+1)=a^3+1$, and $(a_3+1)(a_5+1)=a^4+1$. Note that in the equation $(x+1)(z+1)=y^2+1$, if $x$ and $z$ were both odd then $4\mid y^2+1$ which is impossible. Furthermore, if $x$ or $z$ were odd then $y$ is odd. If $x$ and $z$ are even then $y$ is even. We know that of $a_2$ or $a_4$, one is even, so $a_3$ must be also even. WLOG, $a_2$ is even with $a_3$. Then, we have $a_2+1\mid a_3^2+1$ and $a_3+1\mid a_2^2+1$ and both are even. We prove that no such pair $(a_2,a_3)$ can exist.

Suppose it does exist then select the minimal pair $(a,b)$. If $a=b$ then $a+1\mid a^2+1$ which implies $a=1$, so WLOG let $a>b$. Let $(a+1)(c+1)=b^2+1$. Since $a>b$, we have $c<b$. We already know that $c+1\mid b^2+1$. We'll show that $(c,b)$ is a smaller pair by looking at $c^2+1\pmod {b+1}$. Note that $b^2\equiv 1\pmod {b+1}$. We have
\[c^2+1=\left(\frac{b^2+1}{a+1}-1\right)^2+1\equiv\left(\frac{a-1}{a+1}\right)^2+1\equiv\frac{a^2-2a+1}{a^2+2a+1}+1\pmod{b+1}\]but since $a^2\equiv -1\pmod {b+1}$ we have that this is equivalent to $0$ so we constructed a smaller pair. Since $c$ must also be even, this is a contradiction.

For $n\le 4$ consider the sequence: $12,57,249,1068$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vsamc
3783 posts
#13
Y by
Solution
This post has been edited 1 time. Last edited by vsamc, Jun 4, 2024, 8:55 PM
Reason: a_4 = 1384 not 1385 oops forgot to subtract by 1
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7586 posts
#14
Y by
not writing a solution i guess but okay these strange divisibility conditions should encourage me to brainstorm vieta jumping in the future i guess okay coolio
Z K Y
N Quick Reply
G
H
=
a