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

G
Topic
First Poster
Last Poster
Functional Equation!
EthanWYX2009   4
N 4 minutes ago by hef4875
Source: 2025 TST 24
Find all functions $f:\mathbb Z\to\mathbb Z$ such that $f$ is unbounded and
\[2f(m)f(n)-f(n-m)-1\]is a perfect square for all integer $m,n.$
4 replies
EthanWYX2009
Mar 29, 2025
hef4875
4 minutes ago
Sneaky one
Sunjee   2
N 20 minutes ago by Sunjee
Find minimum and maximum value of following function.
$$f(x,y)=\frac{\sqrt{x^2+y^2}+\sqrt{(x-2)^2+(y-1)^2}}{\sqrt{x^2+(y-1)^2}+\sqrt{(x-2)^2+y^2}} $$
2 replies
Sunjee
37 minutes ago
Sunjee
20 minutes ago
Simple but hard
Lukariman   2
N 43 minutes ago by Lukariman
Given triangle ABC. Outside the triangle, construct rectangles ACDE and BCFG with equal areas. Let M be the midpoint of DF. Prove that CM passes through the center of the circle circumscribing triangle ABC.
2 replies
Lukariman
Today at 2:47 AM
Lukariman
43 minutes ago
D1033 : A problem of probability for dominoes 3*1
Dattier   1
N an hour ago by Dattier
Source: les dattes à Dattier
Let $G$ a grid of 9*9, we choose a little square in $G$ of this grid three times, we can choose three times the same.

What the probability of cover with 3*1 dominoes this grid removed by theses little squares (one, two or three) ?
1 reply
Dattier
Yesterday at 12:29 PM
Dattier
an hour ago
Please I need help
yaybanana   2
N an hour ago by yaybanana
Source: Samin Riasat Handout
Please can someone help me, I'm bad at inequalities and I have no clue on how to solve this :

Let $a,b,c$ be positive reals, s.t $a+b+c=1$, prove that :

$\frac{a}{\sqrt{a+2b}}+\frac{b}{\sqrt{b+2c}}+\frac{c}{\sqrt{c+2a}}<\sqrt{\frac{3}{2}}$
2 replies
yaybanana
an hour ago
yaybanana
an hour ago
LCM genius problem from our favorite author
MS_Kekas   2
N an hour ago by AshAuktober
Source: Kyiv City MO 2022 Round 2, Problem 8.1
Find all triples $(a, b, c)$ of positive integers for which $a + [a, b] = b + [b, c] = c + [c, a]$.

Here $[a, b]$ denotes the least common multiple of integers $a, b$.

(Proposed by Mykhailo Shtandenko)
2 replies
MS_Kekas
Jan 30, 2022
AshAuktober
an hour ago
How many residues modulo p are sums of two squares?
Tintarn   8
N 2 hours ago by thaiquan2008
Source: Austrian MO 2024, Final Round P6
For each prime number $p$, determine the number of residue classes modulo $p$ which can
be represented as $a^2+b^2$ modulo $p$, where $a$ and $b$ are arbitrary integers.

(Daniel Holmes)
8 replies
Tintarn
Jun 1, 2024
thaiquan2008
2 hours ago
Interesting inequalities
sqing   2
N 2 hours ago by sqing
Source: Own
Let $a,b,c \geq 0 $ and $ab+bc+ca- abc =3.$ Show that
$$a+k(b+c)\geq 2\sqrt{3 k}$$Where $ k\geq 1. $
Let $a,b,c \geq 0 $ and $2(ab+bc+ca)- abc =31.$ Show that
$$a+k(b+c)\geq \sqrt{62k}$$Where $ k\geq 1. $
2 replies
sqing
6 hours ago
sqing
2 hours ago
abc = 1 Inequality generalisation
CHESSR1DER   7
N 2 hours ago by CHESSR1DER
Source: Own
Let $a,b,c > 0$, $abc=1$.
Find min $ \frac{1}{a^m(bx+cy)^n} + \frac{1}{b^m(cx+ay)^n} + \frac{1}{c^m(cx+ay)^n}$.
$1)$ $m,n,x,y$ are fixed positive integers.
$2)$ $m,n,x,y$ are fixed positive real numbers.
7 replies
CHESSR1DER
Yesterday at 6:40 PM
CHESSR1DER
2 hours ago
Old problem
kwin   2
N 2 hours ago by lbh_qys
Let $ a, b, c > 0$ . Prove that:
$$(a^2+b^2)(b^2+c^2)(c^2+a^2)(ab+bc+ca)^2 \ge 8(abc)^2(a^2+b^2+c^2)^2$$
2 replies
kwin
Today at 3:44 AM
lbh_qys
2 hours ago
IMO Solution mistake
CHESSR1DER   0
3 hours ago
Source: Mistake in IMO 1982/1 4th solution
I found a mistake in 4th solution at IMO 1982/1. It gives answer $660$ and $661$. But right answer is only $660$. Should it be reported somewhere in Aops?
0 replies
CHESSR1DER
3 hours ago
0 replies
Floor double summation
CyclicISLscelesTrapezoid   52
N Apr 23, 2025 by lpieleanu
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?
52 replies
CyclicISLscelesTrapezoid
Jul 12, 2022
lpieleanu
Apr 23, 2025
Floor double summation
G H J
Source: ISL 2021 A2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
huashiliao2020
1292 posts
#41 • 1 Y
Y by cubres
Nice! A bit on the easy side of A2s imo

The answer is $n+1$ prime; the key is to see $$\sum_{i=1}^n \sum_{j=1}^n \frac{ij}{n+1} = \frac{1}{n+1} \left( 1+2+\dots+n \right)^2 = \frac{n^2(n+1)}{4}\implies\sum_{i=1}^n \sum_{j=1}^n \left\lfloor \frac{ij}{n+1} \right\rfloor=\frac{n^2(n-1)}{4}\iff\sum_{i=1}^n \sum_{j=1}^n \left\{ \frac{ij}{n+1} \right\} = \frac{n^2}{2}.$$Indeed, $$\left\{ \frac{ij}{n+1} \right\} + \left\{ \frac{i(n+1-j)}{n+1} \right\} =\{ 1 \forall n+1 \nmid ij, 0\forall n+1\mid ij\}.$$By pairing, we deduce that we need $n+1\nmid ij$ always; in particular, we must have $n+1$ is prime. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathmax12
6051 posts
#42 • 1 Y
Y by cubres
We claim that this is true if and only if $n+1,$ is prime.

Note, that $\sum_{i=1}^n \sum_{j=1}^n \frac{ij}{n+1}=\sum_{i=1}^n \frac{i(1+2+3+4+5+......+n)}{n+1}=\frac{(1+2+3+4+5+.....+n)^2}{n+1}=\frac{\frac{(n(n+1))^2}{4}}{n+1}=\frac{(n+1)\cdot n^2}{4}.$ Now, let $\left \{x\right\}=x-\lfloor x \rfloor$ note that $\sum_{i=1}^n \sum_{j=1}^n \left\{ \frac{ij}{n+1}\right\}=\frac{(n+1) \cdot n^2}{4}-\frac{(n-1)\cdot n^2}{4}=\frac{n^2}{2},$ next $\left\{\frac{ij}{n+1}\right\} + \left \{\frac{i(n+1-j)}{n+1}\right\},$ is $0$ if and only if $\frac{ij}{n+1}$ is an integer, but then contradicion so $n+1$ is prime.
This post has been edited 2 times. Last edited by mathmax12, Sep 14, 2023, 8:27 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4189 posts
#43 • 1 Y
Y by cubres
The answer is when $n+1$ is prime. Multiply the equation by $n+1$ to get $$\sum ij-\sum (ij\pmod{n+1})=\frac{n^2(n+1)(n-1)}{4}.$$Of course, we have $$\sum ij = (\frac{n(n+1)}{2})^2,$$so this simply becomes $$\sum (ij\pmod{n+1})=\frac{n^2(n+1)}{2}.$$
Looking carefully at this statement, this is saying that the "average" residue in the multiplication table mod $n+1$ is $\frac{n+1}{2}$, aka the average of all distinct nonzero residues. If $n+1$ is prime this is clearly true as each row contains each nonzero residue exactly once.

This "summing by row" method motivates the following claim:

\begin{claim}
Fix $i$. Then, we have $$\sum_{1\leq j\leq n}(ij\pmod{n+1})\leq n\times \frac{n+1}{2}$$with equality if and only if $i$ is relatively prime to $n+1$.
\end{claim}

\begin{proof}
Every nonzero residue that is a multiple of $\gcd(i,n+1)$ shows up a $\gcd(i,n+1)$ times. Let this be $d$. Then, the total sum is $$d\times d(\frac{(\frac{n+1}{d}-1)(\frac{n+1}{d})}{2})=\frac{(n+1-d)(n+1)}{2}\leq \frac{n(n+1)}{2}$$with equality only when $d=1$.
\end{proof}

Summing this over all $i$, we get that all such $i$ need to be relatively prime to $n+1$. Hence, $n+1$ must be prime.
This post has been edited 1 time. Last edited by john0512, Nov 29, 2023, 4:38 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blackbluecar
303 posts
#44 • 1 Y
Y by cubres
We note that \[ \frac{n^2(n-1)}{4} = \sum_{i=1}^n \sum_{j=1}^n \left\lfloor \frac{ij}{n+1} \right\rfloor = \sum_{i=1}^n \sum_{j=1}^n \frac{ij}{n+1} - \sum_{i=1}^n \sum_{j=1}^n\left \{ \frac{ij}{n+1} \right \} \]First, we have \[ \sum_{i=1}^n \sum_{j=1}^n \frac{ij}{n+1} = \sum_{i=1}^n \left ( \frac{i+2i+ \cdots +ni}{n+1} \right ) = \sum_{i=1}^n \frac{i}{n+1} \cdot \frac{n(n+1)}{2} = \sum_{i=1}^n \frac{in}{2} = \frac{n}{2} \cdot \frac{n(n+1)}{2} = \frac{n^2(n+1)}{4} \]
Thus, \[ \frac{n^2(n-1)}{4} = \frac{n^2(n+1)}{4} - \sum_{i=1}^n \sum_{j=1}^n\left \{ \frac{ij}{n+1} \right \} \Longleftrightarrow \sum_{i=1}^n \sum_{j=1}^n\left \{ \frac{ij}{n+1} \right \} = \frac{n^2}{2} \]
Claim: $\sum_{i=1}^n\left \{ \frac{ki}{n+1} \right \} \leq \frac{n}{2}$ with equality only at $\gcd(k,n+1)=1$.

Assume $\gcd(k,n+1)=d$. We note that \[ \sum_{i=1}^n \left \{ \frac{ki}{n+1} \right \} = d \cdot \sum_{i=1}^{\frac{n+1}{d}}  \frac{i}{(n+1)/d} = \frac{n-d+1}{2} \leq \frac{n}{2}\]with obvious only equality case at $d=1$ as desired. $\square$

Since \[ \frac{n^2}{2} = \sum_{i=1}^n \sum_{j=1}^n\left \{ \frac{ij}{n+1} \right \} \leq n \cdot \frac{n}{2}\]which implies that equality holds for each inequality above. Thus, if $k < n+1$ then $\gcd(k,n+1)=1$ which is equivalent to $n+1$ being prime.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shreyasharma
682 posts
#47 • 1 Y
Y by cubres
The answer is $\boxed{n + 1 \text{ prime}}$.

We cry. Split the double sum into integer and fractional parts so that we have,
\begin{align*}
\sum_{i = 1}^n \sum_{j = 1}^n \left\{ \frac{ij}{n+1} \right\} &=  \sum_{i = 1}^n \sum_{j = 1}^n\left( \frac{ij}{n+1} \right) - \frac{n^2(n-1)}{4}\\
&= \sum_{i=1}^n \frac{n \cdot i}{2} - \frac{n^2(n-1)}{4}\\
&= \frac{n^2(n+1)}{4} - \frac{n^2(n - 1)}{4}\\
&= \frac{n^2}{2}
\end{align*}Now interpret the fractional part thing as follows. We really just need,
\begin{align*}
\sum_{i=1}^n \sum_{j=1}^n (ij \bmod{n + 1}) &= \frac{n^2(n+1)}{2}
\end{align*}Note that,
\begin{align*}
ij + i(n + 1 -j) \equiv 0 \pmod{n+1}
\end{align*}For $n+1 \nmid ij$ we find that neither term is $0 \bmod n + 1$ and hence we have,
\begin{align*}
\left[ij \bmod{n+1}\right] + \left[i(n + 1 - j) \bmod{n+1}\right] = n + 1
\end{align*}for $n + 1 \nmid ij$. Otherwise if $n + 1 \mid ij$ clearly both terms are individually $0$ so they contribute $0$ to the sum. Thus let us define,
\begin{align*}
f(i, j) = \begin{cases} n+1 & n+1 \nmid ij \\ 0 & n + 1 \mid ij \end{cases} 
\end{align*}Now our double sum then evaluates to,
\begin{align*}
\sum_{i=1}^n \sum_{j=1}^n (ij \bmod{n + 1}) = \sum_{(i, j)} f(i, j)
\end{align*}Note then that,
\begin{align*}
\sum_{(i, j)} f(i, j) \leq \frac{n^2(n + 1)}{2}
\end{align*}with equality if and only if every $(i, j)$ contributes $n + 1$. This happens precisely when $n + 1 \mid ij$ never occurs. Thus we need the condition $n + 1$ prime as claimed.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1753 posts
#48 • 1 Y
Y by cubres
We require that $n+1$ is a prime.

We first rewrite the equation as
\[
\sum_{i=1}^n \sum_{j=1}^n \left\{\frac{ij}{n+1}\right\} = \frac{n^2}{2}.
\]Multiplying both sides by $n+1,$ if $f(k)$ is the remainder when $k$ is divided by $n+1,$ then we get
\[
\sum_{i=1}^n \sum_{j=1}^n f(ij) = \frac{n^2(n+1)}{2}.
\]For a fixed $i,$ consider the sequence $0,i,2i,\dots,ni.$ If we let $\gcd(n+1,i) = d,$ then this sequence is just $d$ copies of $0,d,2d,\dots,n+1-d,$ each of which has sum $d \cdot \frac{\frac{n+1}{d} \cdot \left(\frac{n+1}{d} - 1\right)}{2},$ which gives
\[
\frac{(n+1)(n+1-d)}{2}.
\]If we sum up over all $i,$ this becomes
\[
\frac{n+1}{2} \cdot \sum_{i=1}^n (n+1-\gcd(n+1,i)).
\]Spliting the sum gives
\[
\frac{n+1}{2} \cdot (n(n+1) - \sum_{i=1}^n \gcd(n+1,i)).
\]The sum on the right is at least equal to $n,$ so the entire sum is at most equal to
\[
\frac{n+1}{2} \cdot (n(n+1) - n) = \frac{n^2(n+1)}{2}.
\]Equality is achieved if and only if all of the gcd's are equal to $1,$ which happens if and only if $n+1$ is prime.

Therefore, since all our steps are reversible, $n+1$ being prime is necessary and sufficient.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
trk08
614 posts
#49 • 1 Y
Y by cubres
We claim the answer is all $n$ such that $n+1$ is prime. To start, rewrite the equation as:
\[\sum_{i,j=1}^{n}{\frac{ij}{n+1}}-\sum_{i,j=1}^{n}{\left\lfloor\frac{ij}{n+1}\right\rfloor}=\frac{n^2(n-1)}{4}\]\[\frac{n^2(n+1)}{4}-\sum_{i,j=1}^{n}{\left\lfloor\frac{ij}{n+1}\right\rfloor}=\frac{n^2(n-1)}{4}\]\[\sum_{i,j=1}^{n}{\left\lfloor\frac{ij}{n+1}\right\rfloor}=\frac{n^2}{2}.\]
Lemma:
For constants $a,k$, if $\gcd (a,k)=1$, then $ab\pmod{k}$ contains all residues modulo $k$ for $b\in \{0,1,\dots,k-1\}$.

Let $d_i=\gcd (n+1,i)$. We make the following claim:
Claim:
\[\sum_{i,j=1}^{n}{\left\lfloor\frac{ij}{n+1}\right\rfloor}=\frac{1}{n+1}\cdot\sum_{i=1}^{n}{\frac{(n+1)(n+1-d_i)}{2}}\]Proof:
For now, disregard the denominator of $n+1$. This means we are looking at $ij \pmod{n+1}$. Fix $i$. To find the sum of the residues, such that $j\in S=\{0,1,\dots,n\}$, we factor out $d_i$. This results in the sum being:
\[d_i\cdot \sum_{j\in S}{\frac{i}{d_i}\cdot j\pmod{\frac{n+1}{d_i}}}.\]Using our previous lemma, this is:
\[d_i^2\cdot \frac{\left(\frac{n+1}{d_i}-1\right)\left(\frac{n+1}{d_i}\right)}{2}\]\[\frac{(n+1)(n+1-d_i)}{2}\text{  }\square\]
Summing over all $i$, we get the sum being:
\[\frac{1}{n+1}\sum_{i\in S}{\frac{(n+1)(n+1-d_i)}{2}}\leq \frac{1}{n+1}\sum_{i\in S}{\frac{(n+1)(n)}{2}}\leq \frac{n^2}{2},\]with equality occuring iff $d_i=1\text{ }\forall i\in S$, implying that $n+1$ must be prime, as desired $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mr.Sharkman
500 posts
#50 • 1 Y
Y by cubres
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sammy27
83 posts
#51 • 2 Y
Y by Eka01, cubres
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
onyqz
195 posts
#52 • 1 Y
Y by cubres
Quite easy actually
solution

Remark: Proving the identity was actually a problem, that appeared as a P6 in the German Federal Round just a few years ago.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
575 posts
#53 • 1 Y
Y by cubres
Just pairing lol
Note that $$\sum_{i=1}^n \sum_{j=1}^n \frac{ij}{n+1} = \frac{1}{n+1} \cdot \left( \frac{n(n+1)}{2} \right)^2 = \frac{n^2(n+1)}{4}.$$Therefore, we just need to have $$\sum_{i=1}^n \sum_{j=1}^n \left \{ \frac{ij}{n+1} \right \} = \frac{n^2}{2}.$$But this becomes $$n^2 = 2\sum_{i=1}^n \sum_{j=1}^n \left \{ \frac{ij}{n+1} \right \} = \sum_{i=1}^n \sum_{j=1}^n \left(\left \{ \frac{ij}{n+1} \right \} + \left\{ \frac{(n+1-i)j}{n+1} \right \} \right) = \sum_{i=1}^n \sum_{j=1}^n \left( \left \{ \frac{ij}{n+1} \right \} + \left\{ \frac{-ij}{n+1} \right \} \right).$$There are $n^2$ of these terms in total, and note that if $\frac{ij}{n+1}$ was an integer, then clearly $$\left \{ \frac{ij}{n+1} \right \} + \left\{ \frac{-ij}{n+1} \right \}$$becomes $0.$ Otherwise, it becomes $1.$ Hence, for $1 \leq i, j \leq n,$ $$\frac{ij}{n+1}$$cannot be an integer. Clearly, if $n+1$ is prime this works, but if $n+1=mn$ for $m, n \geq 2$ then we can just let $(i, j) = (m, n),$ so $n+1$ cannot be composite. Hence, only $n$ such that $n+1$ is prime works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
637 posts
#54 • 1 Y
Y by cubres
The only $n$ are when $\boxed{n+1 = p}$ is prime. First we tackle the case where $n$ is even. We can pair up the floors based on $i$: \begin{align*}
S &= \sum_{i = 1}^{\frac{n}{2}} \sum_{j=1}^n \left( \lfloor \frac{ij}{n+1} \rfloor + \lfloor \frac{(n+1-i)j}{n+1} \rfloor \right) \\
&= \sum_{i=1}^{\frac{n}{2}} \sum_{j=1}^n \left( \frac{n(n+1)}{2} + \lfloor \frac{ij}{n+1} \rfloor + \lfloor - \frac{ij}{n+1} \rfloor \right) \\
&= \frac{n^2(n+1)}{4} + \sum_{i=1}^{\frac{n}{2}} \sum_{j=1}^n \left( \lfloor \frac{ij}{n+1} \rfloor + \lfloor - \frac{ij}{n+1} \rfloor \right) 
\end{align*}Notice that each sum of floors is $0$ when $\frac{ij}{n+1}$ is an integer and $-1$ otherwise. If all the terms are not integers, we get $\frac{n^2(n+1)}{4} - n \cdot \frac{n}{2} = \frac{n^2(n-1)}{4}$, perfect. But this only happens when $n+1$ is prime obviouly. Otherwise, there must exist some $ij$ that is a multiple of $n+1$, and our sum must be greater than the desired which is a contradiction.

Otherwise, $n \equiv 1 \pmod{4}$. Then by an identical argument the minimum possible sum is $\frac{n(n+1)}{2} \cdot \frac{n-1}{2} + \frac{n^2-1}{4} - n \cdot \frac{n-1}{2} = \frac{n^3}{4} - \frac{n^2}{4} + \frac{n}{4} - \frac14$ which is too big and thus this case cannot happen. Therefore we have exhausted all cases and are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
653 posts
#55 • 1 Y
Y by cubres
very cool

Note that $\lfloor x \rfloor = x - \{x\}.$ Thus, we can rewrite our LHS as:
\begin{align*}
    \sum_{i = 1}^n \sum_{j = 1}^n \left\lfloor \frac{ij}{n+1} \right\rfloor & = \sum_{i = 1}^n \sum_{j = 1}\frac{ij}{n + 1} - \left\{\frac{ij}{n+1} \right\} \\
    & = \frac{n^2(n + 1)}{4} - \sum_{i = 1}^n \sum_{j = 1}^n \left\{\frac{ij}{n + 1}\right\}
\end{align*}Now we do casework on if $n + 1$ is prime. If $n + 1$ is prime, it follows that each residue modulo $n + 1$ is covered in the sum exactly $n$ times. Thus, the sum simplifies to:
\begin{align*}
    \frac{n^2(n + 1)}{4} - \sum_{i = 1}^n \sum_{j = 1}^n \left\{\frac{ij}{n + 1}\right\} & = \frac{n^2(n + 1)}{4} - n\cdot \sum_{j = 1}^n \frac j{n + 1} \\
    & = \frac{n^2(n + 1)}{4} - \frac{n^2}2 \\
    & = \frac{n^2(n - 1)}{4}
\end{align*}Now, assunme that $n + 1$ is composite. It can be seen that at $(i, n + 1) = 1,$ we have that the sum is equivalent to $\frac{n}{2}.$ At $(i, n + 1) > 1,$ the sum is clearly less than $\frac n2$. Thus, $n + 1$ composite doesn't work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cubres
119 posts
#56
Y by
Yapping
Storage - grinding ISL problems
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lpieleanu
3001 posts
#57
Y by
Solution
Z K Y
N Quick Reply
G
H
=
a