Number of integer solutions to x^2 + y^2 <= n? [simple proof]

In summary: The number in question is N - \pi n, and the interval it must be in is -2\pi(\sqrt {2n} - 1) < N - \pi n < 2\pi(\sqrt {2n} + 1). This is a symmetric interval, and I can take its size as an upper bound for the size of N - \pi n, i.e. |N - \pi n| < 2\pi(\sqrt {2n} + 1).Hope this helps!In summary, the conversation discussed a proof in Gelfand's method of coordinates and the confusion around a specific step in the proof. The conversation also mentioned various equations and concepts such as the area
  • #1
nickadams
182
0

Homework Statement


I am stuck on a step from a simple proof in Gelfand's method of coordinates.
Here is a link to the part I am confused on. Pg. 44-45...
http://books.google.com/books?id=In...ether with an estimate of its error:"&f=false

It starts in the middle of page 44 and ends right below the part I have highlighted on page 45.

Homework Equations


pi*r^2 is area of a circle.
2*pi*r is the circumference of a circle.
diagonal of a 1 unit^2 square is √(2) units
distance formula is (x1-x2)^2 + (y1-y2)2 = d^2

The Attempt at a Solution


when it asked to prove that "the figure An lies entirely within the circle Kn'' and contains the circle kn' entirely within itself," I came up with an attempt by making a triangle ABC with A at (0,0), B at (Bx,0) and C at (0,Cy) and saying AB + AC < BC

next, using the distance formula, I changed AB to Bx2, AC to Cy2 , and BC to Bx2 + Cy2... That would mean that Bx2 + Cy2 < Bx2 + Cy2 which is clearly impossible! Does that qualify as a proof?

So since Kn'' has a radius that is √(2) bigger than Kn, then if the upper right vertex of a unit square is within the circumference of Kn, then it must also be within the circumference of Kn''. Because in order for it to extend beyond the circumference of Kn'' while still remaining in the circumference of Kn, then it would have to take up a distance larger than √(2) which is not possible for a 1 unit square. Same goes for Kn' not being completely within An because that would mean that one part of a unit square was inside the circumference of Kn' while the upper right hand corner of the same square was out of Kn... Not possible unless it had a straight line distance within the unit square that was longer than √(2).
OOOkay. Now that we have that part out of the way (hopefully it's right), the part I'm confused on is how they got from all the lead up steps to their final conclusion of:

|N-pi*n| < 2*pi(√(2n) + 1)

... I think they are trying to quantify the difference between the unit squares in An and the actual area of circle Kn. So they set minimum and maximum boundaries (Kn' and Kn'' respectively) that can help out. Kn' tells us the smallest circular boundary where An will stay within and Kn'' gives us the largest circle that will still be completely filled by An.

But I'm stuck on how they got the right side of the above inequality... All help will be appreciated; sorry for the long post! :redface:
 
Last edited:
Mathematics news on Phys.org
  • #2
Hi, Nick,
I have not read in detail your proof, but if you're already convinced than the figure [itex]A_n[/itex] (made of N squares) is entirely contained inside the larger circle, and entirely contains the smaller circle, then it should be clear to you the inequality in the book (just before your highlighting) that expresses the relationship between the areas of these three figures:[tex]\pi(\sqrt n - \sqrt 2)^2 < N < \pi(\sqrt n + \sqrt 2)^2[/tex]
Starting from there, expand the squares to obtain[tex]\pi(n - 2\sqrt {2n} + 2) < N < \pi(n + 2\sqrt {2n} + 2)[/tex]
and now distribute the [itex]\pi[/itex] along the parentheses,[tex]\pi n - 2\pi\sqrt {2n} + 2\pi < N < \pi n + 2\pi\sqrt {2n} + 2\pi[/tex]
subtract [itex]\pi n[/itex] all through,[tex]-2\pi\sqrt {2n} + 2\pi < N - \pi n < 2\pi\sqrt {2n} + 2\pi[/tex]
factor out the common [itex]2\pi[/itex],[tex]-2\pi(\sqrt {2n} - 1) < N - \pi n < 2\pi(\sqrt {2n} + 1)[/tex]
and now, as [itex]\sqrt {2n} + 1[/itex] is a larger positive quantity than [itex]\sqrt {2n} - 1[/itex] whenever [itex]n > 0[/itex], you might have just as well said[tex]-2\pi(\sqrt {2n} + 1) < N - \pi n < 2\pi(\sqrt {2n} + 1)[/tex]
which is equivalent to[tex]|N - \pi n| < 2\pi(\sqrt {2n} + 1)[/tex]
So, as you see, it's just some algebra, an almost mechanical "operations on symbols", that take you from one inequality to the other.

Hope this helps!
 
  • #3
Oh wow thanks Dodo!

But I got stuck on this part of your response...

Dodo said:
[tex]-2\pi(\sqrt {2n} - 1) < N - \pi n < 2\pi(\sqrt {2n} + 1)[/tex] and now, as [itex]\sqrt {2n} + 1[/itex] is a larger positive quantity than [itex]\sqrt {2n} - 1[/itex] whenever [itex]n > 0[/itex], you might have just as well said[tex]-2\pi(\sqrt {2n} + 1) < N - \pi n < 2\pi(\sqrt {2n} + 1)[/tex]
which is equivalent to[tex]|N - \pi n| < 2\pi(\sqrt {2n} + 1)[/tex]
How were you able to change [tex]-2\pi(\sqrt {2n} - 1)[/tex] to [tex]-2\pi(\sqrt {2n} + 1)[/tex] ?

Thanks again
 
  • #4
nickadams said:
How were you able to change [tex]-2\pi(\sqrt {2n} - 1)[/tex] to [tex]-2\pi(\sqrt {2n} + 1)[/tex] ?

[tex]-2\pi\sqrt {2n} - 2\pi < -2\pi\sqrt {2n} + 2\pi[/tex]

and so

[tex]-2\pi(\sqrt {2n} + 1) < -2\pi(\sqrt {2n} - 1)[/tex]

and you still know [tex]-2\pi(\sqrt {2n} + 1) < N - \pi n[/tex]
 
  • #5
Hi, Nick,
Wizlem gave you the details, above. The general idea is that, for example, if you know that a number is between -5 and 6, you can also say that it is between -6 and 6... because the latter interval is larger and includes the former. Then, having chosen a symmetric interval, we can now say that our number is no greater than 6 in absolute value. The principle in your case is the same.
 

What is the definition of "integer solutions"?

Integer solutions refer to the set of values for x and y that satisfy the equation without any decimal or fractional parts. In other words, both x and y must be whole numbers.

Why is the equation x^2 + y^2 <= n used?

This equation is often used in number theory to represent a circle with radius n centered at the origin (0,0) on a Cartesian plane. The solution to this equation represents all the points within or on the circle with integer coordinates.

What does the inequality x^2 + y^2 <= n represent visually?

Visually, this inequality represents a filled-in circle on a Cartesian plane with radius √n and center at the origin (0,0). All the points within or on the circle have integer coordinates that satisfy the equation.

How do you solve for the number of integer solutions to this equation?

To solve for the number of integer solutions, we can use the Pythagorean theorem to find the maximum value of x and y that satisfies the equation. This is given by √n. We can then count the number of integer values of x and y that fall within this range and subtract 1 from each to account for the origin (0,0).

Can this equation be used for other shapes besides circles?

Yes, this equation can be used for other shapes as well, such as squares, rectangles, and ellipses. However, the method for solving for the number of integer solutions may differ depending on the shape and the specific equation used.

Similar threads

  • Special and General Relativity
2
Replies
40
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
8
Views
3K
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
4
Views
9K
Replies
20
Views
9K
  • Other Physics Topics
2
Replies
39
Views
25K
  • Cosmology
Replies
23
Views
5K
Back
Top