$N$ in natural. There are natural numbers from $N^3$ to $N^3+N$ on the board. $a$ numbers was colored in red, $b$ numbers was colored in blue. Sum of red numbers in divisible by sum of blue numbers. Prove, that $b|a$
Problem
Source: St Petersburg Olympiad 2014, Grade 11, P3
Tags: number theory, combinatorics, algebra, inequalities
24.10.2017 17:53
24.10.2017 17:59
$a+b$ not is nessesary equal $N$.
24.10.2017 18:01
I put $a+b=N+1$, because there are $N+1$ numbers between $N^3$ and $N^3+N$ inclusive.
24.10.2017 18:05
But some of the numbers may remain uncolored: The blackboard contains the integers from $N^3$ to $N^3+N$, where $N\ge1$ is an integer. Exactly $r$ of these numbers are colored red, exactly $b$ of these numbers are colored blue, while the remaining numbers are left uncolored. If the sum of the red numbers is a multiple of the sum of the blue numbers, prove that $r$ is a multiple of $b$.
24.10.2017 18:07
In that case, I don't know what to do.
24.10.2017 18:29
24.10.2017 18:50
Is $S_a$ the sum of all $a_1,a_2,\dots,a_a$ (from my post), or the sum of all $a$ colored integers?
25.10.2017 13:56
I prefer the number of red numbers to be denoted by $r$ and the number blue ones - by $b$. Let $\sum_r$ be the sum of red numbers and $\sum_b$ - the sum of blue numbers. We have: \[rN^3 \leq \sum_r \leq r(N^3+N)\]\[bN^3 \leq \sum_b \leq b(N^3+N)\] It yields: $$\frac{rN^3}{b(N^3+N)}\leq \frac{\sum_r}{\sum_b}\leq \frac{r(N^3+N)}{bN^3}$$Since $r/b \in [1/N, N]$ it easily follows: $$ \frac{r}{b}-\frac{1}{N} \leq \frac{\sum_r}{\sum_b}\leq \frac{r}{b}+\frac{1}{N} $$ Since $1\leq r,b\leq N$, if $\frac{\sum_r}{\sum_b}$ is a natural number, it easily follows $r/b$ is also a natural number.
27.05.2023 22:59
dgrozev wrote: Since $1\leq r,b\leq N$, if $\frac{\sum_r}{\sum_b}$ is a natural number, it easily follows $r/b$ is also a natural number. Why??
06.06.2023 20:01
I commented on this in a bit more detail on my blog