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

A337663 Solution to stepping stone puzzle if we start with n 1's (see Comments).

Original entry on oeis.org

1, 16, 28, 38, 49, 60
Offset: 1

Views

Author

N. J. A. Sloane, Oct 07 2020, based on an email from Thomas Ladouceur and Jeremy Rebenstock, Oct 06 2020

Keywords

Comments

Start with an infinite square grid. Each cell has eight 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.
a(1) - a(4) were found by Thomas Ladouceur and Jeremy Rebenstock by considering all the possibilities (by computer - see link to Python program).
Note that a(n) always exists, by definition. But it is possible that it is infinity. One consequence of the following argument is that a(n) < oo. - N. J. A. Sloane, Oct 08 2020
From Robert Gerbicz, Oct 08 2020: (Start)
a(n) = O(n*log(n)^2). Proof:
Assume k > 1. Since the square containing k is the sum of its neighbors, one neighbor will be at most k/2. Continuing this (with the smallest term from the sum): if k < 2^(d+1) then one term within distance d from the square containing k will be at most 1, hence exactly one.
But n squares (containing ones) cover at most (2*d+1)^2*n squares within distance d. So for all d > 0, min(2^(d+1)-2, a(n)-1) <= (2*d+1)^2*n.
From this a(n) is finite because 2^d/d^2 is unbounded. Use the inequality for that d where 2^(d+1) < a(n) <= 2^(d+2), then (a(n)-4)/2 <= 2^(d+1)-2 = min(2^(d+1)-2, a(n)-1) <= (2*d+1)^2*n < 4*log_2(a(n))^2*n, and from a(n) < 4 + 8*log_2(a(n))^2*n it is easy to see that a(n) = O(n*log(n)^2). (End)
From Robert Gerbicz, Apr 26 2021: (Start)
a(n) < 714*n. Proof:
As above, assume k > 1; since the square containing k is the sum of its neighbors, one neighbor will be at most k/2. Continuing this in at most d=11 steps we get a square not larger than max(1, k/2048).
This means that the n ones and the integers in [2, k/2048] cover all integers from [2,k] within a distance of d=11. A single square covers at most (2*d+1)^2 squares, hence 23^2*(n + k/2048) >= k-1.
From this, k < 714*n, so a(n) is finite and a(n) < 714*n. (More precisely we got a(n) <= (1083392*n + 2048)/1519.) This idea works for any d > 8 steps, but gives the best upper bound for d=11. (End)
From N. J. A. Sloane, Aug 26 2022: (Start)
This entry has grown too long, so I have moved some of the comments to attached text files. At present these are, in chronological order:
- Charlotte Darroch, Jan 11 2022: a(n) <= 278*n. (See link)
- Charlotte Darroch, Jan 11 2022, and Robert Gerbicz, Jan 12 2022: a(n) <= 183*n. (See link)
- Tejo Vrush, Jan 22 2022: a(n) <= 155*n. (See link)
- Jonathan F. Waldmann, Aug 17 2022: a(n) < 86*n + 32. (See link)
- Jonathan F. Waldmann, Oct 01 2022: a(n) < 79*n + C. (See link)
- Robert Gerbicz, Oct 05 2022: lim inf a(n)/n > 6 (Probably a(n) > 6.0128*n-5621 for all n.) See link
- Skylark Xentha Murphy-Davies, a(n) >= 6*n for n >= 3 (see link)
(End)
Al Zimmermann has informed me that he is running a computer-programming competition (see link) in which contestants try to improve the lower bounds on a(n). This has already produced many improvements. Several contestants (the first was Mark Beyleveld) have shown that a(7) >= 71. Other lower bounds are a(8) >= 79, a(9) >= 89, a(10) >= 99, a(11) >= 109, a(12) >= 115. The full results will be announced when the competition ends in November 2022, and at that time the contestants may reveal that they also have proofs that some of these lower bounds are in fact the exact values. - N. J. A. Sloane, Aug 26 2022
See A350627 for several older problems that are similar to this, such as the Forest of Numbers (Bosque de Números) puzzle. - N. J. A. Sloane, Feb 05 2022

Examples

			Starting with n = 2 cells containing 1's the following strategy achieves a(2) = 16 (this is also shown in the link):
  +----+----+----+----+----+----+
  |  9 |  5 | 10 | 11 |    |    |
  +----+----+----+----+----+----+
  |    |  4 |  1 |    |    |    |
  +----+----+----+----+----+----+
  | 12 |  8 |  3 |  2 |    | 16 |
  +----+----+----+----+----+----+
  |    |    |    |  6 |  1 | 15 |
  +----+----+----+----+----+----+
  |    |    | 13 |  7 | 14 |    |
  +----+----+----+----+----+----+
Illustration for a(3) = 28 from _Fakih Karademir_, Aug 30 2022: (Start)
   . 24  .  .  .  .  .
   .  8 16 17  .  .  .
  15  7  1  . 19  .  .
  22  .  6  2  . 20  .
   . 28  .  3  1  . 25
   .  .  .  .  4  5  .
   .  . 21  .  9 18 23
   .  . 11 10  .  .  .
   . 12  1  .  .  .  .
   . 26 13 14  .  .  .
   .  .  . 27  .  .  . (End)
Illustration for a(4) = 38 from Arnauld Chevallier:
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
  . 35 18 36  . 23  . 21  . 32  .  .  .  .  .
  .  . 17  1  . 14  9  . 12 20  .  .  .  .  .
  .  . 34 16 15  .  5  4  8  .  . 26 27  .  .
  .  .  .  . 31  . 10  1  3 19 25  .  1 28  .
  .  .  .  .  .  . 11  .  2  6  . 33  . 29  .
  .  .  .  .  .  . 24 13 22  1  7  .  .  .  .
  .  .  .  .  .  . 37  .  . 30 38  .  .  .  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .
From _Bert Dobbelaere_, Nov 01 2020: (Start)
Illustration for a(6) = 60:
  .  .  .  .  .  .  .  .  .  .  .  .  . 47 24 48  .
  .  .  .  .  .  .  .  .  .  .  .  .  .  . 23  1 49
  .  .  .  .  .  .  .  .  .  .  .  . 41  . 22  . 50
  .  .  .  .  .  .  .  . 51  . 36  . 20 21 43  .  .
  .  .  .  .  .  .  .  . 34 17  . 19  1  .  .  .  .
  .  .  .  .  .  .  .  . 16  1 18 38 58 59  .  .  .
  .  .  .  .  . 37 30 15 40  . 57  .  .  .  .  .  .
  .  .  .  .  .  .  7  8  .  .  .  .  .  .  .  .  .
  .  .  . 35 46  6  1 25 33  .  .  .  .  .  .  .  .
  . 60 32  .  3  2  9  .  .  .  .  .  .  .  .  .  .
  .  . 28  4  1 31 11 45  . 52  .  .  .  .  .  .  .
  . 42 14 10  5  .  . 12 13 39  .  .  .  .  .  .  .
  . 56  . 29 44  .  .  1 26  .  .  .  .  .  .  .  .
  .  .  .  .  .  . 55 54 27 53  .  .  .  .  .  .  .
(End)
		

Crossrefs

See A355903 for another version of the problem.

Formula

From Andrew Howroyd, Oct 08 2020: (Start)
a(n) >= 5*n - 4.
Proof: This follows by continuing the following simple construction:
+----+----+----+----+----+----+----+----+----+----+
| | | 4 | | | | | | 14 | |
+----+----+----+----+----+----+----+----+----+----+
| | 3 | 1 | 5 | | | | 13 | 1 | 15 |
+----+----+----+----+----+----+----+----+----+----+
| | 2 | | 6 | | | | 12 | | 16 |
+----+----+----+----+----+----+----+----+----+----+
| 1 | | | | 7 | | 11 | | | |
+----+----+----+----+----+----+----+----+----+----+
| | | | | 8 | 1 | 10 | | | |
+----+----+----+----+----+----+----+----+----+----+
| | | | | | 9 | | | | |
+----+----+----+----+----+----+----+----+----+----+
(End)
From Skylark Xentha Murphy-Davies, Jan 10 2022, added by N. J. A. Sloane: (Start)
a(n) >= 6*n - 6. [This has since been strengthened to a(n) >= 6*n for n >= 3 - see Comments and Link. - N. J. A. Sloane, Sep 14 2022]
Proof: This follows by continuing the following simple construction:
+----+----+----+----+----+----+----+----+----+----+
| 1 | | | | | | | | | |
+----+----+----+----+----+----+----+----+----+----+
| | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | |
+----+----+----+----+----+----+----+----+----+----+
| | | 1 | | | 1 | | | 1 | 10 |
+----+----+----+----+----+----+----+----+----+----+
| | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | |
+----+----+----+----+----+----+----+----+----+----+
(End)
Menno Verhoeven, Jan 10 2022, has shown that a(n) >= 6*n+3 for n >= 3. See my "Lower bound of 6n+3" link. This is obtained by starting from the a(2)=16 configuration. He remarks that by starting from a larger configuration one can improve the constant term 3, although not the multiplier 6. For example, starting from the a(6) configuration gives a(n) >= 6n+24 for n >= 6. - N. J. A. Sloane, Jan 10 2022

Extensions

a(1)-a(4) confirmed by Arnauld Chevallier
a(5) from Code Golf user xash (see Code Golf Stack Exchange link). - Peter Kagey, Oct 08 2020
a(5) independently confirmed by Andrew Howroyd, Oct 08 2020
a(6) from Bert Dobbelaere, Nov 01 2020
a(6) independently confirmed by Hugo van der Sanden, Nov 05 2020
Deleted an unproved upper bound. - N. J. A. Sloane, Jan 14 2022
a(7) >= 71 was found by Mark Beyleveld, Aug 07 2023 (see Links). - Al Zimmermann, Jan 02 2023
The programming contest also produced the lower bounds 80, 90, 99, 109, 118 for n = 8, ..., 12, respectively (see Links). Al Zimmermann, Jan 05 2023

A352814 Solution to Forest of Numbers (Bosque de Números) puzzle if we start with the numbers 1 through n for an n X n square grid (see Comments).

Original entry on oeis.org

1, 3, 8, 12, 19, 25, 34
Offset: 1

Views

Author

Rodolfo Kurchan, Apr 04 2022

Keywords

Comments

Start with an n X n square grid. Each cell has neighbors horizontally, vertically and diagonally. Place the numbers 1 to 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.

Examples

			4 X 4 solution with m = a(4) = 12 from Hector San Segundo:
  +---+---+---+---+
  |   | 10| 3 | 8 |
  +---+---+---+---+
  |   |  6|  1|  4|
  +---+---+---+---+
  |   |  2|   |  5|
  +---+---+---+---+
  | 11|  9|  7| 12|
  +---+---+---+---+
4 = 1 + 3, 5 = 1 + 4, 6 = 1 + 2 + 3, 7 = 2 + 5, 8 = 1 + 3 + 4, 9 = 2 + 7, 10 = 1 + 3 + 6, 11 = 2 + 9, 12 = 5 + 7.
5 X 5 solution with m = a(5) = 19 from _Pontus von Brömssen_:
  +---+---+---+---+---+
  |  5|  6|  7|  8| 18|
  +---+---+---+---+---+
  | 11|   |  1|   | 10|
  +---+---+---+---+---+
  | 14|   | 19|  2| 16|
  +---+---+---+---+---+
  |   |  3|  9|  4|   |
  +---+---+---+---+---+
  | 15| 12|   | 13| 17|
  +---+---+---+---+---+
.
One of 10 6 X 6 solutions (up to rotations and reflections) with m = a(6) = 25 from _Pontus von Brömssen_, Apr 15 2022:
  +---+---+---+---+---+---+
  | 22|  1| 15| 19|   | 20|
  +---+---+---+---+---+---+
  |  7| 14|   |   |  4| 16|
  +---+---+---+---+---+---+
  |   |  6|   | 21|   | 12|
  +---+---+---+---+---+---+
  | 17|   |  9|   |  8| 25|
  +---+---+---+---+---+---+
  |   | 11|   |  3|  5|   |
  +---+---+---+---+---+---+
  | 24| 13|  2| 10| 18| 23|
  +---+---+---+---+---+---+
.
a(7) = 34 from Giorgio Vecchi.
		

Crossrefs

Cf. A350627.

Extensions

a(6) corrected by Pontus von Brömssen, Apr 15 2022

A353070 Solution to Forest of Numbers (Bosque de Números) puzzle for Transparent Queens starting with numbers 1 and 2 for an n X n square grid (see Comments).

Original entry on oeis.org

3, 5, 8, 10, 13, 15, 17, 19
Offset: 2

Views

Author

Rodolfo Kurchan, Apr 21 2022

Keywords

Comments

Start with an n X n square grid. Each cell has neighbors horizontally, vertically and diagonally. Place the numbers 1 and 2 anywhere. Now place the numbers 3, 4, ..., m in order, subject to the rule that when you place k, the sum of the numbers in the same row, column and diagonal must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			Solutions for 5 <= n <= 8 from _Pontus von Brömssen_:
  +---+---+---+---+---+
  | 1 |   | 2 | 8 |   |
  +---+---+---+---+---+
  | 9 | 3 | 5 |   |   |
  +---+---+---+---+---+
  |   |   |   |   | 6 |
  +---+---+---+---+---+
  |   |10 |   |   |   |
  +---+---+---+---+---+
  |   | 7 |   |   | 4 |
  +---+---+---+---+---+
.
  +---+---+---+---+---+---+
  | 1 | 9 |   | 8 |   |   |
  +---+---+---+---+---+---+
  |   |   |   | 7 |   |12 |
  +---+---+---+---+---+---+
  |10 |   |   |   |   |   |
  +---+---+---+---+---+---+
  |   |   | 6 |   |   | 2 |
  +---+---+---+---+---+---+
  | 5 |   |   |   |11 |   |
  +---+---+---+---+---+---+
  | 4 |   |13 |   |   | 3 |
  +---+---+---+---+---+---+
.
  +---+---+---+---+---+---+---+
  |   | 8 |   | 6 |   |   |   |
  +---+---+---+---+---+---+---+
  |   |11 | 2 |   |   |   |   |
  +---+---+---+---+---+---+---+
  |   |   |   |   | 5 |   |15 |
  +---+---+---+---+---+---+---+
  | 3 |   |   | 1 |   |   |10 |
  +---+---+---+---+---+---+---+
  |14 |   |   |   |   |   |   |
  +---+---+---+---+---+---+---+
  | 7 |   |12 |   |   |   |   |
  +---+---+---+---+---+---+---+
  | 4 |   |   |   | 9 |13 |   |
  +---+---+---+---+---+---+---+
.
  +---+---+---+---+---+---+---+---+
  | 1 | 3 |   |12 | 6 |   | 2 |   |
  +---+---+---+---+---+---+---+---+
  | 4 |   |   |   |   |   |11 |   |
  +---+---+---+---+---+---+---+---+
  |   |   | 7 |   |15 |   |   |   |
  +---+---+---+---+---+---+---+---+
  |   |   |   |   |   |   |   |14 |
  +---+---+---+---+---+---+---+---+
  |   |13 |   |   |   |   |   |   |
  +---+---+---+---+---+---+---+---+
  |10 |   |   |   |   |   | 5 |   |
  +---+---+---+---+---+---+---+---+
  |   |   |16 |   |   | 9 |   |   |
  +---+---+---+---+---+---+---+---+
  |   |   |   |   |   |17 |   | 8 |
  +---+---+---+---+---+---+---+---+
Solution for a(9) = 19 from Giorgio Vecchi
		

Crossrefs

A353093 Solution to Forest of Numbers (Bosque de Números) puzzle for Opaque Queens starting with numbers 1 and 2 for an n X n square grid (see Comments).

Original entry on oeis.org

3, 6, 10, 13, 16, 20, 23
Offset: 2

Views

Author

Rodolfo Kurchan, Apr 22 2022

Keywords

Comments

Start with an n X n square grid. Each cell has neighbors horizontally, vertically and diagonally. Place the numbers 1 and 2 anywhere. Now place the numbers 3, 4, ..., m in order, subject to the rule that when you place k, the sum of the numbers that a Chess Queen attack in the same row, column and diagonal must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			Solution for a(5) = 13 from Daniel Valdano:
  +---+---+---+---+---+
  | 12| 4 | 8 |   |   |
  +---+---+---+---+---+
  | 7 | 1 | 3 |   | 10|
  +---+---+---+---+---+
  |   |   | 6 |   |   |
  +---+---+---+---+---+
  |   | 9 | 2 | 13| 5 |
  +---+---+---+---+---+
  |   | 11|   |   |   |
  +---+---+---+---+---+
Solution for a(6) = 16 from Daniel Valdano.
Solution for a(7) = 20 from Giorgio Vecchi.
Solution for a(8) = 23 from Giorgio Vecchi.
		

Crossrefs

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

A353103 Solution to Forest of Numbers (Bosque de Números) puzzle for Opaque Rooks starting with numbers 1 and 2 for an n X n square grid (see Comments).

Original entry on oeis.org

3, 7, 9, 12, 16, 21, 25, 32, 37
Offset: 2

Views

Author

Rodolfo Kurchan, Apr 23 2022

Keywords

Comments

Start with an n X n square grid. Each cell has neighbors horizontally and vertically. Place the numbers 1 and 2 anywhere. Now place the numbers 3, 4, ..., m in order, subject to the rule that when you place k, the sum of the numbers that a Chess Rook attack in the same row and column must equal k. Then a(n) is the maximum m that can be achieved.

Examples

			Solution for a(5) = 12 from Rodolfo Kurchan:
  +---+---+---+---+---+
  | 1 |   |   | 4 | 3 |
  +---+---+---+---+---+
  | 6 |   |   |   | 5 |
  +---+---+---+---+---+
  |   |   |   | 11| 7 |
  +---+---+---+---+---+
  |   |   |   |   | 9 |
  +---+---+---+---+---+
  | 8 | 10| 12|   | 2 |
  +---+---+---+---+---+
Solutions for a(2) to a(6) from Rodolfo Kurchan.
Solutions for a(7) to a(10) from Giorgio Vecchi.
		

Crossrefs

Showing 1-6 of 6 results.