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.

A134749 First differences of permutational numbers : a(n)=A134640(n+1)-A134640(n).

Original entry on oeis.org

1, 1, 3, 2, 4, 4, 4, 2, 6, 3, 9, 6, 9, 3, 18, 3, 21, 9, 6, 6, 15, 6, 6, 9, 21, 3, 18, 3, 9, 6, 9, 3, -34, 4, 16, 8, 16, 4, 52, 4, 36, 12, 12, 8, 48, 8, 12, 12, 36, 4, 52, 4, 16, 8, 16, 4, 108, 4, 16, 8, 16, 4, 152, 4, 56, 16, 8, 12, 24, 8, 32, 16, 32, 8, 28, 4, 36, 12, 12, 8, 84, 4, 36, 12, 12, 8, 28, 4, 56, 16, 8, 12, 144, 12, 8, 16, 56, 4, 28, 8, 12
Offset: 1

Views

Author

Artur Jasinski, Nov 08 2007

Keywords

Comments

Negative numbers occur at n=!k = A007489(k) and {k=3,4,5,...}

Crossrefs

Programs

  • Mathematica
    a = {}; b = {}; Do[AppendTo[b, n]; w = Permutations[b]; Do[j = FromDigits[w[[m]], n + 1]; AppendTo[a, j], {m, 1, Length[w]}], {n, 0, 5}]; d = {}; Do[AppendTo[d, a[[n + 1]] - a[[n]]], {n, 1, Length[a] - 1}] ; d (*Artur Jasinski*)
    Differences[Flatten[Table[FromDigits[#,n]&/@Permutations[Range[0,n-1]], {n,5}]]] (* Harvey P. Dale, Dec 09 2014 *)