Problems

Open problems

Problems I’ve worked on from Peter Kagey’s open problem collection: what each one asks, what I’ve proved or computed, and what is still open.

§1In progress

013 Main question solved, questions 1 to 3 open

Multiples of square roots between consecutive integers

Let a(n) be the least k with some integer multiple of √k inside the open interval (n, n+1). Kagey asked whether the value j has asymptotic density 1/√j∏(1 - 1/√s), the product over squarefree s < j. It does, once the product starts at s = 2. The proof is Weyl equidistribution together with the linear independence of the square roots of squarefree integers.

  • The density formula is proved, with one correction: the product has to start at s = 2, since the factor for the squarefree integer 1 is zero and would make every density vanish. The proof is Weyl equidistribution plus the linear independence of the square roots of squarefree integers.
  • The same theorem holds for any base sequence whose reciprocals are independent over the rationals, which settles the two questions about the mth root of 2 and gives one answer to the question about other base sequences. For the base sequence of logarithms the independence is not known.
  • The growth of the records is not proved. The tail estimate is, and combined with a probabilistic heuristic it predicts records of size about 0.6765 times the square of the natural logarithm of n, which the 30 known records follow over twelve orders of magnitude. One of two pre-registered predictions failed at one record out of 26.
  • Questions 1 to 3 remain open. A linear search for n with a(n) above K is proved to terminate, but nothing bounds how long it takes, and no direct construction is known.
014 Partial. Reachability solved, longest game open

Moving stones between equal piles

Start with n piles of one stone. A move takes two piles of the same size and shifts any number of stones from one to the other. Kagey asks how long a game can last. We do not know. We do know exactly which partitions of n a game can reach, which answers the four questions about reachability and refutes a formula that fits the first hundred published terms.

  • Reachability is settled completely. A partition of n cannot be reached exactly when an odd prime divides every part, or when the parts are distinct and odd and each pair of them leaves behind parts sharing an odd prime that also divides n.
  • That yields closed formulas for A292726, A292727 and A292728, proves Neder's conjectures c(4p) = p + 4 and c(8p) = 2p + 20, and refutes the simpler formula that matches all 100 published terms of A292727: it first fails at n = 105, where six partitions with coprime parts are unreachable.
  • The main question is open. Only the bounds n to the three halves over two root two, minus n over two, up to n squared over four minus n over two plus one are proved, and the values of g now run to n = 80, twenty terms past what was known.
  • Kagey's questions 4 and 6, the shortest game and the number of games, are computed but not explained, and the variant in question 8 is answered only for reachability.
016 Solved for prime m and for m = 4, partial otherwise

The image of aₘ

Let aₘ(n) be the least k > n for which nα kβ is an m-th power, for some α and β between 1 and m-1. Kagey asked which integers are values of a₃, whether every square is one, whether any squarefree number is, and what the image is for general m. For prime m the relation behind aₘ is an equivalence and the answer is exact. For composite m it is not even transitive.

  • For prime m the relation behind a_m is an equivalence relation, a_m sends each n to the next element of its class, and the image is everything that is not least in its class. For m = 3 that becomes a test one can apply by eye: k is in A299117 exactly when k is not cubefree, or k = A times B squared with A and B squarefree, coprime and B greater than A.
  • Every perfect power above 1 is in the image and no squarefree number is, so Kagey's two follow-ups are answered: every square except 1, and no squarefree number at all.
  • For composite m the relation is not transitive and breaks into explicitly described cliques. No m-th power is a value of a_m, the case m = 4 is settled completely, and for every m the image has natural density 1 minus 1 over zeta of the least prime factor of m. For composite m other than 4 the density-zero exceptional set has no closed description.
  • The conjecture recorded in A343881, that a_p(k) equals k times rad(k) for all large primes p, is false at k = 12, where a_p(12) is 144 rather than 72 for every prime from 7 to 101. The correct value is k times j, with j the least integer of which k is a power.
038 Main question solved, one variant in part, two untouched

Fitch Cheney's trick with several cards hidden

A spectator draws k cards, the assistant shows k-1 of them in order, and the magician names the last. The largest deck has k!+k-1 cards. Kagey asks what happens if the assistant may show any number of cards less than k and the magician must name all the rest. Nothing is gained. The largest deck is still k!+k-1, and the reason is that a strategy exists whenever there are at least as many messages as hands.

  • Letting the assistant choose how many cards to show gains nothing. The largest deck is still k! + k - 1, and the general reason is that a strategy exists exactly when there are at least as many messages as hands, for any rule about how many cards may be shown.
  • With exactly k-j cards shown the largest deck is k + m, where m is largest with (m+1)(m+2)...(m+j) at most k factorial. That settles Kagey's k-2 question and shows the bound recorded in OEIS A372265 is attained rather than merely an upper bound.
  • Showing at most k-j cards gains at most one card over showing exactly k-j, and sometimes does: nine cards drawn with two hidden reaches a deck of 610 instead of 609, but only by sometimes showing fewer than seven cards, and no explicit strategy is known there.
  • When the magician need name only one hidden card, showing a single card handles exactly 3(k-1) cards. With four drawn and two shown the answer is only pinned between 15 and 18. Counting the encodings and the several-copies variant are untouched.
060 Main question solved, two of four related questions open

Sign patterns of subsequences

Two sequences of distinct reals are equivalent when their first differences have the same signs. Take one sequence of length n and count how many classes its subsequences occupy. Kagey found 1, 3, 6, 11 and wrote “Fibonacci minus 2?”. The guess is right. The maximum is Fn+2 - 2, and the sequences that attain it can be described exactly.

  • The maximum is F(n+2) minus 2, proved. Every sign word of a subsequence is a scattered subword of the sign word of the whole sequence, a binary word of length n-1 has at most that many nonempty subwords, and the expanding zigzag 0, 1, -1, 2, -2, ... realizes all of them.
  • A permutation attains the maximum exactly when it is alternating and is the union of an increasing and a decreasing subsequence sharing one entry. There are 2 times the central binomial coefficient of n-1 such permutations, which is A063886.
  • Collapsing runs gives exactly 2r-1 classes for a sequence whose sign word has r runs, so the maximum is 2n-3 as Kagey conjectured and the count is a function of the local extrema. Without collapsing it is not: 2143 and 2314 have the same extrema and 5 classes against 6.
  • With repeated entries allowed, exhaustive search to n = 11 refutes Kagey's conjectured values from n = 8 on, where 65 beats 62, and an explicit witness gives at least 413 against 311 at n = 12. No formula there, and the sort-order variant is Wilf's pattern-packing problem, still open.
061 Partial. One row solved, 79 grids computed, general case open

Colours that meet at most once

Colour the cells of the n × m grid so that no two colours are adjacent more than once. A colour may sit next to itself, once. Kagey asks for the least number of colours, rn × m. One row is settled. For the rest we prove a lower bound from the cell degrees, compute 79 grids exactly, and conjecture that the bound is the answer at every grid but three.

  • One row is settled. The answer is the least r whose largest trail in the complete graph with loops has at least m-1 edges, which is a known result reproved here, and it shows the obvious counting bound is wrong for infinitely many row lengths, first at eleven cells.
  • A lower bound that packs the cell degrees into colour classes holds for every grid, has a closed form on two-row grids, and beats counting for infinitely many widths, first at two by ten. It also settles seven by eleven at seventeen colours by hand.
  • Exact values for 79 grids. Seventy-six equal the packing bound; two by four, two by seven and four by seven need one more, and only two by four has a short proof. The conjecture that the packing bound is otherwise the answer survived fourteen predictions registered before the grids were run.
  • The general formula is open, as are two of Kagey's six variants, which were not studied. The counting question and three variants are answered on small grids only.
076 Main question solved, four related questions untouched

Non-touching diagonals on a torus

In each cell of an n × n grid draw one of its two diagonals, or nothing, and glue opposite sides of the grid together. No two diagonals may share an endpoint. Kagey asked how many can be drawn and recorded 2n² + n ≤ m(2n+1) ≤ 2n² + 2n. The upper bound is the truth. The maximum is ⌊n²/2⌋ for every n ≥ 2, and ⌊nm/2⌋ on every n × m torus.

  • The maximum is the trivial bound. m(n) = floor(n^2/2) for every n at least 2, so m(2n+1) = 2n^2 + 2n, and the maximum on the n by m torus is floor(nm/2). The construction is explicit and uses diagonals of one direction except for (gcd(n,m) - 1)/2 of them, all in a single column of cells.
  • Kagey's lower bound 2n^2 + n turns out to be exactly what one direction alone can achieve. The graph of all south-west to north-east diagonals splits into gcd(n,m) cycles of length lcm(n,m), so a matching in it has at most (nm - g)/2 edges when n and m are odd. Mixing the two directions is what closes the gap.
  • The cylinder, the Moebius strip, the Klein bottle and the projective plane are settled too, with maxima n*ceil(m/2), n*ceil(m/2) minus one when m = 1 mod 4, floor(nm/2), and floor((nm+1)/2) minus one when n and m are odd with n = m mod 4. Both mod 4 exceptions are real and proved.
  • Kagey's count-up-to-symmetry question has data and no formula: the number of maximum configurations for n, m up to 8 and the orbit counts for n up to 7. Two row formulas are conjectures, and four of the eight related questions are not addressed at all.
109 Main question solved, one related question part open and one untouched

Polyforms on the facets of the n-cube

A polyfacet is a connected set of facets of the n-cube, two facets counting as joined when they meet in an (n-2)-face. Kagey asks how many have k cells, up to the symmetries of the cube, and lists the question as open. It has a closed form, T(n,k) = 1 + min(⌊k/2⌋, n - ⌈k/2⌉) with one subtracted when k = 2. The proof is short, and the same description settles three of the five related questions.

  • The count has a closed form: T(n,k) is 1 plus the smaller of floor(k/2) and n minus ceil(k/2), with one subtracted when k = 2. A set of facets is determined up to symmetry by how many of the n opposite pairs it holds whole, holds half of, and misses, and the only disconnected set of facets on any cube is a single opposite pair.
  • The triangle is OEIS A384157, whose comments state that classification without proof while the problem page still lists the question as open. What is new is the proof, not the count. The page also corrects the problem page's palindrome statement, which prints n where 2n is meant and needs n at least 3 at k = 2n-2.
  • The same description settles three of the five related questions. Fixed polyforms number C(2n,k) minus n when k = 2, no polyfacet is chiral so one-sided and free counts agree, and colourings up to all symmetries and up to rotations reproduce Russell's A325005 and A325004, with a refinement by content that is in neither entry. The most and least symmetric polyfacet of each size are identified, the least sitting at roughly k squared over 4n opposite pairs.
  • Still open: the demicube and the Rubik's subdivision are untouched, faces of dimension below n-1 fall outside the method, and the orthoplex has a triangle, A369605, but no closed form.
110 Solved except the least integer

The lattice of n&nbsp;−&nbsp;n/p

Order the positive integers by the covering relations n - n/p ⋖ n, one for every prime p ∣ n. Kagey asks whether the result is a lattice, whether it is modular or distributive, what lcm(n,k)/(n ∨ k) is, and how to build the least integer of a given rank. It is a lattice. It is not modular. The quotient has a formula. The last question is answered only in part.

  • The poset is a lattice. Writing every integer as a product of the numbers p/(p-1), the meet is the componentwise minimum of the exponent vectors and the join comes from a recursion that runs from the largest prime downward. The accepted Math.SE answer claims the componentwise maximum is again an integer, and it is not: 3 and 5 give 15/2, while the join is 15.
  • The lattice is lower semimodular, not upper semimodular, and not modular, so not distributive. The five elements 2, 5, 10, 3, 15 form a pentagon sublattice, and 5 and 6 both cover 4 while their join 15 is two ranks above either.
  • The join always divides the least common multiple. The q-adic valuation of the quotient is given for every prime q, with closed forms when one element lies below the other, for powers of two, and for pairs of primes, where the answer is the Pratt tree.
  • The least integer of rank r is computed to rank 47, and it is always a prime or a product of two smaller such minima. Its growth constant lies between 1.41421 and 1.51637, and its value is open. The b-file already published with A105017 refutes the hypothesis, registered before the computation, that the constant is 2879^(1/19).
112 Main question solved, some variants open

Rectangles on a grid, edges counted mod 2

Place rectangles along the lines of an n × m grid of unit cells. An edge counts as covered if it lies on the boundary of an odd number of them, so a coincident pair cancels. Kagey asks how many of the 2nm + n + m edges can be covered at once. The answer is 2nm + 2 when nm is odd or the grid is a single strip, and 2nm otherwise.

  • The greatest number of edges that can be covered is 2nm + 2 when nm is odd or the grid is a single strip, and 2nm otherwise. So out of the 2nm + n + m edges, exactly n + m - 2 or n + m are always missed, and the two cases differ only by a parity obstruction.
  • The covers are exactly the even subgraphs of the grid graph and form the group (Z/2)^(nm) with the unit cells as a basis. Passing to complements turns a largest cover into a smallest T-join, which is the Chinese postman problem on the grid, and that reduction drives every other result.
  • The number of largest covers is 1 when both sides are odd and at least 3, a Fibonacci number for a single row, 7 for the 2 by 2 grid, 8 plus half the even side when one side is 3, and 8 in every remaining case. The fewest rectangles that reach the maximum is floor((n+m)/2), and for odd sides the number of minimal arrangements is a closed form in double factorials.
  • Left open: no formula for the number of minimal arrangements when the sides are not both odd, none for the fewest squares, nothing on the best cover with fewer than the minimum number of rectangles, the group mod c only for odd c, and the higher-dimensional, triangular and vertex-or-facet variants are not treated at all.
132 Solved, except hyperspheres above dimension three

The region between two Archimedean spirals

The spirals ρ = at and ρ = bt leave the origin together and meet again at radius r = ab/(a-b). The region between them is a third of that disc. Kagey asked for an elementary proof. Slicing by concentric circles instead of by rays turns the area into the volume of a cone, and the same slice answers his three follow-up questions, the last of them as far as the 3-sphere.

  • Slicing the disc by concentric circles instead of by rays proves the formula with nothing but areas of circular sectors and the sum of the first N squares. The area equals the volume of a cylinder capped by a cone, and the one third in Kagey's statement is the one third of the cone.
  • Only the angular gap between the two curves enters. Power spirals rho = a t^p and rho = b t^p enclose 1/(2p+1) of the disc, so a fifth at p = 2 and exactly a half for Fermat spirals.
  • Past the meeting radius the formula survives once the uncovered part is counted with the multiplicity of the intermediate spirals, and the even-odd colouring out to radius n r covers exactly half the disc at every even n.
  • Two curves climbing from pole to pole, one making an extra turn, cut the sphere in half, and the same argument works on the 3-sphere. On spheres of dimension four and up it is open.

§2Everything Kagey asked, answered

012 Solved for every reading, one gap

Folding a strip by x&nbsp;↦&nbsp;x/d and x&nbsp;↦&nbsp;x&nbsp;−&nbsp;k

A strip of n pieces is folded evenly into d parts, or has its last k pieces folded in. Kagey asks for the least number of folds. His text and his figure stop the folding at different moments, so we count the folds between any two lengths instead. That count is a minimum of at most 1 + logd(n/y) base-d digit sums, and every reading of the question reads off it.

  • The problem page's text and its figure stop the folding at different moments, so the paper counts folds between any two lengths instead. That count is a minimum of at most 1 + log_d(n/y) base-d digit sums, and all six readings of the question, including both related ones, read off it.
  • For k = 1 the answer is floor(log_d n) plus the base-d digit sum of n, minus 1, and the greedy rule attains it. That makes A014701 the answer for d = 2 under every reading, not just the greedy one.
  • When d and k are coprime the play is forced onto one chain of O(log n) lengths, and greedy is optimal for folding down to k pieces. For folding down to a single piece, greedy is optimal exactly for the pairs an order criterion names, which killed an earlier guess fitted to small d and k.
  • When d and k share a factor the chain breaks and greedy fails, first at n = 18 for d = k = 2. Whether the count can then be computed in time polynomial in log k as well as log n is open.
028 Solved, all five variants

Diagonal tilings and the checkerboard bijection

Put one of the two diagonals in every cell of the n × n grid and count the fillings up to the eight symmetries of the square. Kagey asks for the count, for five variants, and whether there is an obvious bijection on the 2n × 2n grid between diagonal tilings and black/white tilings. There is. Add the checkerboard.

  • Adding the checkerboard answers the bijection question. On the 2n by 2n grid the map commutes with all eight symmetries and matches orbit sizes, so A295229 and A054247 agree at every even index and the count stops depending on the tile set.
  • A relabelling of this kind exists exactly when no diagonal-exchanging symmetry fixes a cell. That rules out odd grids, the cylinder and the torus of every size, and for odd n the two counts separate by a closed expression, 18 at n = 3 and 8224 at n = 5.
  • The Moebius strip, which Kagey and Keehn leave open, gets a closed formula, a bijection with the cylinder when the circumference is odd, and a strict inequality when it is even.
  • The repository's script passes all 43 checks, and an independent recomputation here reproduces every table and every OEIS term quoted, with no disagreement.
083 Answered, all three questions

The least recurrence of a linear combination

Seven sequences feed into one another. One combination of them, a₅ + a₇, satisfies a(n) = 5a(n-1) - 5a(n-2), although the system has size 7. Kagey asks what the least order is in general. The answer is classical, it is the rank of a Hankel matrix, and running it on four transfer matrices proves three recurrences that the OEIS lists as conjectures.

  • The least order is the rank of the Hankel matrix of the sequence, equivalently the dimension of the Krylov space of the initial vector modulo the part invisible to the combination. This is classical, going back to Kronecker in 1881 and to Kalman and Ho in the 1960s, and the note writes it out with proofs arranged to answer all three of Kagey's questions.
  • In Kagey's seven-state example, 15 of the 127 subset sums have order 2 and the other 112 have order 3 with eventual order 2. No choice of combination and initial vector gives order above 4, although the system has size 7. The fall from 7 to 2 happens in three separate steps, each with an identified cause.
  • Applied to transfer matrices with 8, 16 and 32 states, the same computation proves the recurrences that OEIS A301976, A320097 and A320099 list as conjectures, of orders 4, 6 and 10, and shows no shorter recurrence holds even eventually. The mod 10 conjecture in A301976 follows too.
  • One thing stays open, and it is not one of Kagey's questions: predicting the Krylov and unobservable dimensions of such a transfer matrix without computing them. Reflection symmetry of the strip explains part of the drop but not all of it.
121 Solved, main question and R1 to R4, one piece of R5 open

Nested boards up to iterated symmetry

A board of depth n is a 2 × 2 board whose four squares hold boards of depth n-1. Two boards are the same if one becomes the other by rotating or reflecting sub-boards at any level. Kagey asks how many boards of depth n there are. There are 2, 6, 231, 359026206, …, every other term of A007501, and a(n) = ⌊2θ4ⁿ⌋ exactly.

  • One orbit lemma does the work: a class of depth-n boards is an arrangement of classes of depth-(n-1) boards up to the symmetries of one board, so the count at each depth is the previous count substituted into the one-board colouring polynomial. With k markers, a(0) = k and a(n+1) = P(a(n)) with P(c) = (c^4 + 2c^3 + 3c^2 + 2c)/8.
  • On the 2 by 2 board the dihedral group is C2 wreath C2 with the diagonals as blocks, so P is the triangular-number map applied twice. The two-marker counts 2, 6, 231, 359026206 are therefore every other term of A007501, and three markers give the odd-indexed terms.
  • The growth is exact rather than asymptotic: a(n) is the floor of 2 times theta to the power 4^n for every n from 0 on, with theta = 1.3457681707... There is a matching floor formula for nested m by m boards with a different leading constant.
  • Up to interchanging X and O the counts are 1, 4, 127, 179555902, from a second recursion that extends to any group of marker permutations. Four of the five listed variants are fully settled; the fifth is settled in principle for any finite permutation group, with explicit answers for polygons and the 2x2x2 cube, but no closed-form cycle index for an m by ... by m board in dimension D.
131 All five questions answered, two papers final

A Galton board with memory

A ball bounces left or right at the first peg, and after that repeats its last direction with probability p. Kagey asks how the balls spread over the bins. The answer is a count of binary words by runs, two of his numerator tables are lattice-path arrays already in the OEIS, and the bin index is asymptotically normal with variance Np/(4(1-p)). Two papers now carry the work: one traps the middle-against-ends crossing in an explicit interval at every board size, the other replaces the tetrahedron question with a board of any number of directions and finds that the most likely bin jumps straight from the corners to the centre.

  • The exact bin probabilities are a count of binary words by runs, with a rational two-variable generating function and a three-term Pascal-type recurrence whose extra term is exactly the memory of the board and vanishes at p = 1/2.
  • Kagey's numerator table at p = 2/3 is the rook-path array A035002 and his table at p = 1/3 is A348595, each by an explicit bijection. The two put the freedom in opposite places: a rook path keeps the route fixed and chooses where to pause, a blocked walk keeps the pauses fixed and chooses the route.
  • The bin index is asymptotically normal for every p strictly between 0 and 1, with variance Np/(4(1-p)), and each row has exactly one p at which the middle bin equals the extremes. Those values increase strictly from 2/3 and 1 over root 2 up to 1, with 1 - p_N of order (log N)/N, which is why Kagey's tenth row at p = 5/6 looks almost level.
  • The crossing, where the middle bin draws level with the ends, is now trapped between two explicit functions at every board size rather than only asymptotically, by comparing the central bin with a modified Bessel function carrying an error bound explicit in N. That settles the second-order law for how far the crossing sits from 1, which had been a tested guess. The range below N = 175 is carried by exact integer arithmetic and cross-verified in Lean, so the two halves of the proof rest on different machinery.
  • On a board with d directions the bins are the lattice points of a simplex. Every face draws level with the corners at the same place to first order, and breaking that tie at second order shows the most likely bin jumps exactly once, from the corners straight to the centre, with no edge or other proper face holding it in between. On the triangle the centre overtakes the corners while the edge midpoints are still about 17 per cent below them.