OFFSET
1,1
COMMENTS
We can produce similar sequences of length n!-1 from all the n-set permutations (1,...,n), starting from n=2 up to n=9. The next larger sequence contains always the preceding sequence as its proper prefix. See A219664 for the largest such sequence. - Antti Karttunen, Dec 18 2012
See A209280 for the extension of this sequence to 9!-1 terms, and for comments and formulas which apply to this subsequence. - M. F. Hasler, Jan 15 2013
LINKS
T. D. Noe, Table of n, a(n) for n = 1..119 (complete sequence)
FORMULA
a(n) = A209280(n) for n<5!. See there for more useful relations. - M. F. Hasler, Jan 15 2013
EXAMPLE
Permutations are 12345, 12354, 12435, ...
a(3) = 18 because if we order these permutations (ascending), then P(4)-P(3) = 12453-12435 = 18
MATHEMATICA
Differences[FromDigits /@ Permutations[{1, 2, 3, 4, 5}]] (* T. D. Noe, Dec 18 2012 *)
PROG
CROSSREFS
KEYWORD
easy,nonn,base,fini,full
AUTHOR
Ivan Meyer (ivan.mey(AT)gmail.com), May 23 2005
STATUS
approved