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.

A347581 The Barnyard sequence: a(n) is the minimum number of unit length line segments required to enclose areas of 1 through n on a square grid.

Original entry on oeis.org

4, 9, 14, 20, 26, 33, 40, 47, 55, 63
Offset: 1

Views

Author

Scott R. Shannon, Oct 05 2021

Keywords

Comments

The areas of size 1 through n can be created in any order and position, the only requirement being the final number of line segments used to enclose all areas is minimized. It is likely the perimeter of each area of size k, 1 <= k <= n, is the minimum possible for an area of size k, although this is unknown.
See A348149 for the total segments when the number of segments at each step is minimized.

Examples

			Example areas using the minimum number of line segments from n = 1 through n = 10 are:
.
   __
  |__|  a(1) = 4
   __ __ __
  |__|__ __|  a(2) = 9
   __ __ __
  |__|__ __|  a(3) = 14
  |__ __ __|
   __ __ __
  |__|__ __|
  |__ __ __|  a(4) = 20
  |     |
  |__ __|
   __ __ __
  |__|__ __|__
  |__ __ __|  |  a(5) = 26
  |     |     |
  |__ __|__ __|
   __ __ __
  |__|__ __|__ __ __
  |__ __ __|  |     |  a(6) = 33
  |     |     |     |
  |__ __|__ __|__ __|
         __ __ __ __
   __ __|__         |
  |__|__ __|__ __ __|
  |__ __ __|  |     |  a(7) = 40
  |     |     |     |
  |__ __|__ __|__ __|
   __ __ __ __ __ __
  |           |     |
  |__ __ __ __|     |
  |        |__ __ __|   a(8) = 47
  |__ __ __|__      |
  |     |  |  |__ __|
  |__ __|__|__ __|__|
   __ __ __ __ __ __ __
  |        |           |
  |        |__ __ __ __|
  |__ __ __|__         |
     |__|__ __|__ __ __|  a(9) = 55
     |__ __ __|  |     |
     |     |     |     |
     |__ __|__ __|__ __|
   __ __ __ __ __ __ __ __
  |         __|__   |     |
  |__ __ __|     |__|__   |
  |        |     |     |__|
  |        |     |     |  |   a(10) = 63
  |__ __ __|__ __|__ __|__|
  |              |     |__|
  |__ __ __ __ __|__ __|
.
		

Crossrefs