OFFSET
1,4
COMMENTS
Unsorted prime signature (A124010) is the sequence of exponents in a number's prime factorization.
The k-th composition in standard order (row k of A066099) is obtained by taking the set of positions of 1's in the reversed binary expansion of k, prepending 0, taking first differences, and reversing again. This gives a bijective correspondence between nonnegative integers and integer compositions.
FORMULA
EXAMPLE
The unsorted prime signature of 12345678 is (1,2,1,1), whose reverse (1,1,2,1) is the 29th composition in standard order, so a(12345678) = 29.
MATHEMATICA
stcinv[q_]:=Total[2^Accumulate[Reverse[q]]]/2;
Table[stcinv[Reverse[Last/@If[n==1, {}, FactorInteger[n]]]], {n, 100}]
CROSSREFS
Positions of first appearances are A334031.
The non-reversed version is A334032.
Unsorted prime signature is A124010.
Least number with reversed prime signature is A331580.
All of the following pertain to compositions in standard order (A066099):
- Length is A000120.
- Sum is A070939.
- Strict compositions are A233564.
- Constant compositions are A272919.
- Aperiodic compositions are A328594.
- Normal compositions are A333217.
- Permutations are A333218.
- Heinz number is A333219.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 18 2020
STATUS
approved