Floor Equation

Algebra Level 3

Find the smallest positive integer n n such that n + n + 1 = 4 n + 2019 . \left\lfloor\sqrt n+\sqrt{n+1}\right\rfloor=\left\lfloor\sqrt{4n+2019}\right\rfloor.


Notation: \lfloor\cdot\rfloor denotes the floor function .


The answer is 254520.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Mark Hennings
Jul 19, 2019

Before applying brute force, let us simplify matters. We must have 4 n + 2019 n + n + 1 4 n + 2019 1 + 4 n + 2019 n + n + 1 + 1 2 n + 1 + 1 4 n + 2019 4 n + 5 + 4 n + 1 \begin{aligned} \lfloor \sqrt{4n+2019} \rfloor & \le \; \sqrt{n} + \sqrt{n+1} \\ \sqrt{4n+2019} & \le \; 1 + \lfloor \sqrt{4n+2019} \rfloor \; \le \; \sqrt{n} + \sqrt{n+1} + 1 \; \le \; 2\sqrt{n+1} + 1 \\ 4n + 2019 & \le \; 4n+5 + 4\sqrt{n+1} \end{aligned} and hence n ( 2014 4 ) 2 1 = 253511.25 n \ge \big(\tfrac{2014}{4}\big)^2 - 1 = 253511.25 , so that n 253512 n \ge 253512 . This cuts the number of tests until we find the answer of 254520 \boxed{254520} down to size.

Kyle T
Jul 18, 2019

This was the simplest solution I could come up with, but while playing around with the code it was interesting to see how close these two get for so long before they finally equal out.

1
2
3
4
5
6
7
<?php
$i = 1;
while( floor(sqrt($i) + sqrt($i+1)) != floor(sqrt((4*$i) + 2019)) ){
    $i++;
}
echo $i; //254520
?>

Brute force search: Smallest solution was 254520. This is a computer solution.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...