login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A145874 Number of permutations of the numbers 1, 2, ..., n such that for all 1 <= k <= n the average of the first k numbers is at least the average of all n numbers. 1
1, 1, 3, 7, 35, 139, 1001, 5701, 53109, 402985, 4605271 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Same as A147681.
LINKS
EXAMPLE
For n = 3, the 3 permutations are (2,3,1), (3,1,2) and (3,2,1).
PROG
(PARI) a(n) = {nbok = 0; avg = (n+1)/2; for (j = 1, n!, perm = numtoperm(n, j); ok = 1; for (k = 1, n, if (sum(j=1, k, perm[j])/k < avg, ok = 0; break; ); ); if (ok, nbok++); ); nbok; } \\ Michel Marcus, Aug 12 2013
CROSSREFS
Sequence in context: A328420 A336012 A212417 * A147681 A055487 A121130
KEYWORD
nonn,more
AUTHOR
N. Sato, Oct 22 2008
EXTENSIONS
a(7)-a(11) from Michel Marcus, Aug 12 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 3 05:44 EDT 2024. Contains 372205 sequences. (Running on oeis4.)