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 10 results.

A350764 Triangle read by rows: T(n,k) is the maximum number that can be reached following the rules of the stepping stone puzzle of A337663 restricted to the n X k grid, allowing any number of initial 1's, 1 <= k <= n.

Original entry on oeis.org

1, 1, 2, 2, 4, 7, 2, 6, 9, 11, 2, 6, 11, 14, 18
Offset: 1

Views

Author

Pontus von Brömssen, Jan 14 2022

Keywords

Comments

The possible numbers of initial 1's required to reach T(n,k) are not always consecutive. For n = 5 and k = 2, 2 or 4 initial 1's are required to reach T(5,2) = 6.

Examples

			Triangle begins:
  n\k| 1  2  3  4  5
  ---+--------------
  1  | 1
  2  | 1  2
  3  | 2  4  7
  4  | 2  6  9 11
  5  | 2  6 11 14 18
For n = k = 4, T(4,4) = 11 can be reached by starting with 2, 3, 4, or 5 1's:
   9  1 10  .        1 11  1  9        1 11  1  8        1 11  1  6
   6  2  7  .        7  .  2  6        9  .  .  7        8  .  1  4
   .  3  1  .        5  1  3  .        6  2  1  5        5  2  1  1
  11  8  4  5       10  4  8  .        3  1  4 10       10  3  7  9
		

Crossrefs

A350765 Triangle read by rows: T(n,k) is the minimum number of 1's required to reach the maximum possible number A350764(n,k), when the stepping stone puzzle of A337663 is played on the n X k grid, 1 <= k <= n.

Original entry on oeis.org

1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 7
Offset: 1

Views

Author

Pontus von Brömssen, Jan 14 2022

Keywords

Examples

			Triangle begins:
  n\k| 1  2  3  4  5
  ---+--------------
  1  | 1
  2  | 1  2
  3  | 2  2  2
  4  | 2  2  2  2
  5  | 2  2  3  3  7
At least T(5,4) = 3 1's are required to reach the number A350764(5,4) = 14 on the 5 X 4 grid (it is also possible with 4, 5, or 6 1's):
  12  1  . 14
   . 11  4 10
   3  2  1  5
   .  1  .  6
   9  8  7 13
T(5,5) = 7 1's are required to reach the number A350764(5,5) = 18 on the 5 X 5 grid (no other number of 1's is possible):
   1 16  1  8 18
   5  3  6  1  9
  12  1 17  . 11
   2  1  4  1 13
  10  7 14  1 15
		

Crossrefs

A350785 Triangle read by rows: T(n,k) is the number of (unlabeled) connected graphs with n nodes such that k is the maximum number that can be reached when the stepping stone puzzle of A337663 is played on the graph, 1 <= k <= n.

Original entry on oeis.org

1, 1, 0, 0, 2, 0, 0, 4, 2, 0, 0, 4, 12, 5, 0, 0, 4, 34, 53, 21, 0, 0, 4, 69, 244, 421, 115, 0, 0, 4, 118, 799, 3618, 5603, 975, 0, 0, 4, 194, 2070, 18996, 102301, 127692, 9823, 0, 0, 4, 312, 4885, 84043, 1194264, 6652289, 3645810, 134964, 0
Offset: 1

Views

Author

Pontus von Brömssen, Jan 16 2022

Keywords

Comments

The puzzle is as described in A337663, but the numbers are placed on the nodes of a graph. Initially, the number 1 is placed on some of the nodes. After that, the numbers 2, 3, ... are placed, in order, on unused nodes. When the number m is placed on a node, the sum of the numbers already placed on the neighbors of that node must equal m.
The maximum reachable number for a graph G is 2 if and only if G is a path, a cycle, a star, or a complete graph, with at least three nodes. As a result, T(n,2) = 4 for n >= 4. (For graphs with three nodes, the path and the star are isomorphic, and the cycle and the complete graph are isomorphic, so T(3,2) = 2.) Proof: It is easy to see that the maximum reachable number for paths, cycles, stars, and complete graphs is 2 if the graph has at least three nodes, and 1 if it has one or two nodes. Assume that G is a connected graph which is not a path, cycle, star, or a complete graph. We must show that the number 3 can be placed on one of its nodes. Let C be a maximum clique of G, and first assume that it has size at least three. Since G is not complete, there is a node u adjacent to some, but not all, nodes in C. Let x, y, and z be nodes in C such that u is adjacent to x but not to y. We can then put 1's on u and z, 2 on x, and 3 on y. Next, assume that the size of C is less than three, i.e., that G is triangle-free. Since G is not a path or a cycle, G has a node x of degree at least three. Since G is triangle-free, there are no edges between the neighbors of x. Since G is not a star, x has a neighbor y which is adjacent to another node z. We can then put 1's on z and two of the neighbors of x other than y, 2 on x, and 3 on y.

Examples

			Triangle begins:
  n\k| 1  2   3    4     5       6       7       8      9 10
  ---+------------------------------------------------------
   1 | 1
   2 | 1  0
   3 | 0  2   0
   4 | 0  4   2    0
   5 | 0  4  12    5     0
   6 | 0  4  34   53    21       0
   7 | 0  4  69  244   421     115       0
   8 | 0  4 118  799  3618    5603     975       0
   9 | 0  4 194 2070 18996  102301  127692    9823      0
  10 | 0  4 312 4885 84043 1194264 6652289 3645810 134964  0
		

Crossrefs

Row sums: A001349.

A350627 Solution to Forest of Numbers (Bosque de Números) puzzle if we start with the numbers 1 through n (see Comments).

Original entry on oeis.org

1, 10, 22, 30, 36, 44
Offset: 1

Views

Author

N. J. A. Sloane, Feb 05 2022

Keywords

Comments

Start with an infinite square grid. Each cell has eight neighbors. Place the numbers 1, 2, ..., n anywhere. Now place the numbers n+1, n+2, ..., m in order, subject to the rule that when you place k, the sum of its neighbors must equal k. Then a(n) is the maximum m that can be achieved.
This is similar to the Stepping Stones problem discussed in A337663, but predates it by more than 20 years.
As can be seen in the El Acertijo (The Riddle) links and in Rodolfo Kurchan's webpage, there are at least six similar problems, for example when the numbers are restricted to an n X n square board. All of these are worthy of inclusion in the OEIS once enough terms are known.

Crossrefs

Cf. A337663 (Stepping Stones problem).

Extensions

a(5)-a(6) from Rodolfo Kurchan, Mar 29 2022

A340000 Solution to stacking stones puzzle (see Comments).

Original entry on oeis.org

1, 17, 33, 46
Offset: 1

Views

Author

S. Brunner, Dec 26 2020

Keywords

Comments

This is a variant of the stepping stone puzzle sequence (A337663), where you start by placing n 1's on an infinite square grid. Then place the numbers 2,3,... in order on the grid, following the rule that the sum of the 8 surrounding cells has to be equal to the number placed on a cell. a(n) is the largest number which can be achieved starting with n 1's. Additionally, there are 2 different new rules in this "stacking stones" sequence:
1. You can "stack" numbers on top of already placed numbers when the sum of the surrounding 8 cells is equal to the new number. The number inside the cell is not added to the sum and is replaced as value of the cell with the new number.
2. The starting 1's have to be at least one cell apart (to avoid a trivial infinite solution).

Examples

			Illustration for a(3)=33:
+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |
|      |      |  18  |  17  |  26  |      |  33  |
|      |      |      |  [4] | [13] |      |      |
+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |
|      |      |      |   1  |   3  |   5  |  28  |
|      |      |      |      |      |      |      |
+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |
|      |  21  |  14  |  27  |   2  |  23  |      |
|      |      |      |  [6] |      | [11] |      |
+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |
|  22  |      |   7  |      |      |   1  |  24  |
|      |      |      |      |      |      | [12] |
+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |
|      |   1  |   8  |  31  |  32  |      |  25  |
|      |      |      | [15] | [16] |      |      |
+------+------+------+------+------+------+------+
|  30  |  29  |      |      |      |      |      |
| [20] | [19] |      |      |      |      |      |
| [10] |  [9] |      |      |      |      |      |
+------+------+------+------+------+------+------+
Illustration for a(4)=46:
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |      |      |      |      |
|  32  |      |  37  |  44  |      |      |      |      |      |      |      |      |
|      |      | [15] | [22] |      |      |      |      |      |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |      |      |      |      |
|  24  |   8  |   7  |      |      |  39  |      |      |      |  42  |      |  29  |
|      |      |      |      |      |      |      |      |      |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |  31  |      |      |      |      |      |      |      |      |
|      |  16  |   1  | [13] |  18  |  21  |      |      |      |  41  |   1  |  28  |
|      |      |      |  [6] |      |      |      |      |      |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |      |      |      |      |
|      |  17  |      |   2  |   3  |      |      |  43  |      |  40  |      |  27  |
|      |      |      |      |      |      |      |      |      | [14] |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |      |      |      |      |
|      |  36  |  19  |      |  34  |   4  |   9  |  33  |   1  |  12  |  26  |      |
|      |      |      |      |  [1] |      |      | [10] |      |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |  46  |      |      |      |
|      |      |      |  20  |      |   5  |      |      | [23] |      |  38  |      |
|      |      |      |      |      |      |      |      | [11] |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
|      |      |      |      |      |      |      |      |      |      |      |      |
|      |      |      |  45  |  25  |  30  |  35  |      |      |      |      |      |
|      |      |      |      |      |      |      |      |      |      |      |      |
+------+------+------+------+------+------+------+------+------+------+------+------+
		

Crossrefs

Cf. A337663.

A342434 Solution to stepping stone puzzle on a hexagonal board (See Comments).

Original entry on oeis.org

1, 9, 17, 26, 37, 47
Offset: 1

Views

Author

Keywords

Comments

This is a variant of the stepping stone sequence (A337663), where now the board is a hexagonal grid.
Start with an infinite hexagonal grid. Each cell has six neighbors. Place n 1's anywhere. Now place the numbers 2, 3, ..., m in order, subject to the rule that when you place k, the sum of its neighbors must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			Found by code compiled by Hugo van der Sanden and Thomas Ladouceur, see links titled: "Illustration for a(2)" and "Illustration for a(5)".
		

Crossrefs

Cf. A337663.

Formula

a(n) >= 5n - 4. This is seen by constructing the pattern linked above, titled "Illustration for lower bound".

A355903 Variant of Stepping Stones problem: here the stone you place only needs to divide the sum of its 8 neighbors.

Original entry on oeis.org

1, 27, 41, 67
Offset: 1

Views

Author

N. J. A. Sloane, Sep 17 2022, based on emails from Skylark Xentha Murphy-Davies and Hugo van der Sanden

Keywords

Comments

To find a(n), start by placing n stones labeled 1 on an infinite chessboard.
Set k=2. At step k, you must place a stone labeled k in a square where the sum of its neighbors is x*k for some x >= 1. That is, the sum of the neighbors must be an integral multiple of k.
If there is no way to do that, this game ends, and you win k-1 dollars. If you can do it, you increment k and repeat.
Then a(n) = maximum number of dollars you can win with optimal play for any initial placement of the n starting stones.
The sequence was proposed by Skylark Xentha Murphy-Davies on Sep 16 2022. She found lower bounds for a(2), a(3), and a(4). On Sep 17 2022, Hugo van der Sanden showed that her lower bound for a(2) was the correct value, and found the values of a(3) and a(4).
In the original version of the problem (see A337663) each stone that you place must equal the sum of its 8 neighbors.

Examples

			Illustration for a(2) = 27 (discovered by _Skylark Xentha Murphy-Davies_ and proved optimal by _Hugo van der Sanden_):
    .  .  .  .  .  .  .  .
    . 21 20  .  .  .  .  .
   23 13  9 18  .  .  .  .
    . 12  5  4  . 14 25  .
    . 27 10  1  3 11 26  .
    .  .  .  .  2  6  . 22
    .  .  . 19  .  1  7 15
    .  .  .  . 17 16  8  .
    .  .  .  .  .  . 24  .
    .  .  .  .  .  .  .  .
		

Crossrefs

Cf. A337663.

A342431 Solution to Von Neumann stepping stone puzzle (see Comments).

Original entry on oeis.org

1, 2, 5, 8, 13, 18, 21, 24, 29, 31, 34, 38, 42, 46
Offset: 1

Views

Author

Keywords

Comments

This is a variant of the stepping stone sequence (A337663), where any cell has just 4 neighbors (Von Neumann neighborhood). The game works as follows:
Start with an infinite square grid. Each cell has four neighbors. Place n 1's anywhere. Now place the numbers 2, 3, ..., m in order, subject to the rule that when you place k, the sum of its neighbors must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			From code compiled by _Hugo van der Sanden_ and _Thomas Ladouceur_.
a(3) = 5, with 3 1's:
  +----+----+----+
  |  1 |  2 |  1 |
  +----+----+----+
  |  4 |  3 |    |
  +----+----+----+
  |  5 |  1 |    |
  +----+----+----+
and
a(10) = 31, with 10 1's:
  +----+----+----+----+----+----+----+----+----+----+
  |    |  9 |  8 |  1 | 11 |    |    |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  |    |  1 |  7 |  6 | 10 |    |    |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  | 28 | 27 | 12 |  5 |  4 |  1 |    |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  |  1 | 14 | 13 |  1 |  3 |  2 |  1 |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  | 16 | 15 |    |    | 26 | 29 | 30 |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  | 17 |  1 | 21 | 22 | 23 |  1 | 31 |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  | 18 | 19 | 20 |  1 | 24 | 25 |    |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
  |  1 |    |    |    |    |    |    |    |    |    |
  +----+----+----+----+----+----+----+----+----+----+
		

Crossrefs

Cf. A337663.

Formula

a(n) >= 3n - 4 (found by Thomas Ladouceur).
The proof follows by this construction:
+----+----+----+----+----+----+----+
| 1 | 4 | 5 | 6 | 1 | 10 | 11 |
+----+----+----+----+----+----+----+
| 2 | 3 | 1 | 7 | 8 | 9 | 1 |
+----+----+----+----+----+----+----+
| 1 | | | | | | |
+----+----+----+----+----+----+----+

Extensions

a(13)-a(14) from Bert Dobbelaere, Mar 19 2021

A351686 Solution to stepping stone puzzle if we start with one 1 and n 2's for consecutive primes.

Original entry on oeis.org

13, 23, 31, 41, 53, 61, 73, 97, 103
Offset: 1

Views

Author

Rodolfo Kurchan, May 04 2022

Keywords

Comments

Start with an infinite square grid. Each cell has eight neighbors. Place one 1 and n 2's anywhere. Now place the prime numbers 3, 5, 7, ..., m in order, subject to the rule that when you place k, the sum of its neighbors must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			Illustration for a(1) with 1 stone = 13 from Rodolfo Kurchan
   .  .  1
   . 11  3
  13  2  5
   .  .  7
a(2) with 2 stones = 23 from Rodolfo Kurchan
   .  .  1 23  .
   . 11  3  . 19
  13  2  5 17  2
   .  .  7  .  .
a(3) with 3 stones = 31 from Rodolfo Kurchan
   .  .  1 23  .
   . 11  3  . 19
  13  2  5 17  2
   . 29  7 31  .
   2  .  .  .  .
a(4) with 4 stones = 41 from Dmitry Kamenetsky
   .  2 37 31  .  1  .
  23  2  .  2 29  .  3
   . 19 17 13 11  2  5
   .  .  . 41  .  7  .
a(5) with 5 stones = 53 from Giorgio Vecchi
  -- 47 -- 31 --
  43 02 02 29 --
  41 -- 23 03 01
  02 37 05 11 --
  -- 07 -- 02 13
  -- -- -- 17 53
  -- -- -- 19 02
a(6) with 6 stones = 61 from Giorgio Vecchi
  -- -- -- 31 02 02 61 --
  -- -- -- -- 29 -- 59 --
  -- 47 37 23 -- 02 53 02
  03 02 05 07 11 13 17 19
  -- 01 -- 02 -- 41 -- --
  -- -- -- -- 43 -- -- --
a(7) with 7 stones = 73 from Giorgio Vecchi
  -- -- -- -- -- -- 61 -- 47 -- --
  -- 07 -- 71 -- 59 -- 02 02 43 02
  02 05 41 13 17 19 23 29 02 37 --
  -- 03 11 02 53 02 73 -- 31 -- --
  -- -- 01 67 -- -- -- -- -- -- --
a(8) with 8 stones = 89 from Giorgio Vecchi
  -- -- -- -- 19 02 73 -- --
  -- -- -- -- 17 -- -- 71 --
  -- -- 29 13 02 23 02 67 02
  07 05 11 59 -- 31 02 61 --
  -- 02 03 01 -- 37 02 53 --
  -- -- 89 83 79 41 02 47 --
  -- -- -- -- -- -- 43 -- --
a(9) with 9 stones = 97 from Dmitry Kamenetsky
  -- -- -- -- -- 61 -- --
  -- -- -- -- -- 59 02 --
  -- -- -- 67 02 02 53 19
  -- 02 11 47 07 13 17 89
  -- 05 03 01 23 02 -- --
  -- -- 71 29 -- -- -- --
  -- 73 02 31 97 -- -- --
  -- 79 -- 37 -- -- -- --
  02 83 02 41 02 -- -- --
  -- -- -- -- 43 -- -- --
a(10) with 10 stones = 103 from Giorgio Vecchi
-- -- -- -- 103 02 --
-- -- -- -- 101 -- 47
-- 02 -- 97 -- 02 43
-- 23 29 31 37 41 --
19 02 -- 02 -- 02 --
17 53 59 61 67 02 --
13 02 -- -- -- 71 --
11 -- 05 89 02 73 --
02 07 -- 03 79 -- --
-- -- -- 83 01 -- --
		

Crossrefs

Cf. A337663.

A352621 a(n) is the minimum possible value of the largest number placed in a solution to the Forest of Numbers (Bosque de Números) puzzle if we start with the numbers 1 and 2 in an n X n grid (see Comments).

Original entry on oeis.org

6, 12, 36, 68, 140
Offset: 2

Views

Author

Rodolfo Kurchan, Mar 24 2022

Keywords

Comments

Start with an n X n square grid. Each cell has up to eight neighbors. Place the numbers 1 and 2 in any two cells of the grid. Then place a number in each remaining cell, in increasing order (not necessarily using consecutive integers), and with the rule that when you place the number k in a cell, the sum of the numbers in its neighboring cells must equal k. The goal is to fill the grid in such a way as to minimize the largest number placed.
This is similar to the Stepping Stones problem discussed in A337663, but predates it by more than 20 years.
Computer solutions by Dmitry Kamenetsky.
a(7) = 292, a(8) = 502, a(9) = 787 and a(10) 1391 not yet confirmed to be optimal.

Examples

			4 X 4 = 36 solution by _Rodolfo Kurchan_:
  +---+---+---+---+
  | 33| 21|  5| 28|
  +---+---+---+---+
  | 11|  1|  4| 19|
  +---+---+---+---+
  | 24| 10|  3|  7|
  +---+---+---+---+
  | 36|  2| 22| 32|
  +---+---+---+---+
3 is sum of 1+2, 4=1+3, 5=1+4, 7=3+4, 10=1+2+3+4, 11=1+10, 19=3+4+5+7, 21=1+4+5+11, 22=2+3+7+10.
.
5 X 5 = 68 solution by _Dmitry Kamenetsky_:
  +---+---+---+---+---+
  | 32| 18| 63| 30| 56|
  +---+---+---+---+---+
  | 13|  1|  4| 10| 16|
  +---+---+---+---+---+
  |  9|  3| 39|  6| 54|
  +---+---+---+---+---+
  | 36|  5|  2|  8| 14|
  +---+---+---+---+---+
  | 12|  7| 22| 46| 68|
  +---+---+---+---+---+
		

Crossrefs

Showing 1-10 of 10 results.