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.

Previous Showing 11-20 of 20 results.

A367896 a(n) is the y-coordinate of the n-th point in a square spiral mapped to a square grid rotated by Pi/4 using the variant of the distance-limited strip bijection described in A367150.

Original entry on oeis.org

0, 1, 1, 1, 0, -1, -1, -1, 0, 0, 1, 2, 3, 2, 2, 1, 0, 0, -1, -2, -3, -2, -2, -1, 0, 1, 2, 2, 3, 3, 4, 3, 3, 2, 2, 1, 0, -1, -2, -2, -3, -3, -4, -3, -3, -2, -2, -1, 0, 0, 1, 2, 3, 4, 4, 5, 6, 5, 4, 4, 3, 2, 1, 1, 0, 0, -1, -2, -3, -4, -4, -5, -6, -5, -4, -4, -3, -2, -1, -1, 0, 1
Offset: 0

Views

Author

Hugo Pfoertner and Rainer Rosenthal, Dec 04 2023

Keywords

Crossrefs

A367895 gives the corresponding x-coordinates.

Programs

  • PARI
    \\ See A367895 for definitions of required functions.
    a367896(n) = BijectionD([ax(n), ay(n)])[2]

A307446 First coordinate of a contiguous path on the odd-numbered points of a square lattice leading to a distance-limited bijection with the even-numbered points of a square lattice rotated by Pi/6 around the common point (0,0). A307447 gives the second coordinate.

Original entry on oeis.org

1, 3, 3, 3, 5, 7, 7, 9, 11, 11, 11, 13, 13, 13, 11, 9, 9, 9, 11, 11, 11, 13, 15, 15, 17, 19, 19, 19, 21, 23, 23, 25, 27, 27, 27, 25, 25, 25, 27, 29, 29, 31, 33, 33, 33, 35, 37, 37, 39, 41, 41, 41, 43, 43, 43, 41, 39, 39, 39, 41, 41, 41, 43, 45, 45, 47, 49, 49
Offset: 1

Views

Author

Hugo Pfoertner, Apr 10 2019

Keywords

Comments

In a private communication in 2009, Klaus Nagel described a conjectured bijection between the grid points of two quadratic lattices G and H such that the second lattice H has an offset of 1/2 in both coordinate directions and is rotated by an angle of Pi/6 against the first lattice G. If all straight-line connections between points of G and H not exceeding the Euclidean distance d=sqrt(1/2) are drawn (see Nagel link), several types of connected components in the infinite bipartite graph of the vertices of G U H containing equal numbers of grid points from G and H arise.
One of them is an "octopus" with 4 contiguous arms identical up to symmetry. To achieve a bijection between the points of G and H, the four arms must not be finite. Otherwise the central grid point of H, which is equidistant to its 4 closest neighbors in G, but can only be used once, would lead to a violation of the condition of equal number of points from G and H in any connected component.
The coordinates (i,j) of the grid points of lattice G in one of the arms are provided in this sequence (i) and in A307447 (j). Instead of applying the offset of (1/2,1/2) between lattices G and H, all distances are scaled by a factor of 2. Only grid points with odd coordinates are used from G and grid points with even coordinates from H.
The construction of the selected one arm proceeds as follows: Start with the edge (1,1)->(3,1) in G. Determine the point with even coordinates in H (rotated) that is closest to the midpoint (2,1) of the considered edge of G. After rotation by Pi/6 the coordinates of point (2,0) in H become (1.732051,1.000). A grid point from H after rotation is only accepted if its distances from both end points of the edge in G are less than sqrt(2). The distance from (1,1) is 0.732051 and from (3,1) 1.267949, both < sqrt(2).
To determine the continuation of the path, excluding U-turns, the rotated grid points of H closest to the midpoints of the 3 candidate edges starting at the end point of the edge selected in the previous step are subjected to the tests of not exceeding distance sqrt(2) from both ends of the respective candidate edge of G. If more than one of the 3 candidate edges passes the checks, the one with least distance of its midpoint to the closest grid point in H (rotated) is selected.
A visualization of the selection process is provided in the plot "Construction of A307446 and A307447", see link. The selected path on the grid points of G is marked in red. Grid points of H (rotated) are marked in blue. The checked candidate edges are in cyan. A distance of the closest point in H from the start point of the candidate edge exceeding sqrt(2) is marked in orange, and a distance from the end point exceeding sqrt(2) is marked in brown. Vectors in purple are used for the distance between midpoints of edges in G to the closest point in H (rotated).
The infinite length of the 4 arms has yet to be proved.

Crossrefs

Coordinates of corresponding points on rotated lattice: A307482, A307483.

Programs

  • PARI
    continuation(ii,jj,iprev,jprev)=
    {my(i,j,ix,iy,x,y,d,C=sqrt(3)/2,S=1/2,
    id=[1,0,-1,0],jd=[0,1,0,-1],v=[0,0],dmin=oo);
    for(nd=1,4,i=ii+id[nd];j=jj+jd[nd];
    if(i!=iprev||j!=jprev,
    x=C*i+S*j;ix=round(x);if(ix%2!=0,if(ix>x,ix--,ix++));
    y=C*j-S*i;iy=round(y);if(iy%2!=0,if(iy>y,iy--,iy++));
    x=C*ix-S*iy;y=C*iy+S*ix;
    if((i+id[nd]-x)^2+(j+jd[nd]-y)^2<2&&(x-ii)^2+(y-jj)^2<2,d=(i-x)^2+(j-y)^2;
    if(dA307447
    for(k=1,68,print1(ii,", ");w=continuation(ii,jj,iprev,jprev);iprev=w[1];jprev=w[2];ii+=2*(w[1]-ii);jj+=2*(w[2]-jj))

A307447 Second coordinate of a contiguous path on the odd numbered points of a square lattice leading to a distance-limited bijection with the even numbered points of a square lattice rotated by Pi/6 around the common point (0,0). A307446 gives the first coordinate.

Original entry on oeis.org

1, 1, 3, 5, 5, 5, 3, 3, 3, 5, 7, 7, 9, 11, 11, 11, 13, 15, 15, 17, 19, 19, 19, 17, 17, 17, 19, 21, 21, 21, 19, 19, 19, 17, 15, 15, 13, 11, 11, 11, 9, 9, 9, 11, 13, 13, 13, 11, 11, 11, 13, 15, 15, 17, 19, 19, 19, 21, 23, 23, 25, 27, 27, 27, 25, 25, 25, 27
Offset: 1

Views

Author

Hugo Pfoertner, Apr 10 2019

Keywords

Comments

For a description of the construction and visualizations see A307446.

Crossrefs

Coordinates of corresponding points on rotated lattice: A307482, A307483.

Programs

  • PARI
    \\ See A307446 for PARI code.

A367148 Cycle lengths obtained by repeated application of the strip bijection for the triangular lattice described in A367147.

Original entry on oeis.org

1, 10, 12, 36, 37, 56, 60, 72, 84, 110, 120, 154, 156, 168, 192, 278, 370, 398, 444, 492, 516, 564, 600, 614, 660, 924, 961, 1114, 1128, 1164, 1500, 1574, 1668, 1786, 2052, 2076, 2100, 2220, 2336, 2388, 2604, 2952, 3300, 3456, 3612, 3684, 3924, 4548, 4692, 4882, 4968
Offset: 1

Views

Author

Hugo Pfoertner, Nov 11 2023

Keywords

Comments

The repeated application of the bijection function Q described in A367147, which maps a pair of triangular coordinates [i,j] to an image point [m,n], returns to the starting point after a number of steps dependent on the starting point. One mapping step leads to a location that approximately corresponds to a rotation of Pi/6, so that often, but not always, the lengths of the orbits created are multiples of 12. The situation is very similar to that described in the comment to A363760 for the analogous process applied to the square grid. As the lengths of the cycles increase, remarkable self-similar structures emerge; see the visualization of a cycle with a length L > 6*10^8.

Examples

			a(1) = 1: Starting point [0, 0] trivially mapped to [0, 0]; Q([0, 0]) -> [0, 0], Q([1, 0]) -> [1, 0]. Points exactly mapped to rotated location.
a(2) = 10: [2,0] -> [3,-2] -> [2,-3] -> [1,-3] -> [-1,-2] -> [-2,0] -> [-3,2] -> [-2,3] -> [-1,3] -> [1,2] -> [2, 0];
a(3) = 12: [3,0] -> [4,-2] -> [4,-4] -> [2,-5] -> [-1,-4] -> [-3,-2] -> [-4,0] -> [-5,2] -> [-5, 4] -> [-3,5] -> [0,4] -> [2,2] -> [3,0].
.
List of triangular coordinates [i, j] of start points and corresponding cycle lengths:
.
     j  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14  15  16
   i \-------------------------------------------------------------------
   0 |  1   1  10  10  12  12  56  12 110  12  12  12  12 278  12  12  12
   1 |  1  10  10  12  12  12  56  12  12 110  12  12  37 278  12  12 278
   2 | 10  10  12  12  56  56  12 110  12 110  37 278 278  12 278  12 278
   3 | 12  12  12  12  12  56  12 110  12 110  37  12 278 278 278  12  60
   4 | 12  12  12  56  12 110  12 110  12  37 278  12 278  12  60  12  12
   5 | 12  56  56  56  12 110  12  12 110  37 278  12 278  12  12  60  12
   6 | 12  56  12 110  12  12  12  37 278 278 278 278  12  60  12  60  12
   7 | 12 110  12  12 110  12  12  12 278  12  12 278  12  60  12  12  60
   8 | 12  12 110  12 110  37 278  37  12  12  12 278  12  12  60  12 398
   9 |110  12 110  12 110  37 278 278  12  12  12  12 278  12 398  12 398
  10 | 12  12 110  37  12 278  12 278  12  12 278  12 398 398 398  12  12
  11 | 12  37  37 278  12 278 278  12 278  12 278  12 398  12  12  12  12
  12 | 12 278 278 278  12  12 278  12 278  12 398  12  12  12  12  12  72
  13 | 37 278  12 278 278  12  60  12  60  12 398 398  12  12  72  36  72
  14 | 12  12 278  12  60  12  60  12  12 398  12  12  12  36  36  12  12
  15 | 12  12 278  12  60  12  12  60  12 398  12  12  72  72  12  12  12
  16 | 12  12 278  12  12  60  12  60  12 398  12  12 398  72  12  12  72
		

Crossrefs

Programs

  • PARI
    \\ uses mapping function Q defined in PARI program of A367147
    cycle(v) = {my (n=1, w=Q(v)); while (w!=v, n++; w=Q(w)); n};
    L = List(); \\ global list to support repeated calls of function a367148
    a367148(x10min=2, x10max=3, nrep=10000) = {for (n10=x10min, x10max, my (rmax=10^n10); for (n=1, nrep, my (x=random(rmax), y=random(rmax), c=cycle([x, y])); if(setsearch(L, c)==0, print1([c,x,y],", "); listput(L, c); listsort(L, 1)))); L};
    \\ De-activate print to avoid output of starting points
    a367148(2,3) \\ usually sufficient to get all terms <= 1500, repeat and increase nrep for confirmation; no shortcut for efficient systematic selection of starting points is known.

A368124 A variant of A367146 with application of the distance minimization to the first of two symmetrized versions of the strip bijection between two square lattices as described in A368121.

Original entry on oeis.org

1, 8, 12, 24, 60, 72, 168, 216, 264, 300, 624, 1560, 1692, 1752, 2232, 4824, 9804, 12456, 13080, 17064, 35040, 57084, 92184, 92952, 123096, 244584, 332652, 639192, 651432, 855240, 1660752
Offset: 1

Views

Author

Hugo Pfoertner, Jan 01 2024

Keywords

Comments

Apparently, a(n) == 0 (mod 4) for n > 1. For cycles, whose lengths are multiples of 8, the visited points form 8 separated islands.
Larger terms are 4293336, 4462104, 5787768, 11050488, 28333080, 38414184, 72397248.

Crossrefs

A368125 is a permutation of this sequence.
A368129 is the analog for the second symmetrized version of the strip bijection.

Programs

  • PARI
    \\ Uses definitions and functions from
    \\ a367150_PARI.txt and a368121_PARI.txt
    cycle(v) = {my (n=1, w=BijectionD(v, BijectionK)); while (w!=v, n++; w=BijectionD(w,BijectionK)); n};
    a368124(rmax=205) = {my (L=List()); for (r2=0, rmax^2, for (x=0, sqrtint(r2), my (y2=r2-x^2,y); if (issquare(y2,&y), if(x>=y, my (c=cycle([x,y])); if (setsearch(L,c)==0, print([c,[x,y],sqrt(x^2+y^2)],", "); listput(L,c); listsort(L,1)))))); L};
    a368124() \\ Terms < 1000

A368125 A variant of A367894 with application of the distance minimization to the first of two symmetrized versions of the strip bijection between two square lattices as described in A368121.

Original entry on oeis.org

1, 8, 12, 60, 24, 72, 300, 264, 216, 624, 168, 1692, 2232, 1752, 4824, 1560, 9804, 17064, 13080, 35040, 12456, 57084, 123096, 92952
Offset: 1

Views

Author

Hugo Pfoertner, Dec 31 2023

Keywords

Crossrefs

A permutation of A368124.
A368130 is the analog for the second symmetrized version of the strip bijection.

A368129 A variant of A367146 with application of the distance minimization to the second of two symmetrized versions of the strip bijection between two square lattices as described in A368126.

Original entry on oeis.org

1, 8, 12, 24, 72, 156, 168, 216, 264, 624, 1560, 1752, 1836, 2232, 4824, 12456, 13080, 16380, 17064, 35040, 92184, 92952, 123096, 128844, 244584, 639192, 651432, 855240, 945756
Offset: 1

Views

Author

Hugo Pfoertner, Jan 03 2024

Keywords

Comments

Apparently, a(n) == 0 (mod 4) for n > 1. For cycles, whose lengths are multiples of 8, the visited points form 8 separated islands.
Larger terms are 1660752, 4293336, 4462104, 5787768, 6647916, 11050488, 28333080, 38414184, 45366204, 184427544.

Examples

			See files linked in A368130 for visualization of orbits.
		

Crossrefs

A368130 is a permutation of this sequence.
A368124 is the analog for the first symmetrized version of the strip bijection.

Programs

  • PARI
    \\ Uses definitions and functions from
    \\ a367150_PARI.txt and a368126_PARI.txt
    cycle(v) = {my (n=1, w=BijectionD(v, Bijectionk)); while (w!=v, n++; w=BijectionD(w, Bijectionk)); n};
    a368129(rmax=235) = {my (L=List()); for (r2=0, rmax^2, for (x=0, sqrtint(r2), my (y2=r2-x^2, y); if (issquare(y2, &y), if(x>=y, my (c=cycle([x, y])); if (setsearch(L, c)==0, print([c, [x, y], sqrt(x^2+y^2)], ", "); listput(L, c); listsort(L, 1)))))); L};
    a368129() \\ Terms < 1000, takes 5-10 minutes CPU time

A368130 A variant of A367894 with application of the distance minimization to the second of two symmetrized versions of the strip bijection between two square lattices as described in A368126.

Original entry on oeis.org

1, 8, 12, 24, 156, 72, 216, 1836, 624, 168, 1752, 264, 16380, 4824, 1560, 13080, 2232, 128844, 35040, 12456, 92952, 17064, 945756, 244584
Offset: 1

Views

Author

Hugo Pfoertner, Dec 30 2023

Keywords

Crossrefs

A permutation of A368129.
A368125 is the analog for the first symmetrized version of the strip bijection.

A367147 Index of matching grid point in the bijection between two infinite triangular grids with one grid rotated by Pi/6 around the common point (0,0), using an enumeration of the grid points by A307014 and A307016.

Original entry on oeis.org

0, 1, 2, 3, 4, 5, 6, 12, 14, 15, 9, 17, 18, 29, 7, 8, 23, 10, 11, 30, 13, 20, 21, 22, 33, 24, 16, 26, 27, 28, 36, 42, 19, 38, 39, 25, 41, 31, 32, 57, 34, 35, 60, 54, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 72, 37, 63, 66, 40, 69, 55, 73, 74, 56, 76, 77, 58, 79, 80, 59
Offset: 0

Views

Author

Klaus Nagel and Hugo Pfoertner, Nov 06 2023

Keywords

Comments

The methods used to achieve a distance-limited bijection of the points of two square grids (see A307110) are applied here to triangular grids. The two grids, which are rotated by 30 degrees = Pi/6 from each other, are assigned the colors red and blue to distinguish them, which are also used in the illustrations. The blue triangular grid is turned clockwise by 15 degrees = Pi/12, all points are lined up on parallel lines with inclination Pi/12 towards the vertical axis. These are called blue lines. The vertical distance between adjacent points is cos(Pi/12). The same is done for the red grid with a CCW rotation of Pi/12. The whole plane is divided into stripes with a width of cos(Pi/12) ~= 0.9659. Every blue line and every red line contains exactly one grid point of its color in each stripe. The blue and red lines alternately intersect the horizontal centerline of a stripe. The distance between two intersections of the same color is d = sqrt(3)/(2*cos(Pi/12)). The bijection maps the section of a blue line in a stripe to the section of the unique red line, that intersects the centerline less than d/2 away. The grid points on these two line sections are the partners of the tile bijection.
While the method described only finds a minimum of the maximum distance of approximately 0.9659 by assigning the bijection partners using tiles, applying the Hopcroft-Karp algorithm to the bipartite graph corresponding to a sufficiently large section of the two infinite grids achieves significantly lower maximum distances. We conjecture that an upper bound for the maximum distance is sqrt(2)/2~=0.7071. See the corresponding link.
A method that reduces the maximal occurring bijection distance to its conjectured minimum, and only requires local rearrangements, as described for the square grids in A307731, is currently not known in the present case of the triangular grids.

Examples

			   n  A307014(n)        Bijection partner
   |  |  A307016(n)     in rotated grid
   |  |  |                          rotated by Pi/6
   |  |  |   x    y     i  j  a(n)   u      v   Distance([x,y],[u,v])
   0  0  0  0.0  0.0    0  0   0    0.0    0.0  0.0
   1  1  0  1.0  0.0    1  0   1    0.866  0.5  0.51764
   2  0  1  0.5  0.866  0  1   2    0.0    1.0  0.51764
   3 -1  1 -0.5  0.866 -1  1   3   -0.866  0.5  0.51764
   4 -1  0 -1.0  0.0   -1  0   4   -0.866 -0.5  0.51764
   5  0 -1 -0.5 -0.866  0 -1   5    0.0   -1.0  0.51764
   6  1 -1  0.5 -0.866  1 -1   6    0.866 -0.5  0.51764
   7  1  1  1.5  0.866  2 -1  12    1.732  0.0  0.89658
   8 -1  2  0.0  1.732  0  2  14    0.0    2.0  0.26795
   9 -2  1 -1.5  0.866 -2  2  15   -1.732  1.0  0.26795
  10 -1 -1 -1.5 -0.866 -2  1   9   -1.732  0.0  0.89658
  11  1 -2  0.0 -1.732  0 -2  17    0.0   -2.0  0.26795
  12  2 -1  1.5 -0.866  2 -2  18    1.732 -1.0  0.26795
  13  2  0  2.0  0.0    3 -2  29    2.598 -0.5  0.77955
  14  0  2  1.0  1.732  1  1   7    0.866  1.5  0.26795
  15 -2  2 -1.0  1.732 -1  2   8   -0.866  1.5  0.26795
		

Crossrefs

Programs

  • PARI
    \\ See linked file; function call to output data:
    a367147(70)

A386241 Decimal expansion of sqrt(5)*sin(Pi/8).

Original entry on oeis.org

8, 5, 5, 7, 0, 6, 1, 6, 8, 6, 3, 1, 2, 8, 3, 8, 4, 7, 7, 7, 4, 8, 1, 8, 0, 7, 1, 8, 2, 4, 6, 8, 3, 7, 0, 7, 3, 0, 1, 7, 0, 4, 1, 9, 3, 5, 9, 7, 3, 3, 4, 5, 4, 8, 0, 8, 7, 2, 2, 4, 2, 2, 8, 6, 4, 8, 0, 0, 9, 5, 0, 6, 5, 9, 8, 8, 2, 5, 8, 7, 5, 5, 4, 5, 0, 0, 9
Offset: 0

Views

Author

Hugo Pfoertner, Jul 18 2025

Keywords

Comments

Upper bound of the wobbling distance S of two rotated square lattices. See A307110 and A307731 for the special case of rotation angle Pi/4. According to Jan Fricke (1999), the angle Pi/4 is the most unfavorable case, i.e., smaller bounds can be found for all other angles.

Examples

			0.8557061686312838477748180718246837073...
		

Crossrefs

Programs

Formula

The minimal polynomial is 8*x^4 - 40*x^2 + 25. - Joerg Arndt, Aug 02 2025
Previous Showing 11-20 of 20 results.