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.

A281359 Number of scenarios in the Gift Exchange Game when a gift can be stolen at most 7 times.

Original entry on oeis.org

1, 8, 24301, 5165454442, 12845435390707724, 191739533381111401455478, 11834912423104188943497126664597, 2371013832433361706367594400829713564440, 1299618941291522676629215597535104557826094801396, 1716119248126070756229849154290399886241087778087554633612
Offset: 0

Views

Author

N. J. A. Sloane, Jan 25 2017

Keywords

Crossrefs

The gift scenarios sequences when a gift can be stolen at most s times, for s = 1..9, are A001515, A144416, A144508, A144509, A149187, A281358, A281359, A281360, A281361.

Programs

  • Maple
    with(combinat):
    b:= proc(n, i, t) option remember; `if`(t*i add(b(k, 8, n), k=0..8*n):
    seq(a(n), n=0..12);  # Alois P. Heinz, Feb 01 2017
  • Mathematica
    t[n_, n_] = 1; t[n_ /; n >= 0, k_] /; 0 <= k <= 8*n := t[n, k] = Sum[(1/j!)*Product[k - m, {m, 1, j}]*t[n - 1, k - j - 1], {j, 0, 7}]; t[, ] = 0; a[n_] := Sum[t[n, k], {k, 0, 8*n}]; Table[a[n], {n, 0, 10}] (* Jean-François Alcover, Feb 18 2017 *)
  • PARI
    {a(n) = sum(i=n, 8*n, i!*polcoef(sum(j=1, 8, x^j/j!)^n, i))/n!} \\ Seiichi Manyama, May 22 2019