TOPICS
Search

Langford's Problem


Langford's problem asks for an arrangement of two copies of the integers 1, ..., n, for a positive integer n, with exactly k entries between the two occurrences of k for each k=1, ..., n. For example, the unique (modulo reversal) n=3 solution is 231213, and the unique (again modulo reversal) n=4 solution is 23421314.

Davies (1959) showed that solutions to Langford's problem exist iff n=0,3 (mod 4) (cf. Assarpour et al. 2017), so the next solutions occur for n=7. There are 26 of these, as exhibited by Lloyd (1971). Listed by increasing n and then in lexicographic order, with each solution represented by the smaller of it and its reversal, the first few Langford sequences are 231213, 23421314, 14156742352637, 14167345236275, 15146735423627, ... (OEIS A050998).

The numbers of solutions for n=3, 4, 5, ... (modulo reversal of the entries) are 1, 1, 0, 0, 26, 150, 0, 0, 17792, 108144, ... (OEIS A014552). No formula is known for the number of solutions of a given order n, but Assarpour et al. (2017) computed their counts up to n=28, making n=31 the smallest unknown case (since there are no Langford sequences of order 29 or 30).

A generalized Langford sequence of order m and defect d uses two copies of each integer r=d,...,d+m-1. Number positions from 1 through 2m. The two copies of r occupy positions whose difference is r. Thus the classical problem corresponds to d=2 after increasing each label by 1, and d=1 gives a Skolem sequence. For example, the classical solution 231213 becomes (3,4,2,3,2,4) at defect 2.

For positive m and d, such a sequence exists exactly when m>=2d-1 and the following congruences hold: m=0 or 1  (mod4) if d is odd, and m=0 or 3  (mod4) if d is even. Simpson (1983) completed the proof of sufficiency begun by Bermond et al. (1978).

If the copies of r are at positions a_r<b_r, the triples {0,a_r+d+m-1,b_r+d+m-1} form a regular (m,3,d) perfect system of difference sets. The differences within the triples include d,...,d+m-1 from b_r-a_r, and the pairs of positions supply d+m,...,d+3m-1 as differences from 0 (Bermond et al. 1978, Rogers 1986).


See also

Perfect System of Difference Sets, Skolem Sequence

Explore with Wolfram|Alpha

References

Assarpour, A.; Bar-Noy, A.; and Liu, O. "Counting Skolem Sequences." 10 Nov 2017. https://arxiv.org/abs/1507.00315.Bermond, J.-C.; Brouwer, A. E.; and Germa, A. "Systèmes de triplets et différences associées." In Problèmes combinatoires et théorie des graphes. Paris: CNRS, pp. 35-38, 1978. https://ir.cwi.nl/pub/6623/6623D.pdf.Bogomolny, A. "Langford and Skolem Sequences." https://cut-the-knot.org/Curriculum/Algebra/LangfordSequence.shtml.Davies, R. O. "On Langford's Problem. II." Math. Gaz. 43, 253-255, 1959.Gardner, M. Mathematical Magic Show: More Puzzles, Games, Diversions, Illusions and Other Mathematical Sleight-of-Mind from Scientific American. New York: Vintage, pp. 70 and 77-78, 1978.Langford, C. D. "Problem." Math. Gaz. 42, 228, 1958.Lloyd, P. R. Correspondence to the Editor. Math. Gaz. 55, 73, 1971.Lorimer, P. "A Method of Constructing Skolem and Langford Sequences." Southeast Asian Bull. Math. 6, 115-119, 1982.Miller, J. "Langford's Problem." https://dialectrix.com/langford.html.Miller, J. "Langford's Problem Bibliography." https://dialectrix.com/langford/langford-biblio.html.Priday, C. J. "On Langford's Problem. I." Math. Gaz. 43, 250-253, 1959.Rogers, D. G. "Irregular, Extremal Perfect Systems of Difference Sets." J. London Math. Soc. 34, 193-211, 1986. https://doi.org/10.1112/jlms/s2-34.2.193.Simpson, J. E. "Langford Sequences: Perfect and Hooked." Disc. Math. 44, 97-104, 1983. https://doi.org/10.1016/0012-365X(83)90008-0.Sloane, N. J. A. Sequences A014552 and A050998 in "The On-Line Encyclopedia of Integer Sequences."

Referenced on Wolfram|Alpha

Langford's Problem

Cite this as:

Weisstein, Eric W. "Langford's Problem." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LangfordsProblem.html

Subject classifications