cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A124255 Forest-and-trees problem: square of distance to most distant visible tree.

Original entry on oeis.org

2, 5, 13, 17, 34, 41, 61, 74, 97, 113, 137, 157, 194, 221, 250, 281, 317, 353, 397, 433, 482, 521, 569, 617, 674, 725, 778, 829, 898, 953, 1021, 1082, 1154, 1217, 1289, 1361, 1433, 1517, 1597, 1669, 1762, 1825, 1933, 2018, 2113, 2197, 2297, 2393, 2498, 2594
Offset: 2

Views

Author

Jon E. Schoenfield, Oct 22 2006

Keywords

Comments

In an arbitrarily large pine plantation, a tree with a trunk of radius 1/n is located at each of the lattice points of a square lattice (whose rows are spaced one unit apart), except for one empty lattice point near the center of the plantation. For an observer located at the empty lattice point, how far away is the most distant visible tree trunk? The sequence a(n) is defined as the square of the distance from the observer to the most distant lattice point at which a visible tree trunk is located. (Each tree trunk is assumed to be a vertical cylinder, centered at its respective lattice point. A tree trunk is considered "visible" unless it is completely obscured from view by one or more other tree trunks.)
It is known that, for any coprime x and y, the closest point to the line from (0,0) to (x,y) is 1/sqrt(x^2 + y^2) units away from it (see e.g. the first linked paper in A047896). Since tree trunks intersect lines that are closer than 1/n units, we must have that a(n) < n^2. In addition, a(n) cannot be divisible by the square of any prime p not congruent to 1 modulo 4, since this forces x and y to have common factor p. Combining this with the criteria for a(n) to be a sum of two squares, we have that a(n) is the largest number < n^2 that is either a product of primes congruent to 1 modulo 4 or twice such a product. - Charlie Neder, Jan 15 2019

Examples

			Example: at n = 5, there are 40 visible tree trunks; defining the origin as the location of the observer, they are the ones located at (1,0), (4,1), (3,1), (2,1), (3,2), (1,1) and all the additional locations that result from using every possible reflection of them across the x-axis, the y-axis, or the diagonal, y=x. (The tree trunk at (4,3) is considered completely obscured by ones at (3,2) and (1,1), each of which is tangent to the line 4y = 3x.)
The most distant visible tree trunks are the ones located at the lattice point (4,1) and its symmetrical locations; the square of their distance from the origin is 17, so a(5) = 17.
		

Crossrefs

A124256 a(n) = n^2 - A124255(n).

Original entry on oeis.org

2, 4, 3, 8, 2, 8, 3, 7, 3, 8, 7, 12, 2, 4, 6, 8, 7, 8, 3, 8, 2, 8, 7, 8, 2, 4, 6, 12, 2, 8, 3, 7, 2, 8, 7, 8, 11, 4, 3, 12, 2, 24, 3, 7, 3, 12, 7, 8, 2, 7, 3, 8, 7, 20, 3, 7, 2, 12, 7, 12, 2, 4, 3, 8, 7, 8, 3, 7, 11, 20, 19, 8, 3, 7, 6, 12, 2, 12, 3, 7, 2, 20, 11, 12, 2, 4, 3, 8, 2, 8, 3, 7, 11, 12, 7, 12
Offset: 2

Views

Author

Jon E. Schoenfield, Oct 22 2006

Keywords

Comments

Does the set of integers included in this sequence eventually include all positive integers other than those that exceed a multiple of 4 by exactly 1?

Examples

			a(5) = 5^2 - A124255(5) = 25 - 17 = 8.
		

Crossrefs

A344533 Given a square forest of n X n trees, with rows and columns separated by 1 meter, a(n) is the number of trees visible to an observer halfway along one side of the forest, exactly one meter outside.

Original entry on oeis.org

1, 4, 7, 14, 17, 30, 33, 52, 51, 82, 81, 108, 105, 156, 143, 198, 183, 252, 231, 308, 267, 380, 339, 436, 383, 526, 461, 598, 525, 680, 595, 782, 663, 896, 767, 974, 839, 1118, 953, 1208, 1041, 1330, 1143, 1466, 1227, 1620, 1383, 1738, 1473, 1898, 1605, 2034
Offset: 1

Views

Author

John Mason, May 22 2021

Keywords

Comments

This concept has been studied under the name "visible lattice points" although the usual version considers the points in an n X n grid that are visible from the origin. - Jeffrey Shallit, May 22 2021

Examples

			For example, if the forest contains 5 X 5 trees, the observer will see only 17, as 8 will be hidden.
		

Crossrefs

Showing 1-3 of 3 results.