Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
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
Apr 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
Interesting inequalities
sqing   3
N a minute ago by lbh_qys
Source: Own
Let $ a,b,c\geq  0 $ and $  a^2+b^2+c^2+abc=4$ . Prove that
$$k(a+b+c) -ab-bc\geq 4\sqrt{k(k+1)}-(k+4)$$Where $ k\geq \frac{16}{9}. $
$$ \frac{16}{9}(a+b+c) -ab-bc\geq  \frac{28}{9}$$
3 replies
1 viewing
sqing
2 hours ago
lbh_qys
a minute ago
NEPAL TST DAY-2 PROBLEM 1
Tony_stark0094   9
N 4 minutes ago by cursed_tangent1434
Let the sequence $\{a_n\}_{n \geq 1}$ be defined by
\[
a_1 = 1, \quad a_{n+1} = a_n + \frac{1}{\sqrt[2024]{a_n}} \quad \text{for } n \geq 1, \, n \in \mathbb{N}
\]Prove that
\[
a_n^{2025} >n^{2024}
\]for all positive integers $n \geq 2$.

$\textbf{Proposed by Prajit Adhikari, Nepal.}$
9 replies
Tony_stark0094
Apr 12, 2025
cursed_tangent1434
4 minutes ago
Inspired by Omerking
sqing   1
N 7 minutes ago by lbh_qys
Source: Own
Let $ a,b,c>0 $ and $  ab+bc+ca\geq \dfrac{1}{3}. $ Prove that
$$  ka+ b+kc\geq \sqrt{\frac{4k-1}{3}}$$Where $ k\geq 1.$$$  4a+ b+4c\geq \sqrt{5}$$
1 reply
1 viewing
sqing
36 minutes ago
lbh_qys
7 minutes ago
Weird Inequality Problem
Omerking   4
N an hour ago by sqing
Following inequality is given:
$$3\geq ab+bc+ca\geq \dfrac{1}{3}$$Find the range of values that can be taken by :
$1)a+b+c$
$2)abc$

Where $a,b,c$ are positive reals.
4 replies
Omerking
Yesterday at 8:56 AM
sqing
an hour ago
A Projection Theorem
buratinogigle   2
N an hour ago by wh0nix
Source: VN Math Olympiad For High School Students P1 - 2025
In triangle $ABC$, prove that
\[ a = b\cos C + c\cos B. \]
2 replies
buratinogigle
4 hours ago
wh0nix
an hour ago
Turbo's en route to visit each cell of the board
Lukaluce   18
N an hour ago by yyhloveu1314
Source: EGMO 2025 P5
Let $n > 1$ be an integer. In a configuration of an $n \times n$ board, each of the $n^2$ cells contains an arrow, either pointing up, down, left, or right. Given a starting configuration, Turbo the snail starts in one of the cells of the board and travels from cell to cell. In each move, Turbo moves one square unit in the direction indicated by the arrow in her cell (possibly leaving the board). After each move, the arrows in all of the cells rotate $90^{\circ}$ counterclockwise. We call a cell good if, starting from that cell, Turbo visits each cell of the board exactly once, without leaving the board, and returns to her initial cell at the end. Determine, in terms of $n$, the maximum number of good cells over all possible starting configurations.

Proposed by Melek Güngör, Turkey
18 replies
Lukaluce
Monday at 11:01 AM
yyhloveu1314
an hour ago
Perhaps a classic with parameter
mihaig   1
N 2 hours ago by LLriyue
Find the largest positive constant $r$ such that
$$a^2+b^2+c^2+d^2+2\left(abcd\right)^r\geq6$$for all reals $a\geq1\geq b\geq c\geq d\geq0$ satisfying $a+b+c+d=4.$
1 reply
mihaig
Jan 7, 2025
LLriyue
2 hours ago
Connected graph with k edges
orl   26
N 2 hours ago by Maximilian113
Source: IMO 1991, Day 2, Problem 4, IMO ShortList 1991, Problem 10 (USA 5)
Suppose $ \,G\,$ is a connected graph with $ \,k\,$ edges. Prove that it is possible to label the edges $ 1,2,\ldots ,k\,$ in such a way that at each vertex which belongs to two or more edges, the greatest common divisor of the integers labeling those edges is equal to 1.

Note: Graph-Definition. A graph consists of a set of points, called vertices, together with a set of edges joining certain pairs of distinct vertices. Each pair of vertices $ \,u,v\,$ belongs to at most one edge. The graph $ G$ is connected if for each pair of distinct vertices $ \,x,y\,$ there is some sequence of vertices $ \,x = v_{0},v_{1},v_{2},\cdots ,v_{m} = y\,$ such that each pair $ \,v_{i},v_{i + 1}\;(0\leq i < m)\,$ is joined by an edge of $ \,G$.
26 replies
orl
Nov 11, 2005
Maximilian113
2 hours ago
3 var inquality
sqing   2
N 2 hours ago by sqing
Source: Own
Let $ a,b,c> 0 $ and $  4(a+b) +3c-ab  \geq10$ . Prove that
$$a^2+b^2+c^2+kabc\geq k+3$$Where $0\leq k \leq 1. $
$$a^2+b^2+c^2+abc\geq 4$$
2 replies
sqing
3 hours ago
sqing
2 hours ago
Pls solve this FE
ItzsleepyXD   2
N 2 hours ago by ItzsleepyXD
Source: My friend
Let $\mathbb R$ be the set of real numbers. Determine all functions $f:\mathbb R\to\mathbb R$ that satisfy the equation\[f(x^2f(x+y))=f(xyf(x))+xf(x)^2\]for all real numbers $x$ and $y$.
2 replies
ItzsleepyXD
Nov 26, 2023
ItzsleepyXD
2 hours ago
The old one is gone.
EeEeRUT   3
N 3 hours ago by ItzsleepyXD
Source: EGMO 2025 P2
An infinite increasing sequence $a_1 < a_2 < a_3 < \cdots$ of positive integers is called central if for every positive integer $n$ , the arithmetic mean of the first $a_n$ terms of the sequence is equal to $a_n$.

Show that there exists an infinite sequence $b_1, b_2, b_3, \dots$ of positive integers such that for every central sequence $a_1, a_2, a_3, \dots, $ there are infinitely many positive integers $n$ with $a_n = b_n$.
3 replies
EeEeRUT
4 hours ago
ItzsleepyXD
3 hours ago
Interesting inequalities
sqing   4
N 3 hours ago by sqing
Source: Own
Let $   a,b    $ be reals such that $  a^2+ab+b^2 =1$ . Prove that
$$  \frac{8}{ 5 }> \frac{1}{ a^2+1 }+ \frac{1}{ b^2+1 } \geq 1$$$$   \frac{9}{ 5 }\geq\frac{1}{ a^4+1 }+ \frac{1}{ b^4+1 } \geq 1$$$$  \frac{27}{ 14 }\geq \frac{1}{ a^6+1 }+ \frac{1}{ b^6+1 } \geq  1$$Let $   a,b    $ be reals such that $  a^2+ab+b^2 =3$ . Prove that
$$  \frac{13}{ 10 }> \frac{1}{ a^2+1 }+ \frac{1}{ b^2+1 } \geq \frac{1}{ 2 }$$$$   \frac{6}{ 5 }>\frac{1}{ a^4+1 }+ \frac{1}{ b^4+1 } \geq   \frac{1}{ 5 }$$$$  \frac{1}{ a^6+1 }+ \frac{1}{ b^6+1 } \geq   \frac{1}{ 14 }$$
4 replies
sqing
Yesterday at 8:32 AM
sqing
3 hours ago
Ant wanna come to A
Rohit-2006   3
N 3 hours ago by Rohit-2006
An insect starts from $A$ and in $10$ steps and has to reach $A$ again. But in between one of the s steps and can't go $A$. Find probability. For example $ABCDCDEDEA$ is valid but $ABABCDEABA$ is not valid.

*Too many edits, my brain had gone to a trip
3 replies
Rohit-2006
Yesterday at 6:47 PM
Rohit-2006
3 hours ago
BMO Shortlist 2021 A5
Lukaluce   16
N 3 hours ago by Sedro
Source: BMO Shortlist 2021
Find all functions $f: \mathbb{R}^{+} \rightarrow \mathbb{R}^{+}$ such that
$$f(xf(x + y)) = yf(x) + 1$$holds for all $x, y \in \mathbb{R}^{+}$.

Proposed by Nikola Velov, North Macedonia
16 replies
Lukaluce
May 8, 2022
Sedro
3 hours ago
Approximation of N/2 with fractional parts
Miquel-point   9
N Apr 21, 2023 by Tintarn
Source: KoMaL A. 421
Find two positive constants $\alpha$ and $c$ such that
\[\left|\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}-\frac{N}2\right|<cN^{1-\alpha}\]holds for all positive integers $N$.
9 replies
Miquel-point
Apr 17, 2023
Tintarn
Apr 21, 2023
Approximation of N/2 with fractional parts
G H J
G H BBookmark kLocked kLocked NReply
Source: KoMaL A. 421
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Miquel-point
470 posts
#1
Y by
Find two positive constants $\alpha$ and $c$ such that
\[\left|\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}-\frac{N}2\right|<cN^{1-\alpha}\]holds 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.
R8kt
302 posts
#6
Y by
Is there an other source other than Kömal?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PhilippineMonkey
315 posts
#8
Y by
For any $\alpha {}$,$c{}$.Choose $N=(m+1)^2$.($m{}$ large enough)Then $m\sim N^{1/2}$.
Assume $S=\sum_{k=1}^{N}\left \{\frac{k^2}{N}\right \}$.Then we have
$$S=\sum_{k=1}^{N}\frac{k^2}N-\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor =\frac 13N^2+\frac 12N+\frac 16-\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor$$Notice that when $1\leqslant k\leqslant \lfloor \sqrt{N-1}\rfloor $,$\lfloor \frac{k^2}N\rfloor =0$.
And when $\lfloor \sqrt{iN-1}\rfloor < k \leqslant \lfloor \sqrt{(i+1)N-1}\rfloor$,$\lfloor \frac{k^2}N\rfloor =i$.So we have
\begin{align*}
\sum_{k=1}^{N}\lfloor \frac{k^2}{N}\rfloor & = \sum_{i=1}^{N-1}i\left(\lfloor \sqrt{(i+1)N-1}\rfloor-\lfloor \sqrt{iN-1}\rfloor\right)+N\\
& = (N-1)^2-\sum_{i=1}^{N-1}\lfloor \sqrt{iN-1}\rfloor +N\\
& = N^2-N+1-\sum_{i=1}^{N-1}\lfloor \sqrt{iN-1}\rfloor
\end{align*}Hence
$$\left |S-\frac N2\right |=\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|$$$$\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor \geqslant \sum_{i=1}^{N-1}\sqrt {iN}-N+1$$Notice that
$$\sum_{i=1}^{N-1}\sqrt {iN}=\sqrt N \sum_{i=1}^{N-1}\sqrt i\geqslant \sqrt N\sum_{t=1}^{m}t(2t+1)=\sqrt N\left(\frac 23m^3+\frac 32m^2+\frac 56m\right )\sim \frac 23N^2+\frac 32N^{3/2}+\frac 56N$$So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pco
23501 posts
#9
Y by
PhilippineMonkey wrote:
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Hemm, I did not check your proof but is not the requested question $|S-\frac N2|\le cN^{1-\alpha}$ ? (the exact contrary of what you proved :maybe: )
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PhilippineMonkey
315 posts
#10
Y by
@above,I mean there isn't any solution for ${\alpha}$,$c{}$ at all.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9036 posts
#14
Y by
PhilippineMonkey wrote:
So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Note that by definition we trivially have $\vert S\vert \le N$. So your computation is obviously not correct...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oVlad
1734 posts
#15
Y by
Tintarn wrote:
PhilippineMonkey wrote:
So
\begin{align*}
\left |S-\frac N2\right | & =\left | -\frac 23N^2+N-\frac 56+\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\right|\\
& \geqslant \frac 32N^{3/2}+\frac{11}6N-\frac 56\\
& > cN^{1-\alpha}
\end{align*}We're done.$\square$
Note that by definition we trivially have $\vert S\vert \le N$. So your computation is obviously not correct...
Adding to this, let me explain what precisely is incorrect. You proved that \[\sum_{i=1}^{N-1} \lfloor \sqrt{iN-1}\rfloor\geqslant K\sim\frac 23N^2+\frac 32N^{3/2}+\frac 56N,\]but the fact that $K{}$ is asymptotical with $2N^2/3+3N^{3/2}/2+5N/6$ doesn't really give you much info regarding $K$, except that it is of the form $2N^2/3+o(N^2)$. For all you know, $K$ might be of the form \[\frac{2}{3}N^2-10000N^{3/2},\]which is still asymptotical with $2N^2/3+3N^{3/2}/2+5N/6$. This is not the case, but after some computations you'll see that \[\sqrt N\left(\frac 23m^3+\frac 32m^2+\frac 56m\right )\]written in terms of $N$ is actually smaller than $2N^2/3$.
This post has been edited 4 times. Last edited by oVlad, Aug 22, 2023, 4:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9036 posts
#18 • 5 Y
Y by oVlad, GHHardy911, Miquel-point, Joider, R8kt
@above: Please don't spam this thread by bumping every minutes and quoting whole (long) posts.
Here is a solution which shows that any $\alpha>\frac{1}{2}$ works if $c$ is chosen sufficiently large (and I am pretty sure that this is sharp).
Indeed, let us show that
\[\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}=\frac{N}{2}+\mathcal{O}\left(N^{\frac{1}{2}+\varepsilon}\right)\]which is clearly sufficient.
The key is the fact that we can expand the sawtooth function $\{x\}-\frac{1}{2}$ into a Fourier Series $\sum_{m \in \mathbb{Z}, m \ne 0} \frac{e^{2\pi i mx}}{2\pi im}$. More precisely, since this is not absolutely convergent, we require the truncated version
\[\{x\}-\frac{1}{2}=\sum_{1 \le \vert m\vert \le M} \frac{e^{2\pi i mx}}{2\pi im}+\mathcal{O}\left(\frac{1}{M\|x\|}\right)\]where $\|x\|$ is the distance to the nearest integer (so this identity only makes sense for $x \not \in \mathbb{Z}$).
Hence we obtain
\[\sum_{k=1}^N \left\{\frac{k^2}{N}\right\}=\frac{N}{2}+\mathcal{O}\left(\sum_{1 \le m \le M} \frac{1}{m}\left\vert \sum_{k=1}^N e^{2\pi i \frac{mk^2}{N}}\right\vert+\#\{k: N \mid k^2\}+\sum_{k: N \nmid k^2}  \frac{1}{M\left\|\frac{k^2}{N}\right\|}\right).\]Now the inner sum is a Gauß sum which is $\sqrt{N}$ in absolute value when $m$ is coprime to $N$ and so in general is bounded by $(N;m) \cdot \sqrt{N}$ and so the whole first error term is bounded by $\sqrt{N} \cdot \log(M) \cdot \tau(N)$ which is $\mathcal{O}\left(N^{1/2+\varepsilon}\right)$ as long as $M \le N$ (say).
For the second error term it is easy to see that $\{k: N \mid k^2\}$ is also $\mathcal{O}(\sqrt{N})$.
Finally, the third term is bounded by
\[\frac{N}{M} \sum_{1 \le a \le \frac{N}{2}} \frac{1}{a} \cdot \#\{k: k^2 \equiv \pm a \pmod{N}\} \ll \frac{N^{1+\varepsilon}}{M}\sum_{1 \le a \le \frac{N}{2}} \frac{(a;N)}{a} \ll \frac{N^{1+\varepsilon}}{M}\]as before. Choosing e.g. $M=\sqrt{N}$ or $M=N$ now yields the desired result.
This post has been edited 1 time. Last edited by Tintarn, Apr 21, 2023, 11:16 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
oVlad
1734 posts
#19 • 1 Y
Y by GHHardy911
Very nice, Tintarn! I tried this problem and (heuristically) I reached the same order of magnitude as you, but didn't manage to finish. I mostly followed the same idea as #8. Once I reached \[\left|\sum_{i=1}^N\left\{\frac{i^2}{N}\right\}-\frac{N}{2}\right|=\left|\frac{2}{3}N^2-\frac{1}{6}-\sum_{i=1}^N\lfloor\sqrt{iN-1}\rfloor\right|,\]I tried to approximate the sum of floors with $\sqrt{N}(\sqrt{1}+\cdots+\sqrt{N})$ and use the Euler-Maclaurin summation to get \[\sum_{i=1}^N\sqrt{i}=\frac{2}{3}N^{3/2}+\frac{1}{2}N^{1/2}+\zeta\left(\frac{1}{2}\right)+O\left(N^{-1/2}\right),\]which is very close, but I am short of an $N/2$. Do you think this idea works?

Edit: Yeah, that's exactly it. Thanks for the opinion.
This post has been edited 2 times. Last edited by oVlad, Nov 22, 2023, 10:10 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tintarn
9036 posts
#21 • 2 Y
Y by GHHardy911, oVlad
oVlad wrote:
I tried to approximate the sum of floors with $\sqrt{N}(\sqrt{1}+\cdots+\sqrt{N})$ and use the Euler-Maclaurin summation to get \[\sum_{i=1}^N\sqrt{i}=\frac{2}{3}N^{3/2}+\frac{1}{2}N^{1/2}+\zeta\left(\frac{1}{2}\right)+O\left(N^{-1/2}\right),\]which is very close, but I am short of an $N/2$. Do you think this idea works?
I am not sure this can work... I guess the $\frac{N}{2}$ that you are off comes from the fact that you are ignoring the floors, right? Because on average you expect that you lose $\frac{1}{2}$ from each floor.
In general, I am not sure approximations like Euler-McLaurin are useful to approximate these irregular floor functions, at least on such a fine scale.
This is really what the Fourier Series I wrote down is doing: It approximates uniformly the floor function (or equivalently the sawtooth function).
Z K Y
N Quick Reply
G
H
=
a