Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

2-dim city-building sequence

Number theoryCombinatorics

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

OEIS recently picked the winner of its A400K contest, the city-building sequence.

My son came up with the following, 2-dimensional generalization, explained below, and asked:

Is the main diagonal an,na_{n,n}an,n​ unbounded?

Equivalently, is it true that for every MMM there is an nnn such that an,n>Ma_{n,n}>Man,n​>M?

The problem is ChatGPT-hard, which I also used to write-up the below exposition:

Consider the following array of nonnegative integers, interpreted as building heights on the lattice Z≥02\mathbb{Z}_{\ge 0}^2Z≥02​. We construct the array recursively, starting with a0,0=0a_{0,0}=0a0,0​=0. To determine ai,ja_{i,j}ai,j​, we consider the buildings already constructed to its left in the same row and below it in the same column. For a proposed height hhh, a building is visible if the straight line segment joining its rooftop to the proposed rooftop passes on or above every intervening rooftop. Collinear rooftops count as visible. We count visibility separately along the two coordinate directions; no other directions are considered.

Explicitly, the building at (k,j)(k,j)(k,j), where k<ik<ik<i, is visible from height hhh at (i,j)(i,j)(i,j) if

aℓ,j≤i−ℓi−kak,j+ℓ−ki−kh(k<ℓ<i).a_{\ell,j}\le \frac{i-\ell}{i-k}a_{k,j} +\frac{\ell-k}{i-k}h \qquad(k<\ell<i).aℓ,j​≤i−ki−ℓ​ak,j​+i−kℓ−k​h(k<ℓ<i).

The analogous condition defines visibility of (i,k)(i,k)(i,k) for k<jk<jk<j.

Let Vi,j(h)V_{i,j}(h)Vi,j​(h) be the total number of visible buildings in these two directions. Define

ai,j=min⁡{h∈Z≥0:Vi,j(h)=h}.a_{i,j}=\min\{h\in\mathbb{Z}_{\ge0}:V_{i,j}(h)=h\}.ai,j​=min{h∈Z≥0​:Vi,j​(h)=h}.

Thus the chosen height is the least height equal to the number of buildings visible from its rooftop. This is well-defined, the same proof works as for the 1-dim case, which can be found in the OEIS comments (I don't want to spoil it). The construction is symmetric: ai,j=aj,ia_{i,j}=a_{j,i}ai,j​=aj,i​, and the first row/column give back the 1-dim sequence, which is known to be a surjection onto N\mathbb NN.

Here is the initial 30×3030\times3030×30 square. Columns are indexed by iii from left to right; rows are indexed by jjj, displayed with j=0j=0j=0 at the bottom.

j \ i   0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
------------------------------------------------------------------------------------------------
  29 |  2  3  3  4  2  9  4  3  6  2  5  2  9  3  3  7  2  5  3  4 16  2  5  3  7  2  6  2  6  2
  28 |  2  3  3  2  7  3  4  8  3  4  3  9  4  3  7  2  5  3  4 17  2  5  3  6  2  5  4 14  2  6
  27 |  1  2  2  7  3  3  6  2  4  2 10  4  3  6  2  6  3  3 10  2  4  3  6  3  6  2  4  2 14  2
  26 |  4  5  5  3  3  8  3  5  2  7  3  3  6  2  5  3  3 11  3  5  3  6  2  5  2 10  2  4  4  6
  25 |  2  3  3  2 11  2  4  3 10  4  3  5  3  7  3  3 13  2  4  3  7  3  6  2  6  2 10  2  5  2
  24 |  1  2  2  6  2  5  2  6  4  4  7  2  5  3  4 12  2  6  2  6  2  5  3 12  2  6  2  6  2  7
  23 |  4  5  5  3  4  3 20  2  3  6  3  8  3  3 10  3  5  2 12  3  5  3  5  2 12  2  5  3  6  3
  22 |  1  2  2  5  2  4  2  6  5  3  6  3  3 11  2  5  3  6  2  5  3 13  2  5  3  6  2  6  3  5
  21 |  3  4  4  2  6  2  4  4  3  5  3  3 19  2  4  4  6  2  5  4  5  2 13  3  5  3  6  3  5  2
  20 |  1  2  2 11  2 10  2  4  4 15  2  5  4  7  2  5  3  7  5  2 12  5  3  5  2  7  3  4  2 16
  19 |  3  4  4  2  5  3  5  2  4  2 12  2  5  3  7  2  4  5  3 14  2  4  5  3  6  3  5  2 17  4
  18 |  2  3  3  4  2  3  2 15  2  4  4  6  2  6  2 21  2  4  4  3  5  5  2 12  2  4  3 10  4  3
  17 |  2  3  3  2  8  5  4  4 10  2  4  4  6  2  5  2 17  2  4  5  7  2  6  2  6  2 11  3  3  5
  16 |  1  2  2  6  2  3  3  7  2  5  2  5  3  7  2  4  2 17  2  4  3  6  3  5  2 13  3  3  5  2
  15 | 10 11 11  2  5  4  6  2  6  2  7  2  4  4  7  2  4  2 21  2  5  4  5  3 12  3  3  6  2  7
  14 |  1  2  2  5  2  4  2  5  2  4  3 10  2  4  4  7  2  5  2  7  2  4  2 10  4  3  5  2  7  3
  13 |  2  3  3  2  5  2  4  2  5  2  4  3 18  2  4  4  7  2  6  3  7  2 11  3  3  7  2  6  3  3
  12 |  1  2  2  7  2  6  2  7  2  6  2  4  2 18  2  4  3  6  2  5  4 19  3  3  5  3  6  3  4  9
  11 |  3  4  4  2  9  2  6  2  7  2 10  2  4  3 10  2  5  4  6  2  5  3  3  8  2  5  3  4  9  2
  10 |  1  2  2  5  2  4  2  5  2  4  2 10  2  4  3  7  2  4  4 12  2  3  6  3  7  3  3 10  3  5
   9 |  2  3  3  2  5  2  4  2  5  2  4  2  6  2  4  2  5  2  4  2 15  5  3  6  4  4  7  2  4  2
   8 |  1  2  2  6  2  5  2  6  2  5  2  7  2  5  2  6  2 10  2  4  4  3  5  3  4 10  2  4  3  6
   7 |  3  4  4  2  6  2  5  2  6  2  5  2  7  2  5  2  7  4 15  2  4  4  6  2  6  3  5  2  8  3
   6 |  1  2  2  5  2  4  2  5  2  4  2  6  2  4  2  6  3  4  2  5  2  4  2 20  2  4  3  6  4  4
   5 |  2  3  3  2  5  2  4  2  5  2  4  2  6  2  4  4  3  5  3  3 10  2  4  3  5  2  8  3  3  9
   4 |  1  2  2  7  2  5  2  6  2  5  2  9  2  5  2  5  2  8  2  5  2  6  2  4  2 11  3  3  7  2
   3 |  2  3  3  2  7  2  5  2  6  2  5  2  7  2  5  2  6  2  4  2 11  2  5  3  6  2  3  7  2  4
   2 |  1  2  2  3  2  3  2  4  2  3  2  4  2  3  2 11  2  3  3  4  2  4  2  5  2  3  5  2  3  3
   1 |  1  2  2  3  2  3  2  4  2  3  2  4  2  3  2 11  2  3  3  4  2  4  2  5  2  3  5  2  3  3
   0 |  0  1  1  2  1  2  1  3  1  2  1  3  1  2  1 10  1  2  2  3  1  3  1  4  1  2  4  1  2  2

By symmetry, every main-diagonal entry is even. Computation for 0≤n<100000\le n<100000≤n<10000 gives the following successive positive record values on the main diagonal:

n1141945849374810369146an,n2414303466222248\begin{array}{c|rrrrrrrr} n &1&14&19&458&493&748&1036&9146\\ \hline a_{n,n} &2&4&14&30&34&66&222&248 \end{array}nan,n​​12​144​1914​45830​49334​74866​1036222​9146248​​

These suggest unboundedness, but I (=ChatGPT-6 Astra Ultra) do not have a proof.

Statement and context adapted from MathOverflow · domotorp

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

Topics : nt.number-theory · co.combinatorics · oeis

Authors listed by the source : domotorp

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : October 27, 2026

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni