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-9 of 9 results.

A235141 First differences of A234300.

Original entry on oeis.org

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

Views

Author

Rajan Murthy, Jan 03 2014

Keywords

Comments

A geometric interpretation of the sequence is the number of added or subtracted squares along the edge of (not completely within) an origin centered circle in a quadrant of a Cartesian grid as the radius increases. The number of squares increase or decrease when the radius squared changes from being exactly on a corner of a square (r^2 = m^2+n^2) to the open interval between corners given by (m^2+n^2,(m+1)^2+(n+1)^2). The square radii that correspond to corners are given by A001481, so each a(n) corresponds to the radius changing from a point to an element of an open set bounded by adjacent elements of A001481.
a(n) is 0 when the radius squared increases from the open interval less than a perfect square to the perfect square itself (corresponding to a radius that intersects the x and y axes at an integer), see below for example.
a(n) is odd when the square radius changes to or from an integer which is twice a square integer (on a corner on the y= x line), see below for example.

Examples

			a(6) = 0 corresponding to a change of square radius from the open interval (3,4) to 4, i.e., the interval (A001481(3),A001481(4)) to A001481(4).
a(48) and a(49) are odd,  corresponding to the transition from (49,50) to 50 and 50 to (50,52) respectively (r = 5).
		

Crossrefs

First differences of A234300.
Cf. A001481 (see comments).
Cf. A232499 (number of completely encircled squares when the radii are indexed by A000404).

Formula

a(n) = A234300(n) - A234300(n-1).

A235143 Positions of -2 in A235141, the first differences of A234300.

Original entry on oeis.org

8, 14, 16, 20, 24, 26, 28, 30, 34, 38, 40, 42, 44, 50, 52, 54, 56, 62, 66, 68, 70, 74, 78, 80, 82, 86, 88, 90, 92, 94, 96, 98, 100, 104, 112, 114, 120, 122, 124, 126, 128, 130, 134, 136, 140, 142, 144, 146, 150, 152, 156, 160, 164, 166, 168, 172, 174, 176, 178, 180, 182, 184, 188, 190, 196, 200, 204
Offset: 1

Views

Author

Rajan Murthy, Jan 03 2014

Keywords

Comments

The positions reflect radii which are a unique sum of two and only two distinct nonzero square integers.
The positions are a bit less frequent in occurrence than the positions where the first differences equal 2 because when the radius changes from exactly an integer value k to the open interval (k,k+1), the number of edge squares increase by 2, while in the reverse case, an increase from the open interval (k,k+1) to exactly k+1, the number of edge squares stays the same rather than decreasing by 2 as occurs in cases when the radii are a sum of two and only two distinct nonzero square integers. This is in contrast to positions where the first difference of A234300 equals 1 which are exactly balanced by positions which equal -1.

Examples

			a(1) = 8 which corresponds to the transition of the square radius from the interval (4,5) to 5 = 1^2 + 2^2.
a(2) = 14 which corresponds to the transition from (9,10) to 10 = 1^2 + 3^2.
		

Crossrefs

A235387 Positions of 2's in A235141, the first differences of A234300.

Original entry on oeis.org

3, 7, 9, 13, 15, 17, 19, 21, 25, 29, 31, 35, 37, 39, 41, 43, 45, 47, 51, 53, 55, 57, 59, 63, 67, 69, 71, 73, 75, 79, 81, 83, 89, 91, 93, 95, 97, 99, 101, 103, 105, 113, 115, 117, 121, 123, 125, 127, 129, 131, 135, 141, 143, 145, 147, 151, 153, 155, 157, 161, 165, 167, 169, 175, 177, 179, 181
Offset: 1

Views

Author

Rajan Murthy, Jan 08 2014

Keywords

Comments

The positions reflect radii which are a unique sum of two distinct square integers where order doesn't matter.
The positions are more frequent in occurrence than the positions where the first differences equal -2 because when the radius changes from exactly an integer value k to the open interval (k,k+1), the number of edge squares increases by 2, while in the reverse case, an increase from the open interval (k,k+1) to exactly k+1, the number of edge squares stays the same. This is in contrast to positions where the first difference equals 1 which are exactly balanced by positions which equal -1 .

Examples

			a(2) = 7 corresponding to the shift from squared radius of 4 to (4,5).  This also marks a shift of the radius from 2 to (2,3).  The preceding shift, A235141(6), from radius in the interval (1,2) to 2 and squared radius in the interval (2,4) to 4 does not change the number of edge squares.
a(3) = 9 corresponding to the shift from squared radius of 5 to (5,8).  The radius however remains in the interval (2,3).  The preceding shift, A235141(8), from squared radius in the interval (4,5) to 5 results in a decrease of two due to the completion of the squares with upper right hand corner coordinates of x=1, y =2 and x=2, y=1 (since 5 = 1^2+2^2).
		

Crossrefs

A235142 Numbers k such that A235141(k) = -1.

Original entry on oeis.org

4, 10, 22, 32, 64, 84, 108, 132, 186, 214, 284, 360, 446, 490, 590, 642, 694, 746, 930, 990, 1192, 1266, 1342, 1568, 1738, 2086, 2180, 2276, 2470, 2572, 2668, 2780, 3326, 3556, 3680, 3922, 4298, 4430, 4560, 4832, 4968
Offset: 1

Views

Author

Rajan Murthy, Jan 03 2014

Keywords

Comments

The positions reflect square radii which are uniquely twice a square integer, that is, the completion of only one square on the y = x line.

Examples

			For n = 2, a(2) = 10.  The 10th term of A235141 is -1 corresponding to the square radius of an origin centered circle increasing from the open interval(5,8) to exactly 8.
		

Crossrefs

A000548(n) = (A001481(1 + a(n)/2 ) )/2.

Formula

a(n) = A235386(n+1) - 1.

A235386 Numbers k such that A235141(k) = 1.

Original entry on oeis.org

1, 5, 11, 23, 33, 65, 85, 109, 133, 187, 215, 285, 361, 447, 491, 591, 643, 695, 747, 931, 991, 1193, 1267, 1343, 1569, 1739, 2087, 2181, 2277, 2471, 2573, 2669, 2781, 3327, 3557, 3681, 3923, 4299, 4431, 4561, 4833, 4969
Offset: 1

Views

Author

Rajan Murthy, Jan 08 2014

Keywords

Comments

The positions reflect square radii which are uniquely twice a square integer, that is, the inclusion of only one square on the y = x line.

Examples

			for n=3, a(3) = 11. The eleventh term of A235141 is 1 reflecting an increase in the square radius of the circle from exactly 8 to the open interval of (8,9).
		

Crossrefs

A000548(n) = A001481(1 + (a(n+1)-1)/2)/2.

Formula

a(n+1) = A235142(n) + 1, a(1)=1.

A237708 Number of unit cubes, aligned with a three-dimensional Cartesian mesh, partially encircled along the edge of the first octant of a sphere centered at the origin, ordered by increasing radius.

Original entry on oeis.org

0, 1, 1, 4, 4, 7, 6, 7, 7, 10, 10, 16, 13, 16, 16, 19, 16, 22, 22, 28, 25, 28, 27, 28, 28, 34, 28, 34, 34, 37, 34, 43, 40, 46, 43, 46, 46, 52, 46, 52, 49, 52, 49, 52, 52, 61, 55, 67, 63
Offset: 0

Views

Author

Rajan Murthy, Feb 11 2014

Keywords

Examples

			At radius 0, there are no partially filled cubes.  At radius >0 but < sqrt(1), there is 1 partially filled square along the edge of the sphere.  At radius = sqrt(1), there is 1 partially filled cube along the edge of the sphere.  At radius > 1 but < sqrt(2), there  are 4 partially filled cubes.
		

Crossrefs

Cf. A000378 (corresponds to the square radius of alternate entries).
Cf. A234300 (2-dimensional analog).

A239355 Number of unit hypercubes, aligned with a four-dimensional Cartesian mesh, partially enclosed along the edge of the first 2^4-ant of a hypersphere centered at the origin, ordered by increasing radius.

Original entry on oeis.org

0, 1, 1, 5, 5, 11, 11, 15, 14, 19, 19, 31, 31, 43, 39, 43, 43, 49, 49, 65, 59, 77, 77, 89, 85, 93, 89, 105, 105, 129, 117, 129, 128, 133, 133, 157, 145, 175, 171, 187, 181, 199, 195, 223, 211, 235, 223, 235, 235, 247, 235, 263, 257, 299, 287, 315, 303, 315
Offset: 1

Views

Author

Rajan Murthy, Mar 16 2014

Keywords

Examples

			At radius 0, there are no partially filled cubes.  At radius > 0 but < 1, there is 1 partially filled square along the edge of the sphere.  At radius = 1, there is 1 partially filled cube along the edge of the sphere.  At radius > 1 but < sqrt(2), there are 5 partially filled cubes.
		

Crossrefs

Cf. A001477 (corresponds to the square radius of alternate entries).
Cf. A237708 (3-dimensional analog), A234300 (2-dimensional analog).

Extensions

Terms a(22) and beyond from b-file by Andrew Howroyd, Feb 05 2018

A240600 Number of partially filled hexagons in the first 120-degree circular sector of hexagonal lattice A_2 centered at deep hole along the edge of a circle also centered at the deep hole.

Original entry on oeis.org

0, 1, 1, 2, 2, 4, 3, 3, 3, 5, 4, 5, 5, 7, 5, 5, 5, 6, 6, 8, 6, 8, 7, 7, 7, 9, 7, 7, 7, 9, 8, 9, 9, 11, 9, 11, 9, 9, 9, 11, 9, 10, 10, 12, 10, 12, 12, 14, 12, 14, 13, 13, 11, 11, 11, 13, 13, 15, 13, 13, 13, 15, 14
Offset: 0

Views

Author

Rajan Murthy, Apr 09 2014

Keywords

Comments

A(n) alternates between the numbers for circles which intersect points on the A2 lattice and the numbers for circles which pass in between the points on a lattice.

Examples

			for n = 1, the squared radius is in the open interval (0,1) and the corresponding circle passes through 1 hexagon.
for n = 14, the squared radius is 13 with the corresponding circle passing through the furthest corner of 2 hexagons and passing through 5 hexagons.
		

Crossrefs

A038588 gives the number of hexagons completely encircled in all three circular sectors.
Squared radii of alternate entries is given by the Loeschian numbers A003136.
A234300 is the analog for the 2-d Cartesian lattice.
A237708 is the analog for the 3-d Cartesian lattice.
A239353 is the analog for the 4-d Cartesian lattice.

A333597 The number of unit cells intersected by the circumference of a circle centered on the origin with radius squared equal to the norm of the Gaussian integers A001481(n).

Original entry on oeis.org

0, 4, 8, 12, 12, 16, 20, 20, 20, 28, 28, 32, 28, 28, 36, 36, 40, 36, 44, 44, 44, 44, 44, 52, 48, 52, 52, 52, 52, 60, 52, 60, 64, 60, 60, 60, 68, 68, 60, 68, 68, 68, 72, 68, 76, 76, 76, 76, 76, 76, 76, 84, 84, 76, 88, 76, 84, 84, 92, 84, 92
Offset: 1

Views

Author

Scott R. Shannon, Mar 28 2020

Keywords

Comments

Draw a circle on a 2D square grid centered at the origin with a radius squared equal to the norm of the Gaussian integers A001481(n). See the images in the links. This sequence gives the number of unit cells intersected by the circumference of the circle. Equivalently this is the number of intersections of the circumference with the x and y integer grid lines.

Crossrefs

Cf. A001481, A055025, A057655, A119439, A242118 (a subsequence of this sequence), A234300.

Formula

a(n) = 4*A234300(2*(n-1)). - Andrey Zabolotskiy, Feb 22 2025
Showing 1-9 of 9 results.