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
USAMO 2001 Problem 4
MithsApprentice   32
N 26 minutes ago by HamstPan38825
Let $P$ be a point in the plane of triangle $ABC$ such that the segments $PA$, $PB$, and $PC$ are the sides of an obtuse triangle. Assume that in this triangle the obtuse angle opposes the side congruent to $PA$. Prove that $\angle BAC$ is acute.
32 replies
+1 w
MithsApprentice
Sep 30, 2005
HamstPan38825
26 minutes ago
APMO 2016: Line is tangent to circle
shinichiman   41
N 33 minutes ago by Ilikeminecraft
Source: APMO 2016, problem 3
Let $AB$ and $AC$ be two distinct rays not lying on the same line, and let $\omega$ be a circle with center $O$ that is tangent to ray $AC$ at $E$ and ray $AB$ at $F$. Let $R$ be a point on segment $EF$. The line through $O$ parallel to $EF$ intersects line $AB$ at $P$. Let $N$ be the intersection of lines $PR$ and $AC$, and let $M$ be the intersection of line $AB$ and the line through $R$ parallel to $AC$. Prove that line $MN$ is tangent to $\omega$.

Warut Suksompong, Thailand
41 replies
shinichiman
May 16, 2016
Ilikeminecraft
33 minutes ago
Parallelogram and a simple cyclic quadrilateral
Noob_at_math_69_level   5
N an hour ago by awesomeming327.
Source: DGO 2023 Individual P1
Let $ABC$ be an acute triangle with point $D$ lie on the plane such that $ABDC$ is a parallelogram. $H$ is the orthocenter of $\triangle{ABC}.$ $BH$ intersects $CD$ at $Y$ and $CH$ intersects $BD$ at $X.$ The circle with diameter $AH$ intersects the circumcircle of $\triangle{ABC}$ again at $Q.$ Prove that: The circumcircle of $\triangle{XQY}$ passes through the reflection point of $D$ over $BC.$

Proposed by MathLuis
5 replies
Noob_at_math_69_level
Dec 18, 2023
awesomeming327.
an hour ago
Line through incenter tangent to a circle
Kayak   31
N an hour ago by ihategeo_1969
Source: Indian TST D1 P1
In an acute angled triangle $ABC$ with $AB < AC$, let $I$ denote the incenter and $M$ the midpoint of side $BC$. The line through $A$ perpendicular to $AI$ intersects the tangent from $M$ to the incircle (different from line $BC$) at a point $P$> Show that $AI$ is tangent to the circumcircle of triangle $MIP$.

Proposed by Tejaswi Navilarekallu
31 replies
Kayak
Jul 17, 2019
ihategeo_1969
an hour ago
Changeable polynomials, can they ever become equal?
mshtand1   3
N an hour ago by CHESSR1DER
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 11.5
Initially, two constant polynomials are written on the board: \(0\) and \(1\). At each step, it is allowed to add \(1\) to one of the polynomials and to multiply another one by the polynomial \(45x + 2025\). Can the polynomials become equal at some point?

Proposed by Oleksii Masalitin
3 replies
mshtand1
Today at 12:47 AM
CHESSR1DER
an hour ago
Finally my algebra that I am proud of
mshtand1   1
N 2 hours ago by RagvaloD
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 8.7
Find the smallest real number \(a\) such that for any positive integer number \(n > 2\) and any arrangement of the numbers from 1 to \(n\) on a circle, there exists a pair of adjacent numbers whose ratio (when dividing the larger number by the smaller one) is less than \(a\).

Proposed by Mykhailo Shtandenko
1 reply
mshtand1
Yesterday at 11:59 PM
RagvaloD
2 hours ago
f(2) = 7, find all integer functions [Taiwan 2014 Quizzes]
v_Enhance   54
N 2 hours ago by Marcus_Zhang
Find all increasing functions $f$ from the nonnegative integers to the integers satisfying $f(2)=7$ and \[ f(mn) = f(m) + f(n) + f(m)f(n) \] for all nonnegative integers $m$ and $n$.
54 replies
v_Enhance
Jul 18, 2014
Marcus_Zhang
2 hours ago
Floor double summation
CyclicISLscelesTrapezoid   50
N 2 hours ago by Ilikeminecraft
Source: ISL 2021 A2
Which positive integers $n$ make the equation \[\sum_{i=1}^n \sum_{j=1}^n \left\lfloor \frac{ij}{n+1} \right\rfloor=\frac{n^2(n-1)}{4}\]true?
50 replies
CyclicISLscelesTrapezoid
Jul 12, 2022
Ilikeminecraft
2 hours ago
Binary expansion of sqrt3
v_Enhance   29
N 2 hours ago by Jack_w
Source: USA January TST for IMO 2016, Problem 1
Let $\sqrt 3 = 1.b_1b_2b_3 \dots _{(2)}$ be the binary representation of $\sqrt 3$. Prove that for any positive integer $n$, at least one of the digits $b_n$, $b_{n+1}$, $\dots$, $b_{2n}$ equals $1$.
29 replies
v_Enhance
May 17, 2016
Jack_w
2 hours ago
This problem has unintended solution, found by almost all who solved it :(
mshtand1   3
N 3 hours ago by DottedCaculator
Source: Ukrainian Mathematical Olympiad 2025. Day 2, Problem 11.7
Given a triangle \(ABC\), an arbitrary point \(D\) is chosen on the side \(AC\). In triangles \(ABD\) and \(CBD\), the angle bisectors \(BK\) and \(BL\) are drawn, respectively. The point \(O\) is the circumcenter of \(\triangle KBL\). Prove that the second intersection point of the circumcircles of triangles \(ABL\) and \(CBK\) lies on the line \(OD\).

Proposed by Anton Trygub
3 replies
mshtand1
Today at 1:00 AM
DottedCaculator
3 hours ago
number theory
MuradSafarli   6
N 3 hours ago by fathermather_AZE
Find all natural numbers \( k \) such that

\[
4k^3 + 4k + 1
\]
is a perfect square.
6 replies
MuradSafarli
Today at 6:05 AM
fathermather_AZE
3 hours ago
Of course nobody solved it
mshtand1   1
N 3 hours ago by kiyoras_2001
Source: Ukrainian Mathematical Olympiad 2025. Day 1, Problem 9.4
There are \(n^2 + n\) numbers, none of which appears more than \(\frac{n^2 + n}{2}\) times. Prove that they can be divided into \((n+1)\) groups of \(n\) numbers each in such a way that the sums of the numbers in these groups are pairwise distinct.

Proposed by Anton Trygub
1 reply
mshtand1
Yesterday at 11:08 PM
kiyoras_2001
3 hours ago
A kite inside a cyclic
ricarlos   1
N 3 hours ago by MathLuis
Let $ABCD$ be a cyclic quadrilateral. $AC$ and $BD$ intersect at $E$. Let $P$ and $Q$ be the projections of $E$ onto $AB$ and $CD$ and $M$ and $N$ be the midpoints of $BC$ and $AD$, respectively. Prove that $PMQN$ is a kite.
1 reply
ricarlos
4 hours ago
MathLuis
3 hours ago
numbers on blackboard
QueenArwen   1
N 3 hours ago by WallyWalrus
Source: 46th International Tournament of Towns, Junior O-Level P1, Spring 2025
On the blackboard, there are numbers $1, 2, \dots , 100$. At each move, Bob erases arbitrary two numbers $a$ and $b$, where $a \ge b > 0$, and writes the single number $\lfloor{a/b}\rfloor$. After $99$ such moves the blackboard will contain a single number. What is its maximum possible value? (Reminder that $\lfloor{x}\rfloor$ is the maximum integer not exceeding $x$.)
1 reply
QueenArwen
Mar 11, 2025
WallyWalrus
3 hours ago
International Zhautykov Olympiad 2011 - Problem 5
ybalkas   9
N Jan 21, 2023 by top1vien
Let $n$ be integer, $n>1.$ An element of the set $M=\{ 1,2,3,\ldots,n^2-1\}$ is called good if there exists some element $b$ of $M$ such that $ab-b$ is divisible by $n^2.$ Furthermore, an element $a$ is called very good if $a^2-a$ is divisible by $n^2.$ Let $g$ denote the number of good elements in $M$ and $v$ denote the number of very good elements in $M.$ Prove that
\[v^2+v \leq g \leq n^2-n.\]
9 replies
ybalkas
Jan 17, 2011
top1vien
Jan 21, 2023
International Zhautykov Olympiad 2011 - Problem 5
G H J
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ybalkas
31 posts
#1 • 2 Y
Y by Adventure10, Mango247
Let $n$ be integer, $n>1.$ An element of the set $M=\{ 1,2,3,\ldots,n^2-1\}$ is called good if there exists some element $b$ of $M$ such that $ab-b$ is divisible by $n^2.$ Furthermore, an element $a$ is called very good if $a^2-a$ is divisible by $n^2.$ Let $g$ denote the number of good elements in $M$ and $v$ denote the number of very good elements in $M.$ Prove that
\[v^2+v \leq g \leq n^2-n.\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#2 • 2 Y
Y by Adventure10, Mango247
1. Let us prove $g \leq n^2 - n$. The number of elements $m \in M$ such that $\gcd(m,n^2) = 1$ is $\varphi(n^2) \geq n$, since for $n = \prod_{k=1}^s p_k^{\alpha_k}$, with $p_k$ primes and $\alpha_k \geq 1$, we have $\varphi(n^2) = \prod_{k=1}^s (p_k -1) \cdot \prod_{k=1}^s p_k^{2\alpha_k - 1} \geq \prod_{k=1}^s p_k^{\alpha_k} = n$. To these elements $m$ thus correspond at least $n-1$ elements $a = m+1 \in M$ (since $n^2-1$ is one of those elements $m$, unavailable for $a$).
As $ab - b = b(a-1)$, when $\gcd(a-1,n^2)=1$ we would need $n^2 \mid b$ in order to have $n^2 \mid ab - b$, impossible since $1\leq b \leq n^2-1$. Therefore the number of good elements is $g \leq (n^2-1) - (n-1) = n^2 -n$ (with equality reached for $n=2$).

Moreover, any time $\gcd(a-1,n^2)=d > 1$, the element $a$ is good, since $b = n^2/d$ is then available, so in conclusion $a$ is good if and only if $\gcd(a-1,n^2) > 1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#3 • 2 Y
Y by Smoothy, Adventure10
2. Let $a$ be a very good element, so $n^2 \mid a^2 - a = a(a-1)$. Since $\gcd(a,a-1) = 1$, it follows that we must have $a=\alpha x^2$ and $a-1 = \beta y^2$, with $\gcd(x,y) = 1$, $n=xy$ (and also some other restrictions, which are irrelevant). Now assume another very good element $a'$ induces the representation $a'=\alpha' x^2$ and $a'-1 = \beta' y^2$ (using the same $x$ and $y$; if one of them is the same, then the other one needs also be the same).
Then $x^2 \mid a - a'$ and $y^2 \mid (a-1) - (a'-1) = a - a'$, so $n^2 = x^2y^2 \mid |a-a'| < n^2$, therefore $a=a'$, contradiction. As a consequence, the representations of the very good elements $a$ use distinct $x$'s and $y$'s.

Let now $a_1,a_2,\ldots,a_v$ be the $v$ very good elements, with representations $a_k = \alpha_k x_k^2$, indexed such that $1 < x_1 < x_2 < \cdots < x_v$ (we cannot have $x_1 = 1$ since that would imply $y_1 = n$, and so $a_1 - 1 \geq n^2$; and we have seen that the $x_k$ need be distinct). It immediately follows $x_v \geq v+1$.
But then, fixing $b = a_v = \alpha_vx_v^2$, we may choose $a = 1 + \lambda y_v^2$ for all $1 \leq \lambda \leq x_v^2 - 1$, since then $a \leq 1 + (x_v^2 - 1)y_v^2 < n^2$. Moreover, we have $b(a-1) = \alpha_v \lambda x_v^2 y_v^2 = \alpha_v \lambda n^2$, whence $n^2 \mid b(a-1)$. It means all these $a$'s are good, and there are $x_v^2 - 1 \geq (v+1)^2 - 1 = v^2 + 2v$ of them. This means $v^2 + 2v \leq g$, an improvement on the bound asked (and even more maybe could be garnered by considering the other $a_k$ elements, for $1\leq k<v$).
This post has been edited 1 time. Last edited by mavropnevma, Jan 18, 2011, 7:21 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#4 • 2 Y
Y by Adventure10, Mango247
A small correction (needed, since we may have the case with $v=1$, $g=2$, for example for $n=2$, when $v^2 + v = g$). For an understandable reason (!?!), having reached the crux of the problem, I overlooked that in fact always $x_1 = 1$, since for $a_1 = 1$ we have $n^2 \mid 1(1-1) = 0$. The following fixes this oversight.

In general we have $v\geq 1$ ($1$ is very good) and $g \geq 2$ ($1$ and $n+1$ are good). For $v = 1$ therefore we have $v^2 + v \leq g$ (with equality actually occuring for $n=2$, when $g=2$).
If $v>1$, let us analyze when can we have (in the notations of above) $x_2=2$, i.e. $a_2 = \alpha_2\cdot 4$. This implies $n^2 \mid \alpha_2\beta_2 \cdot 4y_2^2$, thus $n^2 = 4y_2^2$, implying $n=2m$ ($m = y_2$).
Then either $a_2 = m^2 + 1$, with $4 \mid m^2+1$, but then $4 \mid 3m^2 - 1$, so $a = 3m^2 > a_2$ is very good, contradiction, or $a_2 = 3m^2 + 1$, with $4 \mid 3m^2+1$, but then $4 \mid m^2 - 1$, so $1 < a = m^2 < a_2$ is very good, contradiction.
Therefore, when $v>1$, we must have $x_2 > 2$, therefore (by the reasoning in the above) $x_v \geq v+1$, with the above proof leading to the conclusion $v^2 + v < v^2 + 2v \leq g$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tiko93
20 posts
#5 • 2 Y
Y by Adventure10, Mango247
We will prove that g=n^2-f(n^2),where f denotes Euler's totient function.
It is very easy to see that ab-b is div. by n^2( a,b are inM) <=>gcd(a-1,n^2)>1.Such that if gcd(a-1,n^2)=1=> b is div.by n^2,contradiction. And if gcd(a-1,n^2)=d>1,then we can take b=(n^2)/d<=(n^2)/2<=n^2-1 ,such that n>1.Thus b is in M and ab-b is div.by n^2.
Thus we get that g is the number of a's in M s.t. gcd(a-1,n^2)>1.And this number equals to g=(n^2-1)-(f(n^2)-1)=n^2-f(n^2) =n^2-n*f(n)<=n^2-n and equality holds if and only if n=2.
Let find the upper bound of v. if n=(product) p^a .a^2-a is div by n^2 implies that a=(u^2)*s ,and a-1=(v^2*t) ,with gcd (u,v)=1 ,n=uv, s is natural and t is nonnegative.s<v^2,and t<u^2.
Thus u =(prod1)p^a, v=(prod2)p^a ,where the set od prime divisors of u and don't intersect and their union is the set of prime divisors of n.
So we get that (u^2)*s-(v^2)*t=1,it has at most one solution in N,such that if there are 2 such solutions (s,t) and (p,q),then (u^2)*s-(v^2)*t=(u^2)*p-(v^2)*q=>(s-p) is div by v^2. which is impossible ,s.t 1<=s,p<v^2.
Such that for each factoring of n=uv ,we get at most one solution ,then the number of very good elements is at most the number of such factorings.If the number of prime factors of n is k,then we get that this number is 2^k-2.So v<=2^k-2
where v is the number of very good elements.
So v^2+v<=<4^k .
Let prove that g>=4^k).
Such that g=n^2-f(n^2)=n^2-nf(n)>=n^2-n(n-1)=n.
And let prove that n>=4^k.
The last one is true,because we can prove that only finitely many numbers don't satisfy to this inequality.For them we can calculate the value of g .This numbers are 2*3*5 and 2*3*7.

So g>=v^2+v.
This post has been edited 1 time. Last edited by Tiko93, Jan 28, 2011, 11:48 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tiko93
20 posts
#6 • 2 Y
Y by Adventure10, Mango247
More,we can prove that lim(v/g)=0
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mavropnevma
15142 posts
#7 • 2 Y
Y by Adventure10 and 1 other user
Indeed, $g(n) = n^2 - \varphi(n^2)$, where $\varphi$ is the Euler totient, while $v(n) = 2^{\omega(n)} -1$, where $\omega$ is the arithmetic function counting the distinct primes dividing $n$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mmmath
14 posts
#8 • 1 Y
Y by Adventure10
i want to prove that if $n=p_1^{a_1}....P_k^{a_k}$ Then $v=2^k-1$ and $g=n^{2}-\varphi(n^{2})$ then it's easy to prove the inequlity.
$x(x-1)\equiv 0\pmod{p^{2a_i}}$so this equality have to roots so the equality$x(x-1)\equiv 0\pmod{n^2}$have $2^k$roots(by chinese remainder) but $n^2$ is one of the roots so$v=2^k-1$
so we can prove the inequality.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1185 posts
#9
Y by
Here is a solution, expanding upon mavropnevma's spoilers.

Regarding $n^2 \mid b(a-1)$, if $\mbox{gcd}((a-1),n^2) = 1$, then $n^2 \mid b$, which is impossible for $1\leq b \leq n^2$; and if $\mbox{gcd}((a-1),n^2) = d>1$, then picking $b=\frac{n^2}{d}$ works. Hence $g$ is equal to $n^2-1$ minus the number of integers in $\{0,1,\ldots,n^2-2\}$ coprime with $n^2$, which is $n^2 - 1 - (\varphi(n^2) - 1) = n^2 - \varphi(n^2)$, where $\varphi$ is the Euler totient. In particular $g\leq n^2 - n$ is equivalent to $\varphi(n^2) \geq n$ which is provable in many ways - either by proving $\varphi(p^{2k}) \geq p^k$ for prime $p$ or just observing that $kn-1$, $k=1,2,\ldots,n$ are coprime with $n$.

Regarding $n^2 \mid a^2 - a$, let $n = \prod_{i=1}^k p_i^{\alpha_i}$ - we equivalently want $p_i^{2\alpha_i} \mid a(a-1)$ for all $i$. As $a$ and $a-1$ are relatively prime, either $a\equiv 0 \pmod {p_i^{2\alpha_i}}$ or $a\equiv 1 \pmod {p_i^{2\alpha_i}}$. So for each $i$ there are two choices for the remainder of $a$ - hence by the Chinese Remainder Theorem there are $2^k$ choices for $a$ modulo $n^2$ overall. As we have to exclude the possibility $a=0$, we deduce $v = 2^k - 1$ and so $v^2 + v = 2^{2k} - 2^k$.

To finish off, we will prove $4^k + \varphi(n^2) \leq n^2$ for $k\geq2$ (for $k=1$ we want $2+\varphi(n^2) \leq n^2$ which is true since $1$ and $n^2-1$ are coprime with $n^2$). Clearly $\varphi(n^2) \leq n^2-n$ (as multiples of $n$ are not coprime with $n$) and so if $n\geq 4^k$ we are done; this certainly holds when $3\nmid n$, as then (recall that $n$ is odd) $n = \prod_{i=1}^k p_i^{\alpha_i} \geq 5^k$. Now suppose $n=3^{\alpha}m$ and $m=\prod_{i=2}^k p_i^{\alpha_i}$. Then we want $4^k + 2\cdot 3^{2\alpha-1}\varphi(m^2) \leq 3^{2\alpha}m^2$ - equivalently, $\frac{4^k}{3^{2\alpha}} + \frac{2}{3}\varphi(m^2) \leq m^2$. With $\varphi(m^2) \leq m^2 - m$ we reduce to $\frac{4^k}{9} \leq \frac{m^2+2m}{3}$, which follows by $m=\prod_{i=2}^k p_i^{\alpha_i} \geq 5^{k-1}$.
This post has been edited 2 times. Last edited by Assassino9931, Jan 3, 2022, 1:50 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
top1vien
58 posts
#10
Y by
My solution (beautiful problem):
Consider a good number $a$, there exists $b\in M$ which satisfies $n^2\;|\;b(a-1)$
If $(a-1,n^2)=1$ then $n^2\;|\;b$ (contradiction since $1\leq b\leq n^2-1$)
So we must have $(a-1,n^2)>1$
If $(a-1,n^2)=d>1$, choose $b=\frac{n^2}{d}$ then $n^2\;|\;b(a-1)$
So $a$ is good if and only if $(a-1,n^2)>1$
So we get the number of good numbers $a$ which is $n^2-1-(\varphi(n^2)-1)=n^2-\varphi(n^2)$
Notice that: $\varphi(n^2)=\displaystyle n^2\prod_{p\in\wp,p|n}\left(1-\frac{1}{p}\right)=n.n\prod_{p\in\wp,p|n}\left(1-\frac{1}{p}\right)=n\varphi(n)$
So we have $g=n^2-\varphi(n^2)=n^2-n\varphi(n)\leq n^2-n$
Consider the left inequality
Consider a very good number $a$
$p$ is a prime factor of $n$, we have $p^{v_p(n^2)}\;|\;a(a-1)$
But $(a,a-1)=1$ so $p^{v_p(n^2)}\;|\;a$ or $p^{v_p(n^2)}\;|\;a-1$
If $p^{v_p(n^2)}\;|\;a$ for all $p|n$ then $n^2\;|\;a$ (contradiction since $1\leq a\leq n^2-1$)
So we must have $a$ is very good if and only if for all prime factor $p$ of $n$ then $p^{v_p(n^2)}\;|\;a$ or $a-1$, also there must exists a prime factor $p$ of $n$ such that $p^{v_p(n^2)}\;|\;a-1$
Call $r$ the number of distinct prime factor of $n$
We can evaluate $v=2^r-1$ (simple counting)
The problem becomes: Prove that $2^r(2^r-1)\leq n^2-\varphi(n^2)$
Induction on $r$. For $r=1$ the problem is trivial
If the problem is true for some $r$, then $2^r(2^r-1)\leq n^2-\varphi(n^2)$, for all positive integer $n$ which have $r$ distinct prime factors
Consider a prime number $q$ with $(q,n)=1$
We need to prove that $2^{r+1}(2^{r+1}-1)\leq q^{2\alpha}n^2-\varphi(q^{2\alpha}n^2)$ with some $\alpha\in\mathbb Z^+$, but it is true since
$
        q^{2\alpha}n^2\left(1-\prod_{p\in\wp,p|qn}\left(1-\frac{1}{p}\right)\right)\geq q^{2}n^2\left(1-\prod_{p\in\wp,p|qn}\left(1-\frac{1}{p}\right)\right)$
$=q^2n^2-\varphi(q^2n^2)$
$=q^2(n^2-\varphi(n^2))+q^2\varphi(n^2)-q(q-1)\varphi(n^2)$
$\geq q^2.2^r(2^r-1)+q\varphi(n^2)$
$\geq 4.2^r(2^r-1)+2n\varphi(n)$
$\geq 4.2^r(2^r-1)+2^{r+1}$ (since $n$ has $r$ distinct prime factors)
$=2^{r+1}(2^{r+1}-1)$
Combining the 2 inequalities we have $m^2+m\leq k\leq n^2-n$, as desired
The equality happens, for example $n=2$
Z K Y
N Quick Reply
G
H
=
a