10
$\begingroup$

Recently, I came across a problem that has stumped me:

Problem Prove that for some natural number $N$, there are exactly 1000 perfect squares strictly between the consecutive cubes $N^3$ and $(N+1)^3$.

I tried writing inequalities for $N$ and $k$ (where $k$ is the nearest perfect square not exceeding $N$):
$$k^2 < N^3 < (k+1)^2 < (k+10^3)^2 < (N+1)^3 < (k+10^3+1)^2$$
I also considered the inequality for the differences:
$$(N+1)^3 - N^3 > (k+10^3)^2 - (k+1)^2$$
Then I attempted to work with the fractional part $\left\lfloor k^{2/3} \right\rfloor < N < \left\lfloor (k+1)^{2/3} \right\rfloor$, but this led nowhere.

If you have any ideas on how to approach this problem, please share them.
Thank you for your interest in the problem.

$\endgroup$
10
  • 1
    $\begingroup$ Nothing wrong with the approach, I'd start there and do a simple search. Doesn't take long to find good examples. $\endgroup$ Commented Oct 19 at 16:07
  • 2
    $\begingroup$ how about 10 squares between consecutive cubes? How does that work out? $\endgroup$ Commented Oct 19 at 16:09
  • 1
    $\begingroup$ If $s(n)$ is the number of squares between $n^3$ and $(n+1)^3$, then $s(n+1)-s(n)$ is at most one. The 1000 is a red herring, I think - every possible number of squares is possible (except perhaps for edge cases near sixth powers). $\endgroup$ Commented Oct 19 at 16:44
  • $\begingroup$ Note you do not have to identify $N$. This was a request for an existence argument. Some argument that the count of squares in between adjacent cubes goes up by 0 or 1 as a$N$ increments would work. Or if that's not true, some modified version of that $\endgroup$ Commented Oct 19 at 16:46
  • 1
    $\begingroup$ There are $3m$ squares between $(4m^2)^3$ and $(4m^2 + 1)^3$. Although 1000 is not divisible by 3, it's possible that a different choice of $N$ will give $3m + 1$ or $3m + 2$ squares. $\endgroup$ Commented Oct 20 at 15:32

7 Answers 7

8
$\begingroup$

If $N$ and $N+1$ are positive integers that are not perfect squares, and there are precisely $1000$ perfect squares between $N^3$ and $(N+1)^3$, then $$999<(N+1)^{3/2}-N^{3/2}<1001.\tag{1}$$ We can factor this expression as a difference of cubes of real numbers, to find that $$(N+1)^{3/2}-N^{3/2}=\big((N+1)^{1/2}-N^{1/2}\big)\big((N+1)^{2/2}+N^{1/2}(N+1)^{1/2}+N^{2/2}\big).\tag{2}$$ The second factor on the right hand side simplifies to $$2N+1+\sqrt{N(N+1)},$$ which is of course strictly between $3N+1$ and $3N+2$. Also note that $$\big((N+1)^{1/2}-N^{1/2}\big)\big((N+1)^{1/2}+N^{1/2}\big)=1,$$ where the second factor is strictly between $2\sqrt{N}$ and $2\sqrt{N+1}$. Then from $(1)$ we find $$999\cdot2\sqrt{N}<999\big((N+1)^{1/2}+N^{1/2}\big)<2N+1+\sqrt{N(N+1)}<3N+2,$$ $$1001\cdot2\sqrt{N+1}>1001\big((N+1)^{1/2}+N^{1/2}\big)>2N+1+\sqrt{N(N+1)}>3N+1,$$ Squaring then yields $$9N^2+(12-1998^2)N+4>0\qquad\text{ and }\qquad9N^2+(6-2002^2)N+(1-2002^2)<0$$ The former tells us that $N>443555$, the latter that $N<445334$. For the lower end of this range, the interval from $N^{3/2}$ to $(N+1)^{3/2}$ is barely large enough to contain $1000$ perfect squares. At the upper end of this range, it is barely short enough to not contain $1001$ perfect squares. The best candidates would be in the middle of this range, and indeed for $N=444444$ we find that $$N^{3/2}\approx296295851.9\qquad\text{ and }\qquad (N+1)^{3/2}\approx296296851.9,$$ so there are indeed exactly $1000$ perfect squares between $N^3$ and $(N+1)^3$.

$\endgroup$
5
  • 2
    $\begingroup$ (1) isn't correct. It's the difference between the rounded values that is exactly 1000. $\endgroup$ Commented Oct 19 at 18:02
  • $\begingroup$ Not such a miracle: you'll see from my comment on the original post that I think many values of N from 444000 to 444889 will work. $\endgroup$ Commented Oct 19 at 18:12
  • $\begingroup$ @mcd My answer verifies your intuition. $\endgroup$ Commented Oct 20 at 1:16
  • $\begingroup$ @mcd I've adjusted $(1)$ to give bounds instead of an exact value. The argument carries through almost identically, though the bounds for $N$ are significantly wider now. Checking in the middle of the range makes the most sense and yields the original answer. $\endgroup$ Commented Oct 20 at 11:32
  • $\begingroup$ My answer proves existence without having to check any specific interval. $\endgroup$ Commented Oct 20 at 17:57
3
$\begingroup$

We know that $n^2$ must be close to $N^3$ and $(n+999)^2$ close to $(N+1)^3$. By setting $m^6=N^3=n^2$ we get the equation

$$3m^4-1998m^3+3m^2-998000=0$$

which gives the feasible root $m\approx666$.

Now the solution is close to $N=666^2$. The next perfect square is $n^2:=(\lfloor\sqrt{N^3}\rfloor+1)^2$ and we must fulfill

$$(n+999)^2<(N+1)^3\le(n+1000)^2$$

This can be solved by trial and error around $N=666^2$.

$\endgroup$
1
  • $\begingroup$ Very good. See my comment for an explanation of why it had to be near $666$. $\endgroup$ Commented Oct 24 at 18:50
2
$\begingroup$

(This is a redraft to be clearer. And also to fix @mathematician123's point about the possibility that $N+1$ is a perfect square.)

I'm going to do this for any large enough number $n$ of perfect squares. And then show that $1000$ is large enough.

Let $g(x) = x^{3/2}$. Then the number of perfect squares below $N^3$ is $\lfloor g(N) \rfloor$. What we want to show is that there exists an interval of length at least $3$, inside of which $n < g'(x) < n + 0.5$. In that interval we will find three consecutive integers $N$, $N+1$, and $N+2$. Of them, either there are $n$ perfect squares between $N^3$ and $(N+1)^3$, or else there must be $n$ perfect squares between $(N+1)^3$ and $(N+2)^3$.

Let's start. $g'(x) = 1.5 \sqrt{x}$. $g'(0) = 0$, $g'(x)$ is increasing, continuous, and goes to infinity. Therefore for any positive integer $n$ there is always a solution to $g'(x) = n$.

$g''(x) = \frac{0.75}{\sqrt{x}}$. This is positive, decreasing, and goes to $0$ in the limit. By inspection, $g'(21) < 7$ and $g''(21) < \frac{1}{6}$. If $7 \le n$ let $x_0$ be the solution to $g'(x_0) = n$. $x_0$ is in the interval $(21, \infty)$ and therefore $0 < g''(x) < \frac{1}{6}$ in the interval $(x, x+3)$. By the intermediate value theorem $g'(x)$ cannot change by more than $3 * \frac{1}{6} = 0.5$, so in that interval $n < g'(x) < n + 0.5$.

Let $N$ be the smallest integer bigger than $x_0$. Then $N$, $N+1$ and $N+2$ are all in the interval $(x_0, x_0+3]$. By the intermediate value theorem, $g(N)+n < g(N+1) < g(N)+n + 0.5$. Likewise $g(N+1)+n < g(N+2) < g(N+1) + n + 0.5$. Therefore the triple $g(N), g(N+1), g(N+2)$ has the form $g(N), g(N) + n + \epsilon_1, g(N) + 2n + \epsilon_2$ where $0 < \epsilon_1 < \epsilon_2 < 1$.

Now there can be at most one integer in the interval $[g(N), g(N) + \epsilon_2]$. If there are none or it occurs after $g(N) + \epsilon_1$, then $\lfloor g(N+1) \rfloor - \lfloor g(N) \rfloor = n$ and those perfect squares are strictly between the cubes. If it occurs before $g(N) + \epsilon_1$ then $\lfloor g(N+2) \rfloor - \lfloor g(N+1) \rfloor = n$ and those perfect squares are strictly between the cubes. If it occurs exactly at $g(N) + \epsilon1$, then $\lfloor g(N+1) \rfloor - \lfloor g(N) \rfloor = n+1$, but one of those perfect squares is at $(N+1)^3$, and so there are exactly $n$ perfect squares strictly between $N^3$ and $(N+1)^3$. In all cases, the result holds.

This shows that if $7 \le n$, there is always an $N$ with $n$ perfect squares between $N^3$ and $(N+1)^3$. Since $7 < 1000$, this solves the problem.

As @TonyK already pointed out in the comments, examples of $N$ can be found for $n = 2, 3, 4, 5, 6, 7$. Therefore this actually holds for $2 \le n$.

This argument can be generalized to looking for counts of perfect $k$ powers between perfect $r$th powers as long as $k < r$. Though, of course, with different lower bounds on $n$.

$\endgroup$
8
  • 2
    $\begingroup$ You never seem to say what $g$ stands for. Apparently it is a differentiable function, since you are talking about its derivatives. So it must be defined on $\Bbb{R}$. Without knowing what it is, it is hard to understand your answer. $\endgroup$ Commented Oct 20 at 8:00
  • 1
    $\begingroup$ @MarcvanLeeuwen It says $g(N)=N^{\frac{3}{2}}$. $\endgroup$ Commented Oct 20 at 12:23
  • 1
    $\begingroup$ @mcd Indeed it says "Thus $g(N)=N^{3/2}$" in the middle of the fourth paragraph. $\endgroup$ Commented Oct 20 at 12:50
  • 2
    $\begingroup$ If $N + 1$ is a perfect square, then the number of squares between $N^3$ and $(N + 1)^3$ is $\lfloor g(N + 1) \rfloor - \lfloor g(N)\rfloor - 1$, not $\lfloor g(N + 1) \rfloor - \lfloor g(N) \rfloor$. $\endgroup$ Commented Oct 20 at 14:28
  • 1
    $\begingroup$ @mathematician123 Problem solved. If $N+1$ is a perfect square, then $\lfloor g(N+1) \rfloor - \lfloor g(N) \rfloor$ is $n+1$, and $n$ of those perfect squares are strictly between the perfect cubes. I didn't even have to rework the numbers! $\endgroup$ Commented Oct 20 at 17:53
2
$\begingroup$

I can't resist giving this as an answer, but the credit goes to @mathematician123 who put me on the right trail by his comment. So I will make this a Community wiki answer.

Claim: for $m>0$ an integer, the number of squares between the successive cubes $m^6=(m^2)^3$ and $(m^2+1)^3$ equals $\left\lfloor \frac{3m}{2} \right\rfloor$.

Since the smallest square $>m^6$ is $(m^3+1)^2$, it suffices to show the inequalities $$ \left( m^3+\left\lfloor \frac{3m}{2} \right\rfloor\right)^2 < (m^2+1)^3 < \left( m^3+\left\lfloor \frac{3m}{2} \right\rfloor + 1 \right)^2. $$ We will prove these by proving the following stronger inequalities for $m$ large enough, dealing with the small cases separately: $$ \left( m^3+\frac{3m}{2}\right)^2 < (m^2+1)^3 < \left( m^3+ \frac{3m}{2} + \frac{1}{2} \right)^2. $$ So let us first prove $\left( m^3+\frac{3m}{2}\right)^2 < (m^2+1)^3$. Expanding the LHS gives $m^6+3m^4+\frac{9}{4}m^2$, which is indeed smaller than $(m^2+1)^3=m^6+3m^4+3m^2+1$ in virtue of $3>\frac{9}{4}$.

Now we prove $(m^2+1)^3 < \left( m^3+ \frac{3m}{2} + \frac{1}{2} \right)^2$. Expanding the RHS of this, we get $$ \left( m^3+ \frac{3m+1}{2} \right)^2 = m^6+m^3(3m+1)+\left(\frac{3m+1}{2}\right)^2 = m^6+m^3(3m+1)+\frac{9}{4}m^2+\frac{3m}{2}+\frac{1}{4}=m^6+3m^4+m^3+\frac{9}{4}m^2+\frac{3m}{2}+\frac{1}{4} $$ Comparing this to the LHS and cancelling terms, we see that the inequality to be proved is equivalent to $$ m^3+\frac{3m}{2} > \frac{3m^2}{4}+\frac{3}{4} $$ This is clearly satisfied for $m\geq 2$. We can check the case $m=1$ of the claim by hand. The claim is proven.

Therefore it follows that if for some $m$ we have $\left\lfloor \frac{3m}{2} \right\rfloor = 1000$, it follows that there are $1000$ squares between the successive cubes $(m^2)^3$ and $(m^2+1)^3$. Since $1000$ is $1$ mod $3$, we can indeed write it in this form, and indeed $m=667$ works.

Therefore there are exactly $1000$ squares between the successive cubes $(667^2)^3$ and $(667^2+1)^3$, or between $444889^3$ and $444890^3$.


Finally, we can verify all of this by using the command line utility bc:

$ bc sqrt((667^2)^3) 296740963 sqrt((667^2+1)^3-1) 296741963 
$\endgroup$
1
  • $\begingroup$ A reflection on why this method works: the "integer square roots" (i.e. the floor of the square root) of N^3 and (N+1)^3 are not given by polynomials in N, and this makes it hard to give any kind of useful formula for the number of squares between N^3 and (N+1)^3 for general N. On the other hand for N=m^2 or N=4m^2, all the relevant integer square roots are given by (floors of) polynomials (in m). In fact for N equal to any quadratic expression in m with square leading coefficient, the integer square root is given by a polynomial in m (for m large enough),so there's a lot of room to play with. $\endgroup$ Commented Oct 24 at 22:40
0
$\begingroup$

$N = 443598$ works.

$$(295450254)^2 \leq N^3 < (295450255)^2$$ $$(295451254)^2 < (N+1)^3 \leq (295451255)^2$$

$\endgroup$
1
  • 7
    $\begingroup$ Perhaps you could explain how you determined your value for $N.$ $\endgroup$ Commented Oct 20 at 2:40
0
$\begingroup$

Given $$N^3\lt n^2\lt (n+1)^2\lt\cdots\lt(n+999)^2\lt (N+1)^3$$ we have $$\begin{cases}N^3\lt n^2\\(n+999)^2\lt (N+1)^3\end{cases}\implies1998n+999^2\lt3n^{\frac43}-1998n^\frac33+3n^{\frac23}-998000$$ Making $t=n^{\frac13}$ we get $$3t^4-1998t^3+3t^2-998000\gt0$$ Equating to $0$ we have in Desmos two roots of distinct sign and the positive root is $t=665.99962$ so $n\ge295407790.343$ while in Wolfram asking about the inequality $$(x+999)^2\lt (x^{\frac23}+1)^3$$ give the value $n\ge295\space 408\space 000$. Thus $$\boxed{n\ge295\space407\space790\space\text{in Desmos}\\n\ge295\space408\space000\space\text{in Wolfram}}$$ Trying to calculate with small values (less than $1000$) we can verify that for a certain number of squares there are several solutions. And this is so for the obtained values which, obviously should have an upper or major terminal.Determine it is question of calculation with computer.

$\endgroup$
1
  • 1
    $\begingroup$ Your initial inequalities do not express the "exactly" aspect. $\endgroup$ Commented Oct 20 at 11:46
0
$\begingroup$

The number of squares between $a$ and $b$ is approximately $\sqrt{b} - \sqrt{a}$. We're given that $a = N^3$ and $b = (N+1)^3$ with 1000 squares between them, so:

$$\sqrt{(N + 1)^3} - \sqrt{N^3} = 1000$$ $$\sqrt{N^3 + 3N^2 + 3N + 1} - \sqrt{N^3} = 1000$$

Squaring gives:

$$N^3 + 3N^2 + 3N + 1 - 2\sqrt{N^6 + 3N^5 + 3N^4 + N^3} + N^3 = 1000000$$ $$2N^3 + 3N^2 + 3N - 999999 = 2\sqrt{N^6 + 3N^5 + 3N^4 + N^3}$$

Squaring again gives:

$$(2N^3 + 3N^2 + 3N - 999999)^2 = 4(N^6 + 3N^5 + 3N^4 + N^3)$$ $$4 N^6 + 12 N^5 + 21 N^4 - 3999978 N^3 - 5999985 N^2 - 5999994 N + 999998000001 = 4N^6 + 12N^5 + 12N^4 + 4N^3$$ $$9N^4 - 3999982 N^3 - 5999985 N^2 - 5999994 N + 999998000001 = 0$$

We can obtain an approximate solution by ignoring all but the first two terms of the polynomial.

$$9N^4 - 3999982 N^3 \approx 0$$ $$N \approx \frac{3999982}{9} = 444442.444444\dots$$

In fact, the two real solutions to the polynomial equation are $N \approx 62.4950603534606$ and $N \approx 444443.9444444913$. But there are only 12 square numbers between $62^3$ and $63^3$, so that's not the answer we're looking for. Let's focus instead on $N$'s close to $444444$.

Searching by computer, I found that there are in fact 888 different values of $N$ that satisfy the requirement of having exactly 1000 perfect squares between $N^3$ and $(N+1)^3$.

For example, $N = 444444$ yields all the squares between $296295852^2$ and $296296851^2$, inclusive.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.