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.

Showing 1-2 of 2 results.

A003121 Strict sense ballot numbers: n candidates, k-th candidate gets k votes.

Original entry on oeis.org

1, 1, 1, 2, 12, 286, 33592, 23178480, 108995910720, 3973186258569120, 1257987096462161167200, 3830793890438041335187545600, 123051391839834932169117010215648000, 45367448380314462649742951646437285434233600, 207515126854334868747300581954534054343817468395494400
Offset: 0

Views

Author

Keywords

Comments

Also, number of even minus number of odd extensions of truncated (n-1) X n grid diagram.
Also, a(n) is the degree of the spinor variety, the complex projective variety SO(2n+1)/U(n). See Hiller's paper. - Burt Totaro (b.totaro(AT)dpmms.cam.ac.uk), Oct 29 2002
Also, number of ways of placing 1, ..., n*(n+1)/2 in a triangular array such that both rows and columns are increasing, i.e., the number of shifted standard Young tableaux of shape (n, n-1, ..., 1).
E.g., a(3) = 2 as we can write:
1 1
2 3 or 2 4
4 5 6 3 5 6
(or transpose these to have shifted tableaux). - Jon Perry, Jun 13 2003, edited by Joel B. Lewis, Aug 27 2011
Also, the number of symbolic sequences on the n symbols 0,1, ..., n-1. A symbolic sequence is a sequence that has n occurrences of 0, n-1 occurrences of 1, ..., one occurrence of n-1 and satisfies the condition that between any two consecutive occurrences of the symbol i it has exactly one occurrence of the symbol i+1. For example, the two symbolic sequences on 3 symbols are 012010 and 010210. The Shapiro-Shapiro paper shows how such sequences arise in the study of the arrangement of the real roots of a polynomial and its derivatives. There is a natural bijection between symbolic sequences and the triangular arrays described above. - Peter Bala, Jul 18 2007
a(n) also appears to be the number of chains from w_0 down to 1 in a certain suborder of the strong Bruhat order on S_n: we let v cover (ij)*v only if i,j straddle the leftmost descent in v. For n=3 and drawing that descent with a |, this order is 3|21 > 23|1 > 13|2 & 2|13 > 123, with two maximal chains. - Allen Knutson (allenk(AT)math.cornell.edu), Oct 13 2008
Number of ways to arrange the numbers 1,2,...,n(n+1)/2 in a triangle so that the rows interlace; e.g., one of the 12 triangles counted by a(4) is
6
4 8
2 5 9
1 3 7 10
- Clark Kimberling, Mar 25 2012
Also, the number of maps from n X n pipe dreams (rc-graphs) to words of adjacent transpositions in S_n that send a crossing of pipes x and y in square (i,j) to the transposition (i+j-1,i+j) swapping x and y. Taking the pictorial image of a permutation as a wiring diagram, these are maps from pipe dreams to wiring diagrams that send crossings of pipes to crossings of similarly labeled wires. - Cameron Marcott, Nov 26 2012
Number of words of length T(n)=n*(n+1)/2 with n 1's, (n-1) 2's, ..., and 1 n such that counting the numbers from left to right we always have |1| > |2| > |3| > ... > |n|. The 12 words for n=4 are 1111222334, 1111223234, 1112122334, 1112123234, 1112212334, 1112213234, 1112231234, 1121122334, 1121123234, 1121212334, 1121213234 and 1121231234. - Jon Perry, Jan 27 2013
Regarding the comment dated Mar 25 2012, it is assumed that each row is in increasing order, as in the example dated Jul 12 2012. How many row-interlacing triangles are there without that restriction? - Clark Kimberling, Dec 02 2014
Number of maximal chains of length binomial(n+1,2) in the Tamari lattice T_{n+1}. For n=2 there is 1 maximal chain of length 3 in the Tamari lattice T_3. - Alois P. Heinz, Dec 04 2015
The normalized volume of the subpolytope of the Birkhoff polytope obtained by taking the convex hull of all n X n permutation matrices corresponding to permutations that avoid the patterns 132 and 312. - Robert Davis, Dec 04 2016
From Emily Gunawan, Feb 26 2022: (Start)
The number of maximal chains in the lattice of permutations which avoid both the patterns 132 and 312, as a sublattice of the weak order on the symmetric group. For example, there are exactly 12 maximal chains in the sublattice for the weak order on the symmetric group on 5 elements.
The number of words in the commutation class of the c-sorting word of the longest permutation w_0 in the symmetric group for the Coxeter element c = s_1 s_2 s_3 s_4 s_5 ... . For example, the c-sorting word of w_0 for s_1 s_2 s_3 s_4 is the reduced word s_1 s_2 s_3 s_4 | s_1 s_2 s_3 | s_1 s_2 | s_1, and there are exactly 12 words in its commutation class.
The number of maximal chains in the lattice of c-singletons for the symmetric group, for the Coxeter element c = s_1 s_2 s_3 s_4 s_5 ... . For example, there are exactly 12 maximal chains in the lattice of c-singletons for c = s_1 s_2 s_3 s_4. (End)

Examples

			From _R. H. Hardin_, Jul 06 2012: (Start)
The a(4) = 12 ways to fill a triangle with the numbers 0 through 9:
.
     5         6         6         5
    3 7       3 7       2 7       2 7
   1 4 8     1 4 8     1 4 8     1 4 8
  0 2 6 9   0 2 5 9   0 3 5 9   0 3 6 9
.
     5         3         3         4
    3 6       2 6       2 7       3 7
   1 4 8     1 5 8     1 5 8     1 5 8
  0 2 7 9   0 4 7 9   0 4 6 9   0 2 6 9
.
     4         4         5         4
    2 6       2 7       2 6       3 6
   1 5 8     1 5 8     1 4 8     1 5 8
  0 3 7 9   0 3 6 9   0 3 7 9   0 2 7 9
.
(End)
		

References

  • G. Kreweras, Sur un problème de scrutin à plus de deux candidats, Publications de l'Institut de Statistique de l'Université de Paris, 26 (1981), 69-87.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

A213457 is also closely related.

Programs

  • Maple
    f:= n-> ((n*n+n)/2)!*mul((i-1)!/(2*i-1)!, i=1..n); seq(f(n), n=0..20);
  • Mathematica
    f[n_] := (n (n + 1)/2)! Product[(i - 1)!/(2 i - 1)!, {i, n}]; Array[f, 14, 0] (* Robert G. Wilson v, May 14 2013 *)
  • PARI
    a(n)=((n*n+n)/2)!*prod(i=1,n,(i-1)!/(2*i-1)!)

Formula

a(n) = binomial(n+1, 2)!*(1!*2!*...*(n-1)!)/(1!*3!*...*(2n-1)!).
a(n) ~ sqrt(Pi) * exp(n^2/4 + n/2 + 7/24) * n^(n^2/2 + n/2 + 23/24) / (A^(1/2) * 2^(3*n^2/2 + n + 5/24)), where A = 1.2824271291... is the Glaisher-Kinkelin constant (see A074962). - Vaclav Kotesovec, Nov 13 2014

Extensions

More terms from Michael Somos
Additional references from Frank Ruskey
Formula corrected by Eric Rowland, Jun 18 2010

A375614 Lexicographically earliest infinite sequence of distinct nonnegative pairs of terms that interpenetrate to produce a prime number.

Original entry on oeis.org

0, 11, 3, 17, 2, 23, 6, 13, 1, 21, 4, 19, 7, 27, 5, 33, 8, 39, 103, 10, 153, 20, 107, 12, 131, 15, 109, 16, 111, 26, 113, 24, 101, 30, 119, 14, 123, 25, 117, 29, 141, 22, 127, 18, 133, 31, 129, 28, 121, 34, 169, 36, 137, 32, 167, 38, 147, 35, 171, 43, 157, 37, 9, 41, 149, 44, 159, 55, 139, 46, 151, 45, 163, 48, 173, 42, 143, 51, 187, 49, 177, 52, 183, 50, 161, 54, 179, 47, 189
Offset: 1

Views

Author

Eric Angelini and Jean-Marc Falcoz, Aug 22 2024

Keywords

Comments

The term a(n) must always be exactly one digit longer or shorter than the term a(n+1).

Examples

			Interpenetrate a(1) = 0 and a(2) = 11 to form 101 (a prime number);
interpenetrate a(2) = 11 and a(3) = 3 to form 131 (a prime number);
interpenetrate a(3) = 3 and a(4) = 17 to form 137 (a prime number);
interpenetrate a(4) = 17 and a(5) = 2 to form 127 (a prime number);
interpenetrate a(5) = 2 and a(6) = 23 to form 223 (a prime number);
interpenetrate a(6) = 23 and a(7) = 6 to form 263 (a prime number);
interpenetrate a(7) = 6 and a(8) = 13 to form 163 (a prime number);
interpenetrate a(8) = 13 and a(9) = 1 to form 113 (a prime number);
(...)
interpenetrate a(18) = 39 and a(19) = 103 to form 13093 (a prime number);
(...)
interpenetrate a(167) = 277 and a(168) = 1009 to form 1207079 (a prime number); etc.
		

Crossrefs

Programs

  • Maple
    Q:= proc(a,b) local La, Lb, i;
      La:= convert(a,base,10);
      Lb:= convert(b,base,10);
      add(La[i]*10^(2*i-2),i=1..nops(La)) + add(Lb[i]*10^(2*i-1),i=1..nops(Lb))
    end proc:
    f:= proc(n) local d,x;
      d:= 1+ilog10(n);
      if n::odd then
        for x from 10^(d-2) to 10^(d-1) - 1 do
          if not(member(x,S)) and isprime(Q(n,x)) then return x fi
        od
      fi;
      for x from 10^d+1 to 10^(d+1) - 1 by 2 do
        if not(member(x,S)) and isprime(Q(x,n)) then return x fi
      od;
    FAIL
    end proc:
    R:= 0,11: S:= {0,11}: v:= 11:
    for i from 2 to 100 do
      v:= f(v);
      R:= R,v;
      S:= S union {v};
    od:
    R; # Robert Israel, Aug 22 2024
  • Python
    from sympy import isprime
    from itertools import islice
    def ip(s, t): return int("".join(x+v for x, v in zip(s, t))+s[-1])
    def agen(): # generator of terms
        seen, an, found = set(), 0, True
        while found:
            yield an
            seen.add(an)
            s = str(an)
            d, found = len(s), False
            if s[-1] in "1379" and d > 1:
                for k in range(10**(d-2), 10**(d-1)):
                    if k not in seen and isprime(ip(s, str(k))):
                        an, found = k, True
                        break
            if not found:
                for k in range(10**d, 10**(d+1)):
                    if k not in seen and isprime(ip(str(k), s)):
                        an, found = k, True
                        break
    print(list(islice(agen(), 90))) # Michael S. Branicky, Aug 22 2024
Showing 1-2 of 2 results.