[go: up one dir, main page]

login
Search: a124255 -id:a124255
     Sort: relevance | references | number | modified | created      Format: long | short | data
a(n) = n^2 - A124255(n).
+20
3
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,1
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?
LINKS
EXAMPLE
a(5) = 5^2 - A124255(5) = 25 - 17 = 8.
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon E. Schoenfield, Oct 22 2006
STATUS
approved
Forest-and-trees problem: number of trees visible. (See Comments.)
+10
4
1, 2, 4, 5, 9, 11, 15, 19, 24, 28, 33, 38, 48, 55, 60, 67, 77, 84, 96, 104, 116, 125, 139, 148, 160, 173, 186, 197, 213, 227, 245, 259, 278, 293, 310, 324, 344, 364, 383, 397, 420, 435, 462, 482, 502, 522, 549, 572, 597, 622, 648, 669, 696, 720, 750, 774, 802
OFFSET
2,2
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 at the center of the plantation. How many tree trunks will be visible to an observer located at the empty lattice point? By symmetry, the number must always be divisible by 8, so a(n) is defined to be one-eighth of the number of visible tree trunks. (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.)
Conjecture: a(n) is the number of pairs of coprime numbers (x,y) such that x <= y and x^2 + y^2 < n^2. The Mathematica program is based on this assumption. How important is the decreasing function 1/n of the trunk's radius with respect to n? Does the sequence change if this function changes? - Andres Cicuttin, Feb 24 2023
LINKS
A different but related problem is addressed at Forests.
FORMULA
Does a(n)/n^2 approach 0.75/Pi?
EXAMPLE
Example: at n = 5, there are 8*a(5) = 40 visible tree trunks; defining the origin as the location of the observer, 4 are centered at points on the axes (i.e., (1,0), (0,1), (-1,0) and (0,-1)), 4 are at points on the diagonals (i.e., (1,1), (-1,1), (-1,-1) and (1,-1)) and the remaining 32, beginning in counterclockwise order from the +x-axis, are the ones at (4,1), (3,1), (2,1), (3,2) and the 28 others that result from using every possible reflection of those points across the x-axis, the y-axis, or the diagonal, y=x. (The tree trunk at (4,3) is considered completely obscured by the ones at (3,2) and (1,1), each of which is tangent to the line 4y = 3x.)
MATHEMATICA
pairs[n_] := Flatten[Table[Table[{i, j}, {i, 1, j}], {j, 1, n}], 1];
Table[(Length@Select[pairs[j], And[GCD[#[[1]], #[[2]]] == 1 , #[[1]]^2 + #[[2]]^2 < j^2] &]), {j, 2, 70}] (* Andres Cicuttin, Feb 24 2023 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon E. Schoenfield, Oct 22 2006
STATUS
approved

Search completed in 0.010 seconds