School starts soon! Add problem solving to your schedule with our math, science, and/or contest classes!

G
Topic
First Poster
Last Poster
k a August Highlights and 2025 AoPS Online Class Information
jwelsh   0
Aug 1, 2025
CONGRATULATIONS to all the competitors at this year’s International Mathematical Olympiad (IMO)! The US Team took second place with 5 gold medals and 1 silver - we are proud to say that each member of the 2025 IMO team has participated in an AoPS WOOT (Worldwide Online Olympiad Training) class!

"As a parent, I'm deeply grateful to AoPS. Tiger has taken very few math courses outside of AoPS, except for a local Math Circle that doesn't focus on Olympiad math. AoPS has been one of the most important resources in his journey. Without AoPS, Tiger wouldn't be where he is today — especially considering he's grown up in a family with no STEM background at all."
— Doreen Dai, parent of IMO US Team Member Tiger Zhang

Interested to learn more about our WOOT programs? Check out the course page here or join a Free Scheduled Info Session. Early bird pricing ends August 19th!:
CodeWOOT Code Jam - Monday, August 11th
ChemWOOT Chemistry Jam - Wednesday, August 13th
PhysicsWOOT Physics Jam - Thursday, August 14th
MathWOOT Math Jam - Friday, August 15th

There is still time to enroll in our last wave of summer camps that start in August at the Virtual Campus, our video-based platform, for math and language arts! From Math Beasts Camp 6 (Prealgebra Prep) to AMC 10/12 Prep, you can find an informative 2-week camp before school starts. Plus, our math camps don’t have homework and cover cool enrichment topics like graph theory. Our language arts courses will build the foundation for next year’s challenges, such as Language Arts Triathlon for levels 5-6 and Academic Essay Writing for high school students.

Lastly, Fall is right around the corner! 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. We’ve opened new Academy locations in San Mateo, CA, Pasadena, CA, Saratoga, CA, Johns Creek, GA, Northbrook, IL, and Upper West Side (NYC), New York.

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, 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
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

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

Intermediate: Grades 8-12

Intermediate Algebra
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
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
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
Sunday, 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
Aug 1, 2025
0 replies
integer solution
aria123   4
N 36 minutes ago by P0tat0b0y
Find all integer solutions of the equation $x^2+xy+3y^2=x^2y^2$
4 replies
aria123
Jul 31, 2025
P0tat0b0y
36 minutes ago
Find the largest value of p
Darealzolt   14
N an hour ago by littleduckysteve
It is known that
\[
\sqrt{x-3}+\sqrt{6-x} \leq p
\]In which \(x \in \mathbb{R}\), hence find the largest value of \(p\).
14 replies
Darealzolt
Jun 6, 2025
littleduckysteve
an hour ago
Integer solution
aria123   1
N an hour ago by littleduckysteve
Find all integer solutions to the equation $x^2+y^2-15xy=-25$ such that $x^2+xy+y^2$ is a prime.
1 reply
aria123
3 hours ago
littleduckysteve
an hour ago
Geometry problem
littleduckysteve   3
N an hour ago by littleduckysteve
Two cubes of side lengths 2 are in the 3d plane such that one cube has it's vertex in the center of the other cube. Find the union of their areas. (It's very easy)
3 replies
1 viewing
littleduckysteve
Aug 1, 2025
littleduckysteve
an hour ago
No more topics!
Generating Functions
greenplanet2050   7
N Apr 30, 2025 by rchokler
So im learning generating functions and i dont really understand why $1+2x+3x^2+4x^3+5x^4+…=\dfrac{1}{(1-x)^2}$

can someone help

thank you :)
7 replies
greenplanet2050
Apr 29, 2025
rchokler
Apr 30, 2025
Generating Functions
G H J
G H BBookmark kLocked kLocked NReply
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
greenplanet2050
1358 posts
#1
Y by
So im learning generating functions and i dont really understand why $1+2x+3x^2+4x^3+5x^4+…=\dfrac{1}{(1-x)^2}$

can someone help

thank you :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Yiyj
434 posts
#2
Y by
Note that $1+2x+3x^2+\cdots$ is an arithmetico-geometric sequence. Then, we have the formula \[\sum_{k=1}^{\infty} x_k = \dfrac{dg_2}{(1-r)^2} + \dfrac{x_1}{1-r},\]where $d$ is the common difference of the arithmetic sequence, $r$ is the common ratio of the geometric sequence, $g_2$ is the second term of the geometric sequence, and $x_k$ are the terms of the arithmetico-geometric sequence.

Plugging in $d=1, r=x, g_2=x, x_1=1$, we get \[1+2x+3x^2+\cdots=\dfrac{x}{(1-x)^2}+\dfrac{1}{1-x} = \dfrac{x}{(1-x)^2}+\dfrac{1-x}{(1-x)^2} = \boxed{\dfrac{1}{(1-x)^2}}.\]Hope that helped!
This post has been edited 1 time. Last edited by Yiyj, Apr 29, 2025, 10:55 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shan3t
563 posts
#3
Y by
greenplanet2050 wrote:
So im learning generating functions and i dont really understand why $1+2x+3x^2+4x^3+5x^4+…=\dfrac{1}{(1-x)^2}$

can someone help

thank you :)

Let $1+2x+3x^2\cdots = S.\quad(1)$

Now multiply $S,$ by $x,$ to get:

$x+2x^2+3x^3+4x^4+\cdots = S\cdot x\quad(2)$

Just subtract equation $2$ from equation $1,$ to get $1+x+x^2+x^3\cdots = \frac{1}{1-x} = S-S\cdot x.$ Simplify this, gives $S(1-x)=\frac1{1-x}\implies S=\frac{1}{(1-x)^2}.$
This post has been edited 1 time. Last edited by Shan3t, Apr 29, 2025, 11:02 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
martianrunner
232 posts
#4
Y by
Notice that $(1+x+x^2+x^3...)^2 = 1+2x+3x^2+4x^3...$ (this can be elementarily proven with induction by counting the pairs for each coefficient's term)

Since the value of a geometric sequence that goes $1+x+x^2+x^3...$ is $\frac{1}{1-x}$, we square that to get our answer of $\frac{1}{(1-x)^2}$
This post has been edited 2 times. Last edited by martianrunner, Apr 30, 2025, 2:36 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
greenplanet2050
1358 posts
#5
Y by
Thank you all!!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shan3t
563 posts
#6
Y by
greenplanet2050 wrote:
Thank you all!!

np :D

also @2bove sol very clean :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ohiorizzler1434
950 posts
#7 • 1 Y
Y by compoly2010
It's a highly technical concept that combines convergence of geometric sequences with calculus, to represent the power series of a function around a point!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rchokler
2978 posts
#8
Y by
In general, the ring $\mathbb{C}[x]$ of all polynomials with complex coefficients is spanned by the basis $\{p_n\}_{n=0}^\infty$ where $p_n(x)=(x+1)(x+2)\cdots(x+n)$ under finite linear combinations. Note that $p_0(x)=1$ since it is the empty product.

Using this and the power rule for derivatives, we can find a formula for $\sum_{n=0}^\infty p(n)x^n$ for any polynomial $p$ and any $x\in(-1,1)$.

The idea is that $S_k(x)=\sum_{n=0}^\infty p_k(n)x^n=\sum_{n=0}^\infty\frac{d^k}{dx^k}x^{n+k}=\sum_{n=-k}^\infty\frac{d^k}{dx^k}x^{n+k}=\sum_{n=0}^\infty\frac{d^k}{dx^k}x^n=\sum_{n=0}^\infty\frac{d^k}{dx^k}x^n=\frac{d^k}{dx^k}\sum_{n=0}^\infty x^n=\frac{d^k}{dx^k}\frac{1}{1-x}=\frac{k!}{(1-x)^{k+1}}$.

So all you have to do is write $p$ of degree $n$, as $p=\sum_{k=0}^nc_kp_k$.

Example:
Find $\sum_{n=0}^\infty(n^3+5n^2-3n+4)x^n$.

Solution:
Use $p_0(n)=1$, $p_1(n)=n+1$, $p_2(n)=(n+1)(n+2)=n^2+3n+2$, and $p_3=(n+1)(n+2)(n+3)=n^3+6n^2+11n+6$.

$c_0p_0(n)+c_1p_1(n)+c_2p_2(n)+c_3p_3(n)=c_3n^3+(c_2+6c_3)n^2+(c_1+3c_2+11c_3)n+(c_0+c_1+2c_2+6c_3)\equiv n^3+5n^2-3n+4$
$\implies\begin{cases}c_3=1\\c_2+6c_3=5\\c_1+3c_2+11c_3=-3\\c_0+c_1+2c_2+6c_3=4\end{cases}\implies(c_0,c_1,c_2,c_3)=(11,-11,-1,1)$

Therefore $\sum_{n=0}^\infty(n^3+5n^2-3n+4)x^n=11S_0(x)-11S_1(x)-S_2(x)+S_3(x)=\frac{11}{1-x}-\frac{11}{(1-x)^2}-\frac{2}{(1-x)^3}+\frac{6}{(1-x)^4}=\frac{-11x^3+22x^2-9x+4}{(1-x)^4}$.
Z K Y
N Quick Reply
G
H
=
a