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.

A102456 a(n) = n!/A102356(n).

Original entry on oeis.org

1, 1, 2, 2, 4, 8, 12, 24, 48, 96, 288, 576, 1152, 2304, 6912, 13824, 27648, 82944, 165888, 497664, 1327104, 2985984, 7962624, 19906560, 59719680, 143327232, 358318080, 955514880, 2866544640, 7644119040, 17199267840, 51597803520, 137594142720, 412782428160
Offset: 0

Views

Author

Vladeta Jovovic, Feb 23 2005

Keywords

Programs

  • Maple
    b:= proc(n, i) option remember;
          `if`(n=0, 1, `if` (i<1, 0,
           max(seq(b(n-i*j, i-1) *n!/i!^j/(n-i*j)!/j!, j=0..n/i))))
        end:
    a:= n-> n!/b(n, n):
    seq(a(n), n=0..50);  # Alois P. Heinz, Jun 01 2012
  • Mathematica
    b[0, ] = 1; b[, ?NonPositive] = 0; b[n, i_] := b[n, i] = Max[Table[b[n - i*j, i - 1]*n!/i!^j/(n - i*j)!/j!, {j, 0, n/i}]]; a[n_] := n!/b[n, n]; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Jan 24 2014, after Alois P. Heinz *)