Plan ahead for the next school year. Schedule your class today!

G
Topic
First Poster
Last Poster
k a July Highlights and 2025 AoPS Online Class Information
jwelsh   0
Jul 1, 2025
We are halfway through summer, so be sure to carve out some time to keep your skills sharp and explore challenging topics at AoPS Online and our AoPS Academies (including the Virtual Campus)!

[list][*]Over 60 summer classes are starting at the Virtual Campus on July 7th - check out the math and language arts options for middle through high school levels.
[*]At AoPS Online, we have accelerated sections where you can complete a course in half the time by meeting twice/week instead of once/week, starting on July 8th:
[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC Problem Series[/list]
[*]Plus, AoPS Online has a special seminar July 14 - 17 that is outside the standard fare: Paradoxes and Infinity
[*]We are expanding our in-person AoPS Academy locations - are you looking for a strong community of problem solvers, exemplary instruction, and math and language arts options? Look to see if we have a location near you and enroll in summer camps or academic year classes today! New locations include campuses in California, Georgia, New York, Illinois, and Oregon and more coming soon![/list]

MOP (Math Olympiad Summer Program) just ended and the IMO (International Mathematical Olympiad) is right around the corner! This year’s IMO will be held in Australia, July 10th - 20th. Congratulations to all the MOP students for reaching this incredible level and best of luck to all selected to represent their countries at this year’s IMO! Did you know that, in the last 10 years, 59 USA International Math Olympiad team members have medaled and have taken over 360 AoPS Online courses. Take advantage of our Worldwide Online Olympiad Training (WOOT) courses
and train with the best! Please note that early bird pricing ends August 19th!
Are you tired of the heat and thinking about Fall? You can plan your Fall schedule now with classes at either AoPS Online, AoPS Academy Virtual Campus, or one of our AoPS Academies around the US.

Our full course list for upcoming classes is below:
All classes start 7:30pm ET/4:30pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
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
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
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
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
Sunday, Oct 19 - Jan 25
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
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
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, 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!)
Sat & Sun, Sep 13 - Sep 14 (1:00 - 4:00 PM PT/4:00 - 7:00 PM ET)

Intermediate: Grades 8-12

Intermediate Algebra
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, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Wednesday, Sep 24 - Dec 17

Precalculus
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

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

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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
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
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
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
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
Tuesday, Sep 2 - Nov 18

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

Intermediate Programming with Python
Friday, Oct 3 - Jan 16

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

Physics

Introduction to Physics
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26
0 replies
jwelsh
Jul 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
Find all functions
tranthanhnam   56
N 15 minutes ago by Fly_into_the_sky
Source: Balkan MO 2000, problem 1 and 1997, problem 4 (!!)
Find all functions $f: \mathbb R \to \mathbb R$ such that \[ f( xf(x) + f(y) ) = f^2(x) + y \] for all $x,y\in \mathbb R$.
56 replies
1 viewing
tranthanhnam
Oct 16, 2005
Fly_into_the_sky
15 minutes ago
Peru IMO TST 2023
diegoca1   1
N 31 minutes ago by straight
Source: Peru IMO TST 2023 D1 P3
Find all positive integers $k$ such that the sequence $a_n = \binom{2n}{n}$, $n \geq 0$, is periodic modulo $k$ from some point onward; that is, there exists a positive integer $n_0 > 0$ such that the sequence $ a_n $ , for $n \geq n_0$ , is periodic modulo $k$.
1 reply
diegoca1
an hour ago
straight
31 minutes ago
Peru IMO TST 2023
diegoca1   0
37 minutes ago
Source: Peru IMO TST 2023 D2 P1
Let \( n > 1 \) be an integer. Isaac wants to cover an \( n \times n \) board with some tiles, without overlaps and without going off the board. For this purpose, Isaac has many tiles of the form:
(See attachment)
Each of these tiles covers exactly $4$ squares of the board. Isaac is allowed to choose any tile and, with a straight cut, divide the tile into two new tiles. Each new tile must be able to cover exactly an integer number of squares of the board. For which values of \( n \) is it possible for Isaac to achieve his goal by making at most two cuts?
0 replies
diegoca1
37 minutes ago
0 replies
Kazakhstan 2012 ( Grade 10 problem 5)
ts0_9   6
N an hour ago by Fly_into_the_sky
Function $ f:\mathbb{R}\rightarrow\mathbb{R} $ such that $f(xf(y))=yf(x)$ for any $x,y$ are real numbers. Prove that $f(-x) = -f(x)$ for all real numbers $x$.
6 replies
ts0_9
May 20, 2012
Fly_into_the_sky
an hour ago
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 D1 P2
Let $n$ be a positive integer. On an $n \times n$ board, players $A$ and $B$ take turns in a game. On each turn, a player selects an edge of the board (not on the board border) and makes a cut along that edge. If after the move the board is split into more than one piece, then that player loses the game.

Player $A$ moves first. Depending on the value of $n$, determine whether one of the players has a winning strategy.
0 replies
diegoca1
2 hours ago
0 replies
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 D1 P1
Let $ \alpha > 0 $. Prove that there exist positive integers $m$ and $n$ such that:
\[
\left| \alpha - \frac{m}{n} \right| < \frac{1}{m}.
\]
0 replies
diegoca1
2 hours ago
0 replies
Functional equation
avatarofakato   4
N 2 hours ago by Fly_into_the_sky
Source: Polish MO second round 2012
$f,g:\mathbb{R}\rightarrow\mathbb{R}$ find all $f,g$ satisfying $\forall x,y\in \mathbb{R}$:
\[g(f(x)-y)=f(g(y))+x.\]
4 replies
avatarofakato
Feb 19, 2012
Fly_into_the_sky
2 hours ago
2011 Lusophon Mathematical Olympiad - Problem 6
nunoarala   10
N 2 hours ago by miloss.delfosontop
Source: 2011 Lusophon Mathematical Olympiad - Problem 6
Let $d$ be a positive real number. The scorpion tries to catch the flea on a $10\times 10$ chessboard. The length of the side of each small square of the chessboard is $1$. In this game, the flea and the scorpion move alternately. The flea is always on one of the $121$ vertexes of the chessboard and, in each turn, can jump from the vertex where it is to one of the adjacent vertexes. The scorpion moves on the boundary line of the chessboard, and, in each turn, it can walk along any path of length less than $d$.
At the beginning, the flea is at the center of the chessboard and the scorpion is at a point that he chooses on the boundary line. The flea is the first one to play. The flea is said to escape if it reaches a point of the boundary line, which the scorpion can't reach in the next turn. Obviously, for big values of $d$, the scorpion has a strategy to prevent the flea's escape. For what values of $d$ can the flea escape? Justify your answer.
10 replies
nunoarala
Sep 17, 2011
miloss.delfosontop
2 hours ago
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 pre-selection P4
Prove that, for every integer $n \geq 3$, there exist $n$ positive composite integers that form an arithmetic progression and are pairwise coprime.

Note: A positive integer is called composite if it can be expressed as the product of two integers greater than 1.
0 replies
diegoca1
2 hours ago
0 replies
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 pre-selection P3
Let $n$ be a positive integer and $\mathcal{A}$ an alphabet with $n$ letters. Find the largest positive integer $k$ (as a function of $n$) for which there exists a sequence of letters $A_1, A_2, \ldots, A_k$ satisfying the following conditions:
a) $A_i \in \mathcal{A}$, for all $1 \leq i \leq k$.
b) $A_j \ne A_{j+1}$, for all $1 \leq j \leq k - 1$.
c) There do not exist indices $1 \leq p < q < r < s \leq k$ such that $A_p = A_r$ and $A_q = A_s$.
0 replies
diegoca1
2 hours ago
0 replies
Polynomial Squares
zacchro   28
N 2 hours ago by KevinYang2.71
Source: USA December TST for IMO 2017, Problem 3, by Alison Miller
Let $P, Q \in \mathbb{R}[x]$ be relatively prime nonconstant polynomials. Show that there can be at most three real numbers $\lambda$ such that $P + \lambda Q$ is the square of a polynomial.

Alison Miller
28 replies
zacchro
Dec 11, 2016
KevinYang2.71
2 hours ago
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 pre-selection P2
In the Cartesian plane, a point is called integer if its coordinates are integers. A triangle with integer vertices has exactly 3 integer points in its interior and exactly 8 integer points on its perimeter (including the vertices). If the incenter of the triangle is an integer point and the other 2 interior integer points lie on its incircle, find the lengths of the triangle’s sides.
0 replies
diegoca1
2 hours ago
0 replies
IMO ShortList 1999, combinatorics problem 2
orl   11
N 2 hours ago by heheman
Source: IMO ShortList 1999, combinatorics problem 2
If a $5 \times n$ rectangle can be tiled using $n$ pieces like those shown in the diagram, prove that $n$ is even. Show that there are more than $2 \cdot 3^{k-1}$ ways to file a fixed $5 \times 2k$ rectangle $(k \geq 3)$ with $2k$ pieces. (symmetric constructions are supposed to be different.)
11 replies
orl
Nov 14, 2004
heheman
2 hours ago
Peru IMO TST 2023
diegoca1   0
2 hours ago
Source: Peru IMO TST 2023 pre-selection P1
Let $x, y, z$ be non-negative real numbers such that $x + y + z \leq 1$. Prove the inequality
\[
6xyz \leq x(1 - x) + y(1 - y) + z(1 - z),
\]and determine when equality holds.
0 replies
diegoca1
2 hours ago
0 replies
n-term Sequence
MithsApprentice   15
N May 29, 2025 by Ilikeminecraft
Source: USAMO 1996, Problem 4
An $n$-term sequence $(x_1, x_2, \ldots, x_n)$ in which each term is either 0 or 1 is called a binary sequence of length $n$. Let $a_n$ be the number of binary sequences of length $n$ containing no three consecutive terms equal to 0, 1, 0 in that order. Let $b_n$ be the number of binary sequences of length $n$ that contain no four consecutive terms equal to 0, 0, 1, 1 or 1, 1, 0, 0 in that order. Prove that $b_{n+1} = 2a_n$ for all positive integers $n$.
15 replies
MithsApprentice
Oct 22, 2005
Ilikeminecraft
May 29, 2025
Source: USAMO 1996, Problem 4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MithsApprentice
2390 posts
#1 • 5 Y
Y by GammaBetaAlpha, Adventure10, jhu08, Mango247, GA34-261
An $n$-term sequence $(x_1, x_2, \ldots, x_n)$ in which each term is either 0 or 1 is called a binary sequence of length $n$. Let $a_n$ be the number of binary sequences of length $n$ containing no three consecutive terms equal to 0, 1, 0 in that order. Let $b_n$ be the number of binary sequences of length $n$ that contain no four consecutive terms equal to 0, 0, 1, 1 or 1, 1, 0, 0 in that order. Prove that $b_{n+1} = 2a_n$ for all positive integers $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SamE
1402 posts
#2 • 7 Y
Y by Delray, MathbugAOPS, Adventure10, jhu08, myh2910, Mango247, GA34-261
Hint I'll post the full solution when I find time.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
tim1234133
523 posts
#3 • 6 Y
Y by vsathiam, Adventure10, jhu08, Mango247, ld414think, GA34-261
Might as well post the solution then, though SamE's hint does rather give it away...

Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
simo14
200 posts
#4 • 4 Y
Y by jhu08, Adventure10, Mango247, GA34-261
I did it by induction.

Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sayantanchakraborty
505 posts
#5 • 6 Y
Y by shinichiman, Tanb, jhu08, Adventure10, Mango247, GA34-261
From a sequence $(x_1,x_2,...,x_n)$ construct another sequence $(y_0,y_1,...,y_n)$ of length $n+1$ such that
$y_0=0$ and $y_i=\sum_{k=1}^{i}{x_k} \pmod{2}$ .It is easy to see that such a constuction is bijective.Also the sequence of the first type has a subsequence $(0,1,0) \Leftrightarrow$ the sequence of the second type has a subsquence $(0,0,1,1)$ or $(1,1,0,0)$.The case when $y_1=1$ can be seen analogously by interchanging the $0$'s ans $1$'s.We are through.....
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rocketscience
466 posts
#7 • 4 Y
Y by jhu08, Adventure10, Nguyenhuyhoang, GA34-261
The less intelligent but quite straightforward recursion solution: Let $c_n$ denote the number of strings counted by $a_n$ that end with $01$, and let $d_n$ denote the number of strings counted by $b_n$ that end with either $001$ or $110$. Verify for small $n$ that $b_{n+1} = 2a_n$ and $d_{n+1} = 2c_n$.

We now establish recursions for $a_n, b_n, c_n, d_n$. To count $a_n$, we have $a_{n-1}$ choices for the first $n-1$ bits and $2$ ways to append an $n$th bit, but we cannot append a $0$ to the $c_{n-1}$ strings ending with $01$. So, we have
\[a_n = 2a_{n-1} - c_{n-1}.\]Count $b_n$ similarly. For each string counted by $d_{n-1}$, there is one way to illegally append $0$ or $1$, so we have
\[b_n = 2b_{n-1} - d_{n-1}.\]To count $c_n$, we have $a_{n-2}$ choices for the first $n-2$ bits and must append $01$ to each of them, but those $(n-2)$-length strings ending with $01$ fail. So, we have
\[c_n = a_{n-2} - c_{n-2}.\]Count $d_n$ similarly. We have $d_{n-2}$ choices for the first $n-2$ bits, and the last bit of the $(n-2)$-length string determines the necessary $(n-1)$th and $n$th bits we must append. However, this fails when the $(n-2)$-length string ends in either $001$ or $110$ since we are forced to append $10$ and $01$, respectively, which is illegal. So, we have
\[d_n = b_{n-2} - d_{n-2}.\]Now apply induction using these recursions to finish.
This post has been edited 1 time. Last edited by rocketscience, Sep 3, 2019, 11:26 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Williamgolly
3760 posts
#8 • 2 Y
Y by jhu08, GA34-261
The set of $3$ consecutive terms for a sequence $a_n$ are $000, 100, 101, 110, 111, 001, 011.$
The set of $4$ consecutive terms for a sequence $b_n$ are $0000, 0001, 0010, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1101, 1110, 1111.$
In the sequence $b_{n+1},$ there are $n-2$ strings of $4$ consecutive terms. In a sequence $a_n,$ there are $n-2$ string of $3$ consecutive terms. Then, for each starting $3$ string in sequence $a_n$, can append 2 different starting number (0 or 1) to the start to make a valid string of $b_{n+1}$. This process can be reversed. Therefore, we have formed a 1 to 2 bijection between $b_{n+1}$ to $a_n$, so $b_{n+1} = 2a_n$ for all $n$.
This post has been edited 1 time. Last edited by Williamgolly, Oct 31, 2020, 1:44 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6906 posts
#9 • 9 Y
Y by math31415926535, Bedwarspro, HamstPan38825, jhu08, myh2910, Assassino9931, Danielzh, ld414think, GA34-261
Consider the map from sequences of the latter form to sequences of the first form by \[ (y_1, \dots, y_{n+1}) \mapsto (y_1 + y_2, y_2 + y_3, \dots, y_n + y_{n+1}). \]It is $2$-to-$1$. The end.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oneteen11
180 posts
#11 • 1 Y
Y by GA34-261
Williamgolly wrote:
The set of $3$ consecutive terms for a sequence $a_n$ are $000, 100, 101, 110, 111, 001, 011.$
The set of $4$ consecutive terms for a sequence $b_n$ are $0000, 0001, 0010, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1101, 1110, 1111.$
In the sequence $b_{n+1},$ there are $n-2$ strings of $4$ consecutive terms. In a sequence $a_n,$ there are $n-2$ string of $3$ consecutive terms. Then, for each starting $3$ string in sequence $a_n$, can append 2 different starting number (0 or 1) to the start to make a valid string of $b_{n+1}$. This process can be reversed. Therefore, we have formed a 1 to 2 bijection between $b_{n+1}$ to $a_n$, so $b_{n+1} = 2a_n$ for all $n$.

What if, say, the starting string of one of the terms in $a_n$ is $011$. Then we can't append 0 at the start to make a valid term for $b_n$. How is the bijection valid? Is there anything that I'm missing here?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8904 posts
#12 • 1 Y
Y by GA34-261
$a_n$ is the sequence of absolute differences of $b_{n+1}$, where we can pick the first term to be either $1$ or $0$. Thus $b_{n+1} = 2a_n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Danielzh
497 posts
#13 • 2 Y
Y by fearsum_fyz, GA34-261
SamE wrote:
Hint I'll post the full solution when I find time.

legend says he still cannot find time
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kamatadu
484 posts
#14 • 3 Y
Y by HoripodoKrishno, fearsum_fyz, GA34-261
@above I think I know why @SamE is still not being able to find time. This quote explains the reason. Some great person once said - ``$\textbf{If you cannot prove a statement using induction,}$
$\textbf{try inducting on the inductive step of that induction and if that still doesn't work,}$
$\textbf{try inducting on the inductive step of the inductive step of the induction and so on....}$".



AIME style recursion vibes :ninja: . We proceed using induction. Base case clearly works.

Note that you can perform a map by switching the $0$s with $1$s and vice versa. Note that this map is an involution and thus a bijection. So we can just consider $\dfrac{b_n}{2}$ and then we would only have to handle the condition where no $0$, $0$, $1$, $1$ sequence is there. Then we have to prove that $b_{n+1}=a_n$. $x_n$ denote the number of $n$ lengthed sequence which end with a $0$, $1$ and satisfy the condition for $a_n$. This gives $a_n=2a_{n-1}-x_{n-1}$. Similarly, $y_n$ denote the number of $n$ lengthed sequences which end with $0$, $0$, $1$ and satisfy the condition for $b_n$. This gives $b_n=2b_{n-1} -y_{n-1}$. Thus it suffices to prove that $x_{n-1}=y_{n}$. A bit of case checking gives $x_n=a_{n-2}-x_{n-2}$ and $y_n=y_{n-3}$. Now we do even more induct lol. $x_{n-1}=y_{n}\iff a_{n-3}-x_{n-3}=y_{n-3}\iff a_{n-3}=x_{n-3}+x_{n-4}$ where the last equality follows due to induction. It just leaves us to prove $a_n=x_n+x_{n-1}$. Andddd, guess what? Even more induct! YAYY! :rotfl: We now have $a_n=x_n+x_{n-1}\iff 2a_{n-1}-x_{n-1}=x_n+x_{n-1}\iff x_n=2x_{n-2}$ where the last equality again follows due to induction. This simply follows from that the digit after $x_n$ cannot be $0$ and must be $1$ due to the condition of $a_n$ and then there are $2$ choices for the last digit and we are done.
This post has been edited 4 times. Last edited by kamatadu, Apr 7, 2023, 6:43 AM
Reason: induct, more induct, even more induct, too less? then eveeennnn moree inducttttttttttt
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1337 posts
#15 • 2 Y
Y by ld414think, GA34-261
We can define a binary sequence of length $n$ using $a$, $b$ where $a$ and $b$ determine whether the next digit in the sequence is different from the previous or the same respectively, and we can choose a beginning value $0$ or $1$. For example $1abaa = 10010$. Then the number of $n+1$ length sequences using $a, b$ that does not contain the string $bab$ is the same as the number of $n+1$ sequences avoiding $0011$ and $1100$ given a starting value of $1$ or $0$. So then it follows that $b_{n+1} = 2a_{n}$ as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
228 posts
#16 • 1 Y
Y by GA34-261
Note that for any sequence of length $n+1$ denoted $b=b_1b_2\ldots b_{n+1} \in \{0,1\}^{n+1}$, we can define a mapping $\{0,1\}^{n+1} \to \{0,1\}^n$ via $b_1b_2\ldots b_{n+1} \mapsto |b_2-b_1| |b_3-b_2| \ldots |b_{n+1}-b_n|$. Basically, we can transform it into a new binary sequence $a_1a_2\ldots a_n$ where $a_i=|b_{i+1}-b_i|$. Now note that under this transformation, $1100 \mapsto 010$ and $0011 \mapsto 010$ and they are also the only ones which do. Thus, any sequence avoiding $0011$ will have their transformed sequence avoiding $010$. Since we can choose 2 ways to expand the first digit (the rest of the sequence will be determined by this expansion), for any $a_1a_2\ldots a_n$ we can expand $a_1$ to $01, 10$ if $a_1=1$ and $00, 11$ if $a_1=0$, $b_{n+1}=2a_n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chenghaohu
109 posts
#17 • 1 Y
Y by GA34-261
My solution is very bashy, but the main idea is that I wrote out a linear recurrence for both of the sequences, found out they are the same, proved base cases for n = 1, 2, 3, then inducted to finish.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
734 posts
#18 • 1 Y
Y by GA34-261
Take the map from $b_n$ to $a_n$ by \[(y_1, \dots, y_{n+1}) \to (y_1 + y_2, y_2 + y_3, \dots, y_n + y_{n+1}). \]Obviously, each sequence is considered twice, so we are done.
Z K Y
N Quick Reply
G
H
=
a