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.

User: Dana Mackenzie

Dana Mackenzie's wiki page.

Dana Mackenzie has authored 3 sequences.

A250023 Decimal expansion of the cube root of 1729.03.

Original entry on oeis.org

1, 2, 0, 0, 2, 3, 8, 3, 7, 8, 5, 6, 9, 1, 7, 1, 8, 1, 2, 3, 0, 5, 7, 3, 8, 1, 6, 6, 9, 9, 5, 0, 4, 4, 0, 4, 0, 7, 5, 0, 6, 8, 5, 1, 2, 2, 0, 5, 0, 8, 9, 2, 7, 5, 3, 6, 0, 2, 8, 8, 1, 3, 0, 7, 3, 3, 9, 5, 0, 2, 4, 2, 1, 2, 7, 6, 7, 9, 4, 4, 6, 5, 6, 3, 4, 3, 0, 2, 0, 1, 0, 9, 6, 8, 0, 8, 2, 0, 3, 2, 3, 0, 8, 4, 2
Offset: 2

Author

Keywords

Comments

The problem of extracting this cube root pitted an abacus salesman against Nobel Prize winning physicist Richard Feynman one afternoon in Rio de Janeiro.
An algebraic number of degree 3 and denominator 10; minimal polynomial 100x^3 - 172903. - Charles R Greathouse IV, Apr 20 2016

Examples

			12.002383785691718123057381669950440407506851220508927536028813073395024212767944...
		

References

  • Richard Feynman and Ralph Leighton, Surely You're Joking, Mr. Feynman! (Adventures of a Curious Character), chapter "Lucky Numbers," W. W. Norton & Co., NY 1985, pp. 192-198.
  • Dana Mackenzie, The Universe in Zero Words, The Story of Mathematics as Told Through Equations, Princeton University Press, Princeton and Oxford, 2012, Introduction - The Abacist versus the Algorist, page 13.

Programs

  • Mathematica
    RealDigits[ 1729030^(1/3), 10, 105][[1]] (* please notice the lack of a decimal point *)
  • PARI
    sqrtn(1729.03,3) \\ Charles R Greathouse IV, Apr 20 2016

A240594 Number of lattice paths from NW to SE corner in an L-shaped grid.

Original entry on oeis.org

1, 1, 3, 3, 5, 1, 4, 10, 4, 10, 16, 10, 16, 19, 1, 5, 15, 35, 5, 17, 35, 55, 15, 35, 53, 65, 35, 55, 65, 69, 1, 6, 21, 56, 126, 6, 26, 66, 126, 196, 21, 66, 126, 186, 231, 56, 126, 186, 226, 246, 126, 196, 231, 246, 251
Offset: 1

Author

Dana Mackenzie, Apr 08 2014

Keywords

Comments

This is actually a sequence of square matrices that has been converted to a sequence of numbers. The matrices are:
a[1] = [1]
a[2] = [[1, 3], [3, 5]]
a[3] = [[1, 4, 10], [4, 10, 16], [10, 16, 19]], etc.
The ij-th entry of matrix a[N] is defined as follows.
Definition 1: Take an N X N square grid and remove an (N+1-i) X (N+1-j) rectangle from the northeast corner. Then the ij-th entry of a[N] gives the number of lattice paths from the northwest to southeast corner in the resulting L-shaped figure. (Paths may only travel east or south on any step.)
Definition 2: The ij-th entry of a[N] gives the number of ways to deal (2N) cards, labeled 1 to 2N, into two separate hands of N cards in such a way that the i-th lowest card in hand 1 has a higher face value than the j-th highest card in hand 2.
These two definitions are equivalent.
These matrices serve as the objective function in a linear assignment problem solved in reference (1). The problem is to find the N X N permutation matrix M that maximizes the inner product M dot a[N]. In reference (1) the matrices are called P^N and the order of the columns is reversed. See sequence A240567.
A remarkable recursive formula, called the "hook-sum formula," computes a[N+1] from a[N]. To obtain the ij-th element of a[N+1], first we "augment" a[N] by adding an (N+1)-st row and column in which all the elements are the same and equal to (2N-choose-N). That is, a[N]_N+1,j = a[N]_i,N+1 = (2N-choose-N) for all i and j. Now, for each i and j, add all of the elements in a[N] that lie directly above or directly to the left of a[N]_ij, including a[N]_ij itself. This is called a "hook-sum," h[N]_ij. Finally, the elements of a[N+1] are given by a[N+1]_ij = h[N]_ij - h[N]_i-1,j-1. (If i=1 or j=1, the second term in this formula is zero.)

Examples

			Start with a 2 X 2 square grid. Delete a 1 X 1 square from the northeast corner to obtain an L-shaped figure with three squares. There are 5 paths from the NW to SE corners: (E, S, E, S), (E, S, S, E), (S, E, E, S), (S, E, S, E), and (S, S, E, E). (Here E means "east" and S means "south".) Thus a[2]_22 = 5. Next, delete a 2 X 1 rectangle from the northeast corner to obtain an L-shaped figure with two squares and a horizontal line segment. Now there are 3 paths from NW to SE: (E, S, S, E), (S, E, S, E), and (S, S, E, E). Thus a[2]_12 = 3. Similarly, a[2]_21 = 3. (Note that all of the a[N] matrices are symmetric.) Finally, delete a 2 X 2 square from the 2 X 2 grid. This leaves only the left-hand edge and bottom edge of the grid intact. Then there is only 1 path from the NW to SE corner, which goes (S, S, E, E). Thus a[2]_11 = 1.
		

Crossrefs

As noted above, A240567 describes the solutions of a linear optimization problem with objective matrix given by a[N]. A000984 gives the number of lattice paths in the "vacuous" case where we delete an i X 0 or 0 X j rectangle from the N X N grid.

Formula

See comments for recursive definition of a[N] as a sequence of matrices.

A240567 a(n) = optimal number of tricks to throw in the game of One Round War (with n cards) in order to maximize the expected number of tricks won.

Original entry on oeis.org

1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
Offset: 3

Author

Dana Mackenzie, Apr 08 2014

Keywords

Comments

A precise definition of a(n) is as follows. Let p^n_ij denote the number of ways to deal 2n cards into two hands (n cards per hand) such that the i-th lowest card in hand 1 is greater than the j-th lowest card in hand 2. Let P^n denote the n X n matrix whose ij-th entry is p^n_ij. Let M denote the n X n permutation matrix that has the maximum inner product with P^n. As proved in Mackenzie (2014), provided n is sufficiently large, the optimal permutation matrix M consists of a(n) 1's on the "anti-main diagonal" in the first a(n) rows, followed by (n-a(n)) 1's that all lie on the a(n)-th diagonal below the main diagonal. The following exact formula holds for all n less than 60 and for all n greater than 10 million:
a(n) = max{k: (n-choose-k)^2 + sum_{j=0..(n-k)} (2n-choose-j) >= (2n-choose-n)}.
The formula is conjectured to hold for all n between 60 and 10 million, as well.
Note: a(1) and a(2) are undefined, so the first number given is a(3).

Examples

			For n = 3, the matrix P is [[10, 4, 1], [16, 10, 4], [19, 16, 10]]. The permutation matrix that maximizes the inner product with P is M = [[0, 0, 1], [1, 0, 0], [0, 1, 0]]. (It is easy to see that M dot P = 33 and that this beats the other five permutation matrices.) M has one entry on the anti-main diagonal above the main diagonal. Thus a(3) = 1.
In terms of the card game One Round War, if your cards are A, B, C (from high to low) and your opponent's cards are a, b, c (from high to low) this means that the optimal strategy is to "throw" one trick. In other words, you should play C against a, A against b, and B against c. With this strategy you will win on average 33/20 = 1.65 tricks out of 3.