G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Today at 3:18 PM
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. 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 events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Today at 3:18 PM
0 replies
2024 COMC B1
QueenArwen   2
N 31 minutes ago by EVKV
For any positive integer number $k$, the factorial $k!$ is defined as a product of all integers between $1$ and $k$ inclusive: $k!=k\times{(k-1)}\times\dots\times{1}$.
Let $s(n)$ denote the sum of the first $n$ factorials, i.e.
$$s(n)=\underbrace{n\times{(n-1)}\times\dots\times{1}}_{n!}+\underbrace{(n-1)\times{(n-2)}\times\dots\times{1}}_{(n-1)!}+\cdots +\underbrace{2\times{1}}_{2!}+\underbrace{1}_{1!}$$Find the remainder when $s(2024)$ is divided by $8$
2 replies
QueenArwen
Nov 4, 2024
EVKV
31 minutes ago
Easy FE; source unknown
NamelyOrange   3
N 2 hours ago by Mathdreams
Find (with proof) all $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $f(x)\ge x$ and $f(f(x)) = x$.
3 replies
NamelyOrange
3 hours ago
Mathdreams
2 hours ago
Geometry problem
Raul_S_Baz   0
3 hours ago
IMAGE
0 replies
Raul_S_Baz
3 hours ago
0 replies
Any nice way to do this?
NamelyOrange   2
N 3 hours ago by NamelyOrange
Source: Taichung P.S.1 math program tryouts

How many ordered pairs $(a,b,c)\in\mathbb{N}^3$ are there such that $c=ab$ and $1\le a\le b\le c\le60$?
2 replies
NamelyOrange
Today at 1:11 PM
NamelyOrange
3 hours ago
No more topics!
Rubik's cube problem
ilikejam   20
N Mar 30, 2025 by jasperE3
If I have a solved Rubik's cube, and I make a finite sequence of (legal) moves repeatedly, prove that I will eventually resolve the puzzle.

(this wording is kinda goofy but i hope its sorta intuitive)
20 replies
ilikejam
Mar 28, 2025
jasperE3
Mar 30, 2025
Rubik's cube problem
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.
ilikejam
34 posts
#1
Y by
If I have a solved Rubik's cube, and I make a finite sequence of (legal) moves repeatedly, prove that I will eventually resolve the puzzle.

(this wording is kinda goofy but i hope its sorta intuitive)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jkim0656
500 posts
#2
Y by
if u say "eventually," doesn't that mean an infinite number of moves?
I mean all rubik's cubes can be solved from any position in 20 moves, so with luck and infinite time you will get those 20 or less moves all correct.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aidan0626
1810 posts
#3
Y by
oh i've thought about this before
imagine all possible rubik's cube positions as vertices, and put them on a directed graph, with an edge from one position to another if the sequence turns the first position into the second
note that every vertex has an indegree of 1 and outdegree of 1
now assume you can't resolve the puzzle, that means you get stuck in a cycle not containing the original position
but to get into such a cycle without the original position, there must be a vertex with an indegree greater than 1 (not sure how to rigorously show this, but inuitively makes sense), which is a contradiction
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kred9
1015 posts
#4
Y by
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jkim0656
500 posts
#5
Y by
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

dang well said
that's smart
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jasperE3
11149 posts
#6
Y by
Theorem 4.2.2 provides an upper limit with only face turns (standard HTM) of $1260$ moves.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
fruitmonster97
2430 posts
#7
Y by
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

I must be missing something, but what if(theoretically) every position except the solved state is in a loop? Yes, the first unsolved position will repeat, but that yields no insight on why the solved face should repeat?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Coolmanppap3
1 post
#8
Y by
fruitmonster97 wrote:
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

I must be missing something, but what if(theoretically) every position except the solved state is in a loop? Yes, the first unsolved position will repeat, but that yields no insight on why the solved face should repeat?

In theory, that solution would take a long time, but it will happen, right? Imagine it like a circle. Every time you bend the circle to make another, the start still remains, even though there is a detour. In a sense, it would loop back, after many loops. (I have no idea btw)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
greenturtle3141
3541 posts
#9
Y by
The generalization of this is phrased in terms of group theory: "in a finite group, every element has a finite order". Here the group is the permutations you can make on a rubiks cube through legal moves. the order of a certain combination of moves is how many times it needs to be repeated to go back to the "nothing happened" outcome (called the "group identity").
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mpcnotnpc
44 posts
#10
Y by
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

Wait is this true? This only implies that some state might repeat, doesn't mean that the initial state will.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vincentwant
1282 posts
#11
Y by
mpcnotnpc wrote:
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

Wait is this true? This only implies that some state might repeat, doesn't mean that the initial state will.

correct me if im wrong but if its not the initial state then its not a group (im rusty at group theory tho so)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joeym2011
469 posts
#12
Y by
Redacted, misinterpreted problem
This post has been edited 1 time. Last edited by joeym2011, Mar 28, 2025, 11:18 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kred9
1015 posts
#13
Y by
fruitmonster97 wrote:
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

I must be missing something, but what if(theoretically) every position except the solved state is in a loop? Yes, the first unsolved position will repeat, but that yields no insight on why the solved face should repeat?
mpcnotnpc wrote:
kred9 wrote:
By the Pigeonhole Principle, there must be some state of the cube that is achieved twice after applying this algorithm arbitrarily many times. Therefore, repeating the algorithm some number of times brings a state back to itself, and hence it will bring the solved state back to itself.

Wait is this true? This only implies that some state might repeat, doesn't mean that the initial state will.

I'll address these two concerns with my solution. Write the algorithm as $g$. Then suppose $g^a$ and $g^b$ correspond to the same state (some distinct values of $a$ and $b$ must satisfy this by PHP). Therefore, applying the algorithm $b-a$ times to a state returns that state back to itself. This is true no matter what state we are currently at, since every piece is unique on the cube. This means that after $b-a$ algorithms at the beginning, we will return to the solved state.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ilikejam
34 posts
#14
Y by
my solution was that every square (the small ones, there are 9 on each side) moves to a certain position, and the square that was in that position moves to a new one, etc. this will eventually become a cycle, and even though there may be more than one such cycle, given enough repetitions, all the cycles will eventually loop back to the starting, and thus solved, state.
This post has been edited 1 time. Last edited by ilikejam, Mar 28, 2025, 11:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ilikejam
34 posts
#15
Y by
jkim0656 wrote:
if u say "eventually," doesn't that mean an infinite number of moves?
I mean all rubik's cubes can be solved from any position in 20 moves, so with luck and infinite time you will get those 20 or less moves all correct.

no i mean i have a certain sequence of moves, maybe like ULU that i repeat until it solves itself
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mpcnotnpc
44 posts
#16
Y by
oop im not familiar with rubik's cube rules, but "legal" moves don't incorporate like turning a side back and forth right; cuz that's like a finite sequence?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jasperE3
11149 posts
#17
Y by
If you turn a side back and forth by $90^\circ$ and then $-90^\circ$ then trivially the puzzle gets resolved after applying this finite sequence of legal moves.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
wuwang2002
1196 posts
#18
Y by
jasperE3 wrote:
Theorem 4.2.2 provides an upper limit with only face turns (standard HTM) of $1260$ moves.

when i was small i counted all 1260 moves and surprisingly didn’t mess up (so much dedication)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mpcnotnpc
44 posts
#19
Y by
jasperE3 wrote:
If you turn a side back and forth by $90^\circ$ and then $-90^\circ$ then trivially the puzzle gets resolved after applying this finite sequence of legal moves.

:skull: mb
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ilikejam
34 posts
#20
Y by
some clarifications:
mpcnotnpc wrote:
oop im not familiar with rubik's cube rules, but "legal" moves don't incorporate like turning a side back and forth right; cuz that's like a finite sequence?

no i mean like no breaking the cube, only twisting the sides, back and forth is ok.
jasperE3 wrote:
If you turn a side back and forth by $90^\circ$ and then $-90^\circ$ then trivially the puzzle gets resolved after applying this finite sequence of legal moves.

yes, however the problem is to prove that every sequence eventually solves the cube, not to find just one.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jasperE3
11149 posts
#21
Y by
I was responding to #16 not the original post.
Z K Y
N Quick Reply
G
H
=
a