Happy Memorial Day! Please note that AoPS Online is closed May 24-26th.

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
Inspired by 2025 SXTB
sqing   1
N 33 minutes ago by sqing
Source: Own
Let $ a,b  $ be real number such that $ a^2+b^2=\frac12. $ Prove that
$$-\frac{\sqrt{9+6\sqrt 3}}{2}\leq(a+1)^2- (b-1)^2\leq\frac{\sqrt{9+6\sqrt 3}}{2}$$Let $ x $ be real number . Prove that
$$-\frac{2\sqrt 2}{3}\leq \frac{x}{x^2+1}+ \frac{ 2x}{x^2+4} \leq\frac{2\sqrt 2}{3}$$
1 reply
sqing
an hour ago
sqing
33 minutes ago
IMO Shortlist 2014 G2
hajimbrak   14
N an hour ago by ezpotd
Let $ABC$ be a triangle. The points $K, L,$ and $M$ lie on the segments $BC, CA,$ and $AB,$ respectively, such that the lines $AK, BL,$ and $CM$ intersect in a common point. Prove that it is possible to choose two of the triangles $ALM, BMK,$ and $CKL$ whose inradii sum up to at least the inradius of the triangle $ABC$.

Proposed by Estonia
14 replies
hajimbrak
Jul 11, 2015
ezpotd
an hour ago
Divisiblity...
TUAN2k8   0
an hour ago
Source: Own
Let $m$ and $n$ be two positive integer numbers such that $m \le n$.Prove that $\binom{n}{m}$ divides $lcm(1,2,...,n)$
0 replies
TUAN2k8
an hour ago
0 replies
interesting diophantiic fe in natural numbers
skellyrah   4
N an hour ago by aidan0626
Find all functions \( f : \mathbb{N} \to \mathbb{N} \) such that for all \( m, n \in \mathbb{N} \),
\[
mn + f(n!) = f(f(n))! + n \cdot \gcd(f(m), m!).
\]
4 replies
skellyrah
Yesterday at 8:01 AM
aidan0626
an hour ago
IMO 2010 Problem 4
mavropnevma   128
N an hour ago by ezpotd
Let $P$ be a point interior to triangle $ABC$ (with $CA \neq CB$). The lines $AP$, $BP$ and $CP$ meet again its circumcircle $\Gamma$ at $K$, $L$, respectively $M$. The tangent line at $C$ to $\Gamma$ meets the line $AB$ at $S$. Show that from $SC = SP$ follows $MK = ML$.

Proposed by Marcin E. Kuczma, Poland
128 replies
mavropnevma
Jul 8, 2010
ezpotd
an hour ago
Simple Geometry
AbdulWaheed   5
N an hour ago by Adywastaken
Source: EGMO
Try to avoid Directed angles
Let ABC be an acute triangle inscribed in circle $\Omega$. Let $X$ be the midpoint of the arc $\overarc{BC}$ not containing $A$ and define $Y, Z$ similarly. Show that the orthocenter of $XYZ$ is the incenter $I$ of $ABC$.
5 replies
AbdulWaheed
May 23, 2025
Adywastaken
an hour ago
pairs (m, n) such that a fractional expression is an integer
cielblue   1
N 2 hours ago by Pal702004
Find all pairs $(m,\ n)$ of positive integers such that $\frac{m^3-mn+1}{m^2+mn+2}$ is an integer.
1 reply
cielblue
Yesterday at 8:38 PM
Pal702004
2 hours ago
Serbian selection contest for the IMO 2025 - P6
OgnjenTesic   3
N 2 hours ago by JARP091
Source: Serbian selection contest for the IMO 2025
For an $n \times n$ table filled with natural numbers, we say it is a divisor table if:
- the numbers in the $i$-th row are exactly all the divisors of some natural number $r_i$,
- the numbers in the $j$-th column are exactly all the divisors of some natural number $c_j$,
- $r_i \ne r_j$ for every $i \ne j$.

A prime number $p$ is given. Determine the smallest natural number $n$, divisible by $p$, such that there exists an $n \times n$ divisor table, or prove that such $n$ does not exist.

Proposed by Pavle Martinović
3 replies
OgnjenTesic
May 22, 2025
JARP091
2 hours ago
IMO Genre Predictions
ohiorizzler1434   74
N 2 hours ago by Giant_PT
Everybody, with IMO upcoming, what are you predictions for the problem genres?


Personally I predict: predict
74 replies
ohiorizzler1434
May 3, 2025
Giant_PT
2 hours ago
Inspired by 2025 Beijing
sqing   5
N 2 hours ago by sqing
Source: Own
Let $ a,b,c,d >0  $ and $ (a^2+b^2+c^2)(b^2+c^2+d^2)=36. $ Prove that
$$ab^2c^2d \leq 8$$$$a^2bcd^2 \leq 16$$$$ ab^3c^3d \leq \frac{2187}{128}$$$$ a^3bcd^3 \leq \frac{2187}{32}$$
5 replies
sqing
Yesterday at 4:56 PM
sqing
2 hours ago
a^2=3a+2imatrix 2*2
zolfmark   4
N 4 hours ago by RenheMiResembleRice
A
matrix 2*2

A^2=3A+2i
A^3=mA+Li


i means identity matrix,

find constant m ، L
4 replies
zolfmark
Feb 23, 2019
RenheMiResembleRice
4 hours ago
Find solution of IVP
neerajbhauryal   3
N Today at 12:47 AM by MathIQ.
Show that the initial value problem \[y''+by'+cy=g(t)\] with $y(t_o)=0=y'(t_o)$, where $b,c$ are constants has the form \[y(t)=\int^{t}_{t_0}K(t-s)g(s)ds\,\]

What I did
3 replies
neerajbhauryal
Sep 23, 2014
MathIQ.
Today at 12:47 AM
Integral
Martin.s   2
N Today at 12:41 AM by MathIQ.
$$\int_0^{\pi/6}\arcsin\Bigl(\sqrt{\cos(3\psi)\cos\psi}\Bigr)\,d\psi.$$
2 replies
Martin.s
May 14, 2025
MathIQ.
Today at 12:41 AM
Different Paths Probability
Qebehsenuef   4
N Yesterday at 11:24 PM by Qebehsenuef
Source: OBM
A mouse initially occupies cage A and is trained to change cages by going through a tunnel whenever an alarm sounds. Each time the alarm sounds, the mouse chooses any of the tunnels adjacent to its cage with equal probability and without being affected by previous choices. What is the probability that after the alarm sounds 23 times the mouse occupies cage B?
4 replies
Qebehsenuef
Apr 28, 2025
Qebehsenuef
Yesterday at 11:24 PM
Putnam 2003 A6
btilm305   12
N Apr 25, 2025 by Ilikeminecraft
For a set $S$ of nonnegative integers, let $r_S(n)$ denote the number of ordered pairs $(s_1, s_2)$ such that $s_1 \in S$, $s_2 \in S$, $s_1 \neq s_2$, and $s_1 + s_2 = n$. Is it possible to partition the nonnegative integers into two sets $A$ and $B$ in such a way that $r_A(n) = r_B(n)$ for all $n$?
12 replies
btilm305
Jun 23, 2011
Ilikeminecraft
Apr 25, 2025
Putnam 2003 A6
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
btilm305
439 posts
#1 • 2 Y
Y by Adventure10, Mango247
For a set $S$ of nonnegative integers, let $r_S(n)$ denote the number of ordered pairs $(s_1, s_2)$ such that $s_1 \in S$, $s_2 \in S$, $s_1 \neq s_2$, and $s_1 + s_2 = n$. Is it possible to partition the nonnegative integers into two sets $A$ and $B$ in such a way that $r_A(n) = r_B(n)$ for all $n$?
This post has been edited 1 time. Last edited by rrusczyk, May 8, 2018, 12:40 PM
Reason: LaTeX touch-up
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Kent Merryfield
18574 posts
#2 • 2 Y
Y by Adventure10, Mango247
The answer is yes. Once we make one arbitrary choice, such as $0 \in A,$ there are no further choices and the sets $A$ and $B$ are determined. We construct them as follows. Let $0 \in A$ and $1 \in B.$ After that, let $2n$ belong to the same set that $n$ belongs to and let $2n + 1$ belong to the other set. We won’t need it in the proof, but we could prove from this description the following characterization: write the number $n$ in binary. If the number of $1$s in the representation is even, then $n \in A,$ and if number of $1$s in the representation is odd, then $n \in B.$

For each $n,$ consider the set $\{0, 1, 2,\dots , n\}$ but delete from this set the number $n/2$ if $n$ is even. This set always has even cardinality and always contains $m$ members of $A$ and $m$ members of $B,$ where $m = n/2$ if $n$ is even and $(n + 1)/2$ if $n$ is odd. We must prove that the sizes of $A$ and $B$ balance as claimed. If $n$ is odd, the set consists of pairs $(2k, 2k + 1)$ in which each pair contains one element of each set. If $n$ is even, the set $\{0, 1, 2,\dots, n - 1\}$ has balanced membership from $A$ and $B.$ To get the set we want, we must delete $n/2$ and append $n,$ but these two numbers belong to the same set ($A$ or $B$) and hence the partition into $A$ and $B$ remains balanced.

Now consider a set which consists of $m$ members of set $A$ and $m$ members of set $B.$ We partition this set into $m$ disjoint pairs. (In practice, these pairs are chosen because they have the same sum, but this detail isn’t needed in the proof the follows.) Let $a$ be the number of such pairs in which both numbers belong to $A,$ $b$ be the number of such pairs in which both members belong to $B,$ and $c$ be the number of such pairs in which one member belongs to $A$ and one belongs to $B.$

Since the total number of pairs is $m,$ $a + b + c = m,$ but we don’t need this equation.

Accounting for all members of $A,$ $2a + c = m.$

Accounting for all members of $B,$ $2b + c = m.$

Combining the last two equations, we see that $a = b.$ Hence, for all $n,$ $r_A(n) = r_B(n).$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
peregrinefalcon88
299 posts
#3 • 6 Y
Y by Fermat_Theorem, Williamgolly, sqrtX, Ru83n05, Adventure10, Mango247
We will proceed with generating functions. Let $f(x) = \sum_{n = 0}^{\infty} a_nx^n$ and $g(x) = \sum_{n = 0}^{\infty} b_nx^n$ where $a_n = 1$ iff $n \in A$, otherwise $a_n = 0$, and define $b_n$ similarly. It is clear that $f(x)+g(x) = \frac{1}{1-x}$, and the problem statement desires that $f(x)^2-f(x^2) = g(x)^2-g(x^2) \rightarrow (f(x)-g(x))(f(x)+g(x)) = f(x^2)-g(x^2)$. Define $h(x) = f(x)-g(x)$ and the problem statement now desires that $h(x) = (1-x)h(x^2)$, and we have $h(x) = \sum_{n = 0}^{\infty} c_nx^n \rightarrow \sum_{n = 0}^{\infty} c_nx^n = \sum_{n = 0}^{\infty} c_nx^{2n}-c_nx^{2n+1} \rightarrow c_{2n+1} = -c_n, c_{2n} = c_n$, so it is clear that if we set $c_0 = 1$, then the sequence $c_n$ is well defined, and the reader can verify that $f(x)$ and $g(x)$ do exist with coefficients of only 1 and 0, so the sets do exist as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
codyj
723 posts
#4 • 2 Y
Y by Adventure10, Mango247
$f_S(x):=\sum_{s_1\in S}x^{s_1}$. Then $f_A(x)^2-f_A(x^2)=f_B(x)^2-f_B(x^2)$ and $f_A(x)+f_B(x)=\frac1{1-x}$ is equivalent to the problem statement. Simplify to get $\frac{x}{1-x^2}=f_A(x)-(1-x)f_A(x^2)$. Expand to get $\sum_{\text{odd }n}x^n=\sum_{n\in A}(x^n-x^{2n}+x^{2n+1})$. thus such a set $A$ satisfies the problem statement iff the following two conditions are met: $n\in A\implies2\in A$ (a), $2n+1\in A\implies n\not\in A$ (b).

Now construct by induction. At each step, add the smallest element to $A$ such that each of these conditions is satisfied, and add all the powers of $2$ times it.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#6 • 2 Y
Y by Adventure10, Mango247
The answer is yes. In fact, we can even characterize all such partitions of $\mathbb{N}$ where $\mathbb{N}$ is the set of all non-negative integers.

Indeed, consider a partition of $\mathbb{N}=A \cup B$ and consider the formal series $f(z),g(z)$ in the ring of formal series $R[[X]]$ (the usual operations of addition and multiplication) defined by the relations $$f(z) := \sum_{a \in A} z^a$$and $$g(z) := \sum_{b \in B} z^b$$and observe that $f(z)+g(z)=1+z+z^2+\dots=\frac{1}{1-z}$. Assume wlog that $1 \in A$ and note that $f(0)=1$ and $g(0)=0$. Notice that the number $f_n$ of pairs $(s_1,s_2)$ with $s_1 \not=s_2$ and $s_1,s_2 \in A$ such that $s_1+s_2=n$ is simply, the coefficient of $z^n$ in the formal series $f(z)^2-f(z^2)$. Using a similar argument for $g$, we conclude that $$f(z)^2-f(z^2)=g(z)^2-g(z^2).$$Thus, we have the relation $$\frac{f(z)-g(z)}{f(z^2)-g(z^2)}=1-z$$and successively replacing $z$ by $z^2$ in this relation and multiplying the equations obtained, we get $$f(z)-g(z)=\prod_{k \ge 0} \left(1-z^{2^k}\right)\cdot \lim_{k \rightarrow \infty} \left(f(z^{2^k})-g(z^{2^k})\right)$$and notice that by assumption, $f(0)=1$ and $g(0)=0$ and thus, we conclude that $$f(z)-g(z)=\prod_{k \ge 0} \left(1-z^{2^k}\right)=\sum_{j \ge 0} (-1)^{s_2(j)}\cdot x^j$$and thus, $A,B$ are respectively, the set of all non-negative integers with an odd (respectively, even) sum of digits in binary and they clearly satisfy the conditions by reversing the arguments.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sqrtX
675 posts
#7
Y by
The answer is yes. Define a sequence $(c_{n})$ by $c_0 =1$ and
$$c_{2n} = c_{n},  \;\;\; c_{2n+1} =-c_{2n} $$Then we clearly have $c_{i} \in \{-1,1\}$. Let $A$ be the set of nonnegative integers $m$ for which $c_m =1$ and define $B$ analogously. We'll now work with power series in $\mathbb{Z}[[X]].$ Let
$$A(X) = \sum_{a\in A} X^{a} , \;\;\; B(X) = \sum_{b\in B} X^{b}$$and $R(X) =A(X)-B(X) = \sum_{i=0}^{\infty} c_{i} X^{i}.$ By definition of the sequence $(c_{n})$, we obtain
$$ R(X) = \sum_{i=0}^{\infty} c_{i} X^{i}= \sum_{j=0}^{\infty} c_{2j}X^{2j} +c_{2j+1}X^{2j+1} = \sum_{j=0}^{\infty} c_{j}X^{2j} -c_{j}X^{2j+1} =(1-X) R(X^{2}).$$Since $1-X$ has the inverse $\sum_{i=0}^{\infty} X^{i} =A(X) +B(X)$, we can write the last formula as
$$ \left(A(X) -B(X) \right)  \left(A(X)+B(X) \right) =A(X^{2}) -B(X^{2})$$or
$$ A(X)^{2} -A(X^{2}) = B(X)^{2} - B(X^{2}).$$Note, however, that
$$A(X)^{2} -A(X^{2}) = \sum_{n=0}^{\infty} r_{A}(n) X^{n}$$and so this partition works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8868 posts
#8
Y by
WLOG $0 \in A$. Let $A(x)$ and $B(x)$ be the generating functions of $A$ and $B$ respectively. Then, we again have $$A^2(x) - A(x^2) = B^2(x) - B(x^2) \implies (A(x)+B(x))(A(x)-B(x)) = A(x^2)-B(x^2).$$However, $A(x) + B(x) = \frac 1{1-x}$, so $$A(x^2) - B(x^2) = \frac{A(x)-B(x)}{1-x}.$$Now, doing a similar trick as in 1996 USAMO 6, notice that $$\frac{A(x)-B(x)}{(1-x)(1-x^2)(1-x^4)\cdots} = A(x^{2^n}) - B(x^{2^n}) \to 1$$as we perform arbitrarily many iterations. Thus, $A(x) - B(x) = (1-x)(1-x^2)(1-x^4) \cdots$, so we can simply split the positive integers into two sets, one of which has an odd number of 1's in its binary representation, and one of which has an even number of 1's.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YaoAOPS
1541 posts
#9
Y by
I think it should also be explicitly possible to prove that Thue-Morse works by taking the involution $(s_1, s_2) \to (s_1', s_2')$ where we exchange the first power of $2$ at which $s_1 \ne s_2$. ie $(110, 101) \to (100, 111)$. This involution breaks down only if $s_1 = s_2$, at which point its not counted in $r_S$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shreyasharma
683 posts
#10
Y by
Solved with hints from YaoAOPS :love:

$\boxed{\text{Yes such a partition is possible}}$. Define the generating functions,
\begin{align*}
    F(x) &= \sum_{a \in A} x^a\\
    G(x) &= \sum_{b \in B} x^b
\end{align*}Note that we find that,
\begin{align*}
    F(x) + G(x) = \frac{1}{1-x}
\end{align*}as $A \cup B = \{0, 1, 2, \dots \}$. Then note that from the condition we find,
\begin{align*}
    F(x)^2 - F(x^2) = G(x)^2 - G(x^2)
\end{align*}This is due to the fact that $F(x)^2$ represents the number of partitions that $x^n$ can be partitioned over all $n$. We subtract $F(x^2)$ and $G(x^2)$ to account for $x^{2n} = x^n \cdot x^n$ which is not allowed by the problem condition. Then rearranging the second we have,
\begin{align*}
    [F(x) - G(x)] \cdot [F(x) + G(x)] &= F(x^2) - G(x^2)\\
    [F(x) - G(x)] \cdot \frac{1}{1-x} &= F(x^2) - G(x^2)\\
    \frac{1}{1-x} &= \frac{F(x^2) - G(x^2)}{F(x) - G(x)}
\end{align*}Then define $H(x) = F(x) - G(x)$. We find that,
\begin{align*}
    (1+x+x^2 + x^3 + \dots) &= \frac{H(x^2)}{H(x)}
\end{align*}Let $H(x) = \sum_{i \geq 0} c_ix^i$ for constants $c_i$. Then we require,
\begin{align*}
    (1+x+x^2+x^3+\dots)(c_0 + c_1x+c_2x^2+\dots) &= (c_0 + c_1x^2 + c_2x^4 + \dots)\\
    c_0 + x(c_0 + c_1) + x^2(c_0 + c_1 + c_2) + x^3(c_0 + c_0 + c_1 + c_2 + c_3) + \dots &= c_0 + c_1x^2 + c_2x^4 + \dots
\end{align*}Then we find the system,
\begin{align*}
    c_0 &= c_0\\
    c_0 + c_1 &= 0\\
    c_0 + c_1 + c_2 &= c_1\\
    c_0 + c_1 + c_2 + c_3 &= 0\\
    &\vdots
\end{align*}As such we conclude that $c_{2k+1} = -c_k$ and $c_{2k} = c_k$. Then set $c_0 = 1$. Now to define the sequence $F$ and $G$ we find that we have,
\begin{align*}
    F(x) - G(x) &= 1 - x + x^2 + x^3 + x^4 - x^5 + x^6 - x^7 + \dots
\end{align*}Then taking the partition of $F = 1+ x^2 + x^3 + x^4 + x^6 + \dots$ and $G(x) = x + x^5 + x^7 + \dots$ we are done. $\square$
This post has been edited 3 times. Last edited by Shreyasharma, Jan 13, 2024, 5:19 PM
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
#11
Y by
Define the generating functions $A(x) = \sum_{n \ge 0} a_nx^n$ and $B(x) = \sum_{n \ge 0} b_nx^n$. The problem statement tells us
\[A(x)+B(x)=\sum_{n \ge 0} x^n = \frac{1}{1-x}, \quad A(x)^2-A(x^2) = B(x)^2-B(x^2).\]
If we let $P(x)=A(x)-B(x)$, the second condition can be rewritten as
\[P(x^2) = \frac{P(x)}{1-x} = P(x) \cdot (1+x)(1+x^2)(1+x^4)(1+x^8) \ldots\]\[\implies P(x) = (1-x)(1-x^2)(1-x^4)(1-x^8)\ldots\]
as a possible solution, plus each term is $\pm x^n$ as desired. Thus our answer is $\boxed{\text{yes}}$, with a possible partition being
\[\boxed{\begin{cases} \{A\} =& \text{Integers with an even number of 1's in binary.} \\ \{B\} =& \text{Integers with an odd number of 1's in binary.} \end{cases}}\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RedFireTruck
4243 posts
#12
Y by
https://cdn.aops.com/images/9/d/8/9d831a1a535ee1fa0c8f2e9e0a9d7b1fba7c3262.png
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#13
Y by
yes partition based on the parity of the number of ones in its binary representation (morse thue sequence). to show this works let $A(x),B(x)$ be the generating functions for $A,B$ then $A(x)^2-A(x^2)=B(x)^2-B(x^2)$ so $A(x^2)-B(x^2)=(A(x)-B(x))(A(x)+B(x))$ but $A(x)+B(x)=\frac1{1-x}$ so $S(x)=A(x)-B(x)$ satisfies $(1-x)S(x^2)=S(x)$ which it does since clearly $2n$ and $2n+1$ are in different sets and clearly the even index terms form the same as the original sequence. thus this genfunc satisfies the equation
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
658 posts
#14
Y by
I claim the answer is $\boxed{\text{No}}.$ We have that $$\left(\sum_{k\in A} x^k\right)^2 - \sum_{k \in A}x^{2k} = \left(\sum_{k\in B} x^k\right)^2 - \sum_{k \in B}x^{2k}$$However, by rearrangement, we see that:
\begin{align*}
    \sum_{k\in B}x^{2k} - \sum_{k\in A}x^{2k} & = \left(\sum_{k\in B} x^k\right)^2 - \left(\sum_{k\in A} x^k\right)^2 \\
    & = \left(\sum_{k\in B} x^k - \sum_{k\in A} x^k\right)\left(\sum_{k\in B} x^k + \sum_{k\in A} x^k\right)
\end{align*}However, since $A\cup B,$ we see that
\begin{align*}
    \sum_{k\in B}x^{2k} - \sum_{k\in A}x^{2k} & = \left(\sum_{k\in B} x^k - \sum_{k\in A} x^k\right) \frac{1}{1 - x} \\
    & = \sum_{k\in B} x^k - \sum_{k\in A} x^k + \sum_{k\in B} x^{k + 1} - \sum_{k\in A} x^{k + 1} + \cdots
\end{align*}Now, define $f(x) = \sum_{k\in B} x^k - \sum_{k\in A}x^k.$ Hence, we have that $f(x^2) = \frac{f(x)}{1 - x}.$ Clearly, we have that $f(x) = (1 - x)(1 - x^2)(1 - x^4)(1 - x^8)\cdots$ work since $\frac1{1 - x} = (1 + x)(1 + x^2)(1 + x^4)\cdots$. Thus, we are done.
Z K Y
N Quick Reply
G
H
=
a