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-10 of 18 results. Next

A296343 Numbers in cells in spiral A274820 on spoke through center with slope 0 degrees.

Original entry on oeis.org

0, 1, 3, 7, 6, 8, 12, 16, 14, 17, 21, 22, 20, 24, 29, 25, 41, 30, 36, 34, 37, 38, 45, 43, 56, 44, 51, 48, 52, 54, 55, 70, 57, 61, 63, 66, 83, 85, 69, 92, 74, 82, 77, 104, 86, 106, 79, 87, 117, 118, 93, 94, 96, 97, 98, 99, 103, 102, 110, 112, 111, 113, 116, 154
Offset: 0

Views

Author

N. J. A. Sloane, Dec 12 2017

Keywords

Comments

It is conjectured that this and A296346 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 12 2017

A296348 Numbers in cells in spiral A274820 on spoke through center with slope 300 degrees.

Original entry on oeis.org

0, 2, 6, 4, 7, 12, 14, 11, 20, 24, 26, 28, 21, 33, 23, 27, 32, 45, 48, 35, 49, 52, 55, 40, 43, 42, 63, 67, 71, 75, 58, 79, 60, 86, 64, 89, 66, 93, 96, 95, 99, 102, 76, 77, 84, 113, 81, 88, 120, 90, 92, 129, 98, 132, 138, 139, 140, 144, 106, 145, 108, 114, 156
Offset: 0

Views

Author

N. J. A. Sloane, Dec 16 2017

Keywords

Comments

It is conjectured that this and A296345 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 17 2017

A296344 Numbers in cells in spiral A274820 on spoke through center with slope 60 degrees.

Original entry on oeis.org

0, 2, 4, 5, 7, 9, 16, 11, 13, 15, 20, 19, 22, 21, 34, 27, 28, 32, 45, 35, 33, 44, 42, 53, 43, 49, 60, 65, 50, 51, 57, 58, 55, 83, 62, 64, 88, 70, 67, 71, 97, 76, 79, 78, 81, 112, 87, 111, 91, 89, 92, 96, 130, 98, 134, 101, 105, 140, 142, 104, 108, 146, 152
Offset: 0

Views

Author

N. J. A. Sloane, Dec 12 2017

Keywords

Comments

It is conjectured that this and A296347 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 17 2017

A296345 Numbers in cells in spiral A274820 on spoke through center with slope 120 degrees.

Original entry on oeis.org

0, 1, 5, 3, 9, 8, 10, 18, 19, 13, 15, 16, 17, 22, 25, 37, 29, 30, 34, 31, 36, 50, 39, 38, 41, 46, 44, 47, 51, 53, 54, 56, 59, 57, 61, 65, 62, 82, 68, 72, 69, 70, 74, 73, 101, 80, 78, 83, 85, 87, 91, 94, 97, 125, 100, 103, 104, 116, 105, 111, 112, 110, 107, 109
Offset: 0

Views

Author

N. J. A. Sloane, Dec 16 2017

Keywords

Comments

It is conjectured that this and A296348 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 17 2017

A296346 Numbers in cells in spiral A274820 on spoke through center with slope 180 degrees.

Original entry on oeis.org

0, 2, 4, 5, 11, 10, 15, 9, 13, 18, 19, 28, 23, 26, 35, 32, 27, 31, 33, 46, 39, 40, 42, 58, 49, 47, 65, 50, 68, 67, 53, 59, 60, 62, 64, 73, 84, 71, 72, 76, 88, 81, 75, 78, 89, 108, 80, 115, 90, 91, 122, 100, 105, 95, 101, 139, 133, 107, 109, 148, 119, 149, 114
Offset: 0

Views

Author

N. J. A. Sloane, Dec 16 2017

Keywords

Comments

It is conjectured that this and A296343 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 17 2017

A296347 Numbers in cells in spiral A274820 on spoke through center with slope 240 degrees.

Original entry on oeis.org

0, 1, 3, 6, 12, 8, 10, 17, 14, 23, 18, 26, 31, 24, 25, 29, 30, 40, 36, 37, 38, 39, 41, 59, 46, 66, 47, 48, 52, 54, 56, 73, 61, 84, 86, 63, 68, 75, 95, 69, 72, 74, 77, 80, 82, 85, 90, 93, 116, 94, 109, 102, 100, 107, 99, 132, 103, 106, 113, 110, 114, 115, 117
Offset: 0

Views

Author

N. J. A. Sloane, Dec 16 2017

Keywords

Comments

It is conjectured that this and A296344 together are a permutation of the nonnegative numbers.

Crossrefs

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 17 2017

A296342 a(n) = index of first n in A274820.

Original entry on oeis.org

0, 1, 2, 8, 10, 12, 18, 21, 37, 43, 51, 52, 56, 95, 99, 101, 102, 135, 147, 192, 193, 217, 222, 224, 270, 299, 330, 340, 374, 407, 443, 456, 519, 546, 557, 558, 674, 675, 703, 704, 735, 736, 865, 866, 917, 918, 971, 1025, 1026, 1120, 1179, 1198, 1301, 1342
Offset: 0

Views

Author

N. J. A. Sloane, Dec 12 2017

Keywords

Crossrefs

Cf. A274820.

Programs

  • PARI
    See Links section.

Extensions

More terms from Rémy Sigrist, Dec 12 2017

A274650 Triangle read by rows: T(n,k), (0 <= k <= n), in which each term is the least nonnegative integer such that no row, column, diagonal, or antidiagonal contains a repeated term.

Original entry on oeis.org

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

Views

Author

Omar E. Pol, Jul 02 2016

Keywords

Comments

Similar to A274528, but the triangle here is a right triangle.
The same rule applied to an equilateral triangle gives A274528.
By analogy, the offset for both rows and columns is the same as the offset of A274528.
We construct the triangle by reading from left to right in each row, starting with T(0,0) = 0.
Presumably every diagonal and every column is also a permutation of the nonnegative integers, but the proof does not seem so straightforward. Of course neither the rows nor the antidiagonals are permutations of the nonnegative integers, since they are finite in length.
Omar E. Pol's conjecture that every column and every diagonal of the triangle is a permutation of the nonnegative integers is true: see the link. - N. J. A. Sloane, Jun 07 2017
It appears that the numbers generally appear for the first time in or near the right border of the triangle.
Theorem 1: the middle diagonal gives A000004 (the zero sequence).
Proof: T(0,0) = 0 by definition. For the next rows we have that in row 1 there are no zeros because the first term belongs to a column that contains a zero and the second term belongs to a diagonal that contains a zero. In row 2 the unique zero is T(2,1) = 0 because the preceding term belongs to a column that contains a zero and the following term belongs to a diagonal that contains a zero. Then we have two recurrences for all rows of the triangle:
a) If T(n,k) = 0 then row n+1 does not contain a zero because every term belongs to a column that contains a zero or it belongs to a diagonal that contains a zero.
b) If T(n,k) = 0 the next zero is T(n+2,k+1) because every preceding term in row n+2 is a positive integer because it belongs to a column that contains a zero and, on the other hand, the column, the diagonal and the antidiagonal of T(n+2,k+1) do not contain zeros.
Finally, since both T(n,k) = 0 and T(n+2,k+1) = 0 are located in the middle diagonal, the other terms of the middle diagonal are zeros, or in other words: the middle diagonal gives A000004 (the zero sequence). QED
Theorem 2: all zeros are in the middle diagonal.
Proof: consider the first n rows of the triangle. Every element located above or at the right-hand side of the middle diagonal must be positive because it belongs to a diagonal that contains one of the zeros of the middle diagonal. On the other hand every element located below the middle diagonal must be positive because it belongs to a column that contains one of the zeros of the middle diagonal, hence there are no zeros outside of the middle diagonal, or in other words: all zeros are in the middle diagonal. QED
From Hartmut F. W. Hoft, Jun 12 2017: (Start)
T(2k,k) = 0, for all k >= 0, and T(n,{(n-1)/2,(n+2)/2,(n-2)/2,(n+1)/2}) = 1, for all n >= 0 with n mod 8 = {1,2,4,5} respectively, and no 0's or 1's occur in other positions. The triangle of positions of 0's and 1's for this sequence is the triangle in the Comment section of A274651 with row and column indices and values shifted down by one.
The sequence of rows containing 1's is A047613 (n mod 8 = {1,2,4,5}), those containing only 1's is A016813 (n mod 8 = {1,5}), those containing both 0's and 1's is A047463 (n mod 8 = {2,4}), those containing only 0's is A047451 (n mod 8 = {0,6}), and those containing neither 0's nor 2's is A004767 (n mod 8 = {3,7}).
(End)

Examples

			Triangle begins:
   0;
   1,  2;
   3,  0,  1;
   2,  4,  3,  5;
   5,  1,  0,  2,  3;
   4,  3,  5,  1,  6,  7;
   6,  7,  2,  0,  5,  4,  8;
   8,  5,  9,  4,  7,  2, 10,  6;
   7, 10,  8,  3,  0,  6,  9,  5,  4;
  11,  6, 12,  7,  1,  8,  3, 10,  9, 13;
   9,  8,  4, 11,  2,  0,  1, 12,  6,  7, 10;
  10, 11,  7, 12,  4,  3,  2,  9,  8, 14, 13, 15;
  12,  9, 10,  6,  8,  1,  0, 11,  7,  4, 16, 14, 17;
  ...
From _Omar E. Pol_, Jun 07 2017: (Start)
The triangle may be reformatted as an isosceles triangle so that the zero sequence (A000004) appears in the central column (but note that this is NOT the way the triangle is constructed!):
.
.                    0;
.                  1,  2;
.                3,  0,  1;
.              2,  4,  3,  5;
.            5,  1,  0,  2,  3;
.          4,  3,  5,  1,  6,  7;
.        6,  7,  2,  0,  5,  4,  8;
.     8,   5,  9,  4,  7,  2, 10,  6;
.   7,  10,  8,  3,  0,  6,  9,  5,  4;
...
(End)
		

Crossrefs

Cf. A000004 (middle diagonal).
Cf. A046092 (indices of the zeros).
Every diagonal and every column of the right triangle is a permutation of A001477.
The left and right edges of the right triangle give A286294 and A286295.
Cf. A274651 is the same triangle but with 1 added to every entry.
Other sequences of the same family are A269526, A274528, A274820, A274821, A286297, A288530, A288531.
Sequences mentioned in N. J. A. Sloane's proof are A000170, A274616 and A287864.
Cf. A288384.
See A308179, A308180 for a very similar triangle.

Programs

  • Mathematica
    (* function a274651[] is defined in A274651 *)
    (* computation of rows 0 ... n-1 *)
    a274650[n_] := a274651[n]-1
    Flatten[a274650[13]] (* data *)
    TableForm[a274650[13]] (* triangle *)
    (* Hartmut F. W. Hoft, Jun 12 2017 *)
  • PARI
    See Links section.

Formula

T(n,k) = A274651(n+1,k+1) - 1.

A274821 Hexagonal spiral constructed on the nodes of the infinite triangular net in which each term is the least positive integer such that no diagonal contains a repeated term.

Original entry on oeis.org

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

Views

Author

Omar E. Pol, Jul 09 2016

Keywords

Comments

Also spiral constructed on the infinite hexagonal grid in which each term is the least positive integer such that no diagonal of successive adjacent cells contains a repeated term. Every number is located in the center of a hexagonal cell. Every cell is also the center of three diagonals of successive adjacent cells.

Examples

			Illustration of initial terms as a spiral:
.
.                  10 - 5 - 3 - 9 - 8
.                  /                 \
.                 9   4 - 7 - 8 - 6   10
.                /   /             \   \
.               3   1   6 - 4 - 5   7   2
.              /   /   /         \   \   \
.            11   7   4   2 - 3   1   5   9
.            /   /   /   /     \   \   \   \
.          12   6   5   3   1 - 2   4   8   7
.            \   \   \   \         /   /   /
.             9   8   6   2 - 3 - 1   7   4
.              \   \   \             /   /
.              10   1   4 - 5 - 7 - 6   2
.                \   \                 /
.                11   7 - 8 - 6 - 5 - 9
.                  \
.                  13 - 4 - 9 - 10 - 8
.
		

Crossrefs

Cf. A269526 (square array), A274640 (square spiral), A274651 (right triangle), A274820, A274920, A274921, A275606, A275610.

Formula

a(n) = A274820(n) + 1.

A274651 Triangle read by rows: T(n,k), (1<=k<=n), in which each term is the least positive integer such that no row, column, diagonal, or antidiagonal contains a repeated term.

Original entry on oeis.org

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

Views

Author

Omar E. Pol, Jul 02 2016

Keywords

Comments

Analog of A269526, but note that this is a right triangle.
The same rule applied to an equilateral triangle gives A269526.
We construct the triangle by reading from left to right in each row, starting with T(1,1) = 1.
Presumably every diagonal and every column is also a permutation of the positive integers, but the proof does not seem so straightforward. Of course, neither the rows nor the antidiagonals are permutations of the positive integers, since they are finite in length.
Omar E. Pol's conjecture that every column and every diagonal of the triangle is a permutation of the positive integers is true: see the link in A274650 (duplicated below). - N. J. A. Sloane, Jun 07 2017
It appears that the numbers generally appear for the first time in or near the right border of the triangle.
Theorem 1: the middle diagonal gives A000012 (the all 1's sequence).
Theorem 2: all 1's are in the middle diagonal.
For the proofs of the theorems 1 and 2 see the proofs of the theorems 1 and 2 of A274650 since both sequences are essentially the same.
From Bob Selcoe, Feb 15 2017: (Start)
The columns and diagonal are permutations of the natural numbers. The proofs are essentially the same as the proofs given for the columns and rows (respectively) in A269526.
All coefficients j <= 4 eventually populate in a repeating pattern toward the "middle diagonal" (i.e., relatively near the 1's); this is because we can build the triangle by j in ascending order; that is, we can start by placing all the 1's in the proper cells, then add the 2's, 3's, 4's, 5's, etc. So for i >= 0: since the 1's appear at T(1+2i, 1+i), the 2's appear at T(2+8i, 1+4i), T(3+8i, 3+4i), T(5+8i, 2+4i) and T(6+8i, 4+4i). Accordingly, after the first five 3's appear (at T(2,2), T(4,1), T(5,4), T(7,3) and T(8,6)), the remaining 3's appear at T(11+8i, 5+4i), T(12+8i, 7+4i), T(16+8i, 8+4i) and T(17+8i, 10+4i). Similarly for 4's, after the first 21 appearances, 4's appear at T(44+8i, 21+4i), T(45+8i, 24+4i), T(47+8i, 23+4i) and T(48+8i, 26+4i). So starting at T(41,21), this 16-coefficient pattern repeats at T(41+8i, 21+4i):
n/k 21 22 23 24 25 26
41 1 3
42 2
43 3 1 2
44 4 3
45 2 1 4
46 2
47 4 1
48 3 4
where the next 1 appears at T(49,25), and the pattern repeats at that point from the top left (so T(49,26) = 3, T(50,25) = 2, etc.).
Conjecture: as n gets sufficiently large, all coefficients j>4 will appear in a repeating pattern, populating all rows and diagonals around smaller j's near the "middle diagonal" (while I can offer no formal proof, it appears very likely that this is the case). (End)
From Hartmut F. W. Hoft, Jun 12 2017: (Start)
T(2k+1,k+1) = 1, for all k>=0, and T(n,{n/2,(n+3)/2,(n-1)/2,(n+2)/2}) = 2, for all n>=1 with mod(n,8) = {2,3,5,6} respectively, and no 1's or 2's occur in other positions.
Proof by (recursive) picture:
Positions in the triangle that are empty and those containing the dots of the guiding diagonals contain numbers larger than two.
n\k 1 2 3 4 5 6 7 8 10 12 14 16 18 20 22 24
1 |1
2 |2 .
3 | 1 2
4 | .
5 | 2 1 .
6 | 2 .
7 | 1 .
9 | |1 .
10 | |2 . .
11 | | 1 2 .
12 | | . .
13 | | 2 1 . .
14 | | 2 . .
15 | | 1 . .
16 |_____|______________._____.
17 | | |1 . .
18 | | |2 . . .
19 | | | 1 2 . .
20 | | | . . .
21 | | | 2 1 . . .
22 | | | 2 . . .
23 | | | 1 . . .
24 |_____|_______|____._______._____._______.
1 2 3 4 5 6 7 8 12 16 20 24
Consider the center of the triangle. In each octave of rows the columns in the first central quatrain contain a 1 and a 2, and the diagonals in the second central quatrain contain a 1 and a 2. Therefore, no 1's or 2's can occur in the respective downward quatrains of leading columns and trailing diagonals.
The sequence of rows containing 2's is A047447 (n mod 8 = {2,3,5,6}), those containing only 2's is A016825 (n mod 8 = {2,6}), those containing both 1's and 2's is A047621 (n mod 8 = {3,5}), those containing only 1's is A047522 (n mod 8 = {1,7}), and those containing neither 1's nor 2's is A008586 (n mod 8 = {0,4}).
(End)

Examples

			Triangle begins:
   1;
   2,  3;
   4,  1,  2;
   3,  5,  4,  6;
   6,  2,  1,  3,  4;
   5,  4,  6,  2,  7,  8;
   7,  8,  3,  1,  6,  5,  9;
   9,  6, 10,  5,  8,  3, 11,  7;
   8, 11,  9,  4,  1,  7, 10,  6,  5;
  12,  7, 13,  8,  2,  9,  4, 11, 10, 14;
  10,  9,  5, 12,  3,  1,  2, 13,  7,  8, 11;
  11, 12,  8, 13,  5,  4,  3, 10,  9, 15, 14, 16;
  13, 10, 11,  7,  9,  2,  1, 12,  8,  5, 17, 15, 18;
  ...
From _Omar E. Pol_, Jun 07 2017: (Start)
The triangle may be reformatted as an isosceles triangle so that the all 1's sequence (A000012) appears in the central column (but note that this is NOT the way the triangle is constructed!):
.
.                  1;
.                2,  3;
.              4,  1,  2;
.            3,  5,  4,  6;
.          6,  2,  1,  3,  4;
.        5,  4,  6,  2,  7,  8;
.      7,  8,  3,  1,  6,  5,  9;
.    9,  6, 10,  5,  8,  3, 11,  7;
.  8, 11,  9,  4,  1,  7, 10,  6,  5;
...
(End)
		

Crossrefs

Cf. A001844 (indices of the 1's).
Cf. A000012 (middle diagonal).
Every diagonal and every column of the right triangle is a permutation of A000027.
Cf. A274650 is the same triangle but with every entry minus 1.
Other sequences of the same family are A269526, A274528, A274820, A274821, A286297, A288530, A288531.
Sequences mentioned in N. J. A. Sloane's proof are A000170, A274616 and A287864.

Programs

  • Mathematica
    f[1,1] = 1; (* for 1 < n and 1 <= k <= n *)
    f[n_,k_] := f[n,k] = Module[{vals=Sort[Join[Map[f[n, #]&, Range[1, k-1]], Map[f[#, k]&, Range[k, n-1]], Map[f[n-k+#, #]&, Range[1, k-1]], Map[f[n-#, k+#]&, Range[1, Floor[(n-k)/2]]]]], c}, c=Complement[Range[1, Last[vals]], vals]; If[c=={}, Last[vals]+1, First[c]]]
    (* computation of rows 1 ... n of triangle *)
    a274651[n_] := Prepend[Table[f[i, j], {i, 2, n}, {j, 1, i}], {1}]
    Flatten[a274651[13]] (* data *)
    TableForm[a274651[13]] (* triangle *)
    (* Hartmut F. W. Hoft, Jun 12 2017 *)

Formula

T(n,k) = A274650(n-1,k-1) + 1.
Showing 1-10 of 18 results. Next