login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A280062 a(n) = A049502(A000142(n)). 3
0, 0, 0, 0, 0, 0, 13, 16, 22, 38, 47, 73, 60, 127, 160, 166, 194, 249, 348, 345, 359, 497, 532, 682, 709, 727, 1000, 887, 1312, 1155, 1297, 1934, 2069, 1722, 1796, 2148, 2337, 1839, 2595, 2774, 2440, 3314, 3450, 3253, 3379, 3786, 4466, 4366, 4795, 5189, 5598 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,7

COMMENTS

a(n) is the major index (2nd definition) of n!.

LINKS

Indranil Ghosh, Table of n, a(n) for n = 0..10000

EXAMPLE

for n=15, A000142(n) = 1307674368000 and A049502(1307674368000) = 166. So a(n) = 166.

PROG

(Python)

import math

def m(N):

    x=bin(int(N))[2:][::-1]

    s=0

    for i in range(1, len(x)):

        if x[i-1]=="1" and x[i]=="0":

            s+=i

    return s

a=lambda n: m(math.factorial(n))

CROSSREFS

Cf. A049502, A000142.

Sequence in context: A159975 A110623 A163674 * A132947 A205876 A056663

Adjacent sequences:  A280059 A280060 A280061 * A280063 A280064 A280065

KEYWORD

nonn

AUTHOR

Indranil Ghosh, Jan 04 2017

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 27 19:04 EDT 2020. Contains 337388 sequences. (Running on oeis4.)