• Nem Talált Eredményt

A RELATION BETWEEN INVERSION NUMBER AND LEXICOGRAPHIC ORDERING OF

N/A
N/A
Protected

Academic year: 2022

Ossza meg "A RELATION BETWEEN INVERSION NUMBER AND LEXICOGRAPHIC ORDERING OF "

Copied!
3
0
0

Teljes szövegt

(1)

A RELATION BETWEEN INVERSION NUMBER AND LEXICOGRAPHIC ORDERING OF

PERMUTATIONS

By L. BALCZA

Department of Civil Engineering Mathematics, Technical University, Budapest, H-1521 (Received: June 15, 1981)

Presented by Prof. Dr. J. Reimann

Summary

Relation between serial number of permutations in lexicographic order and in,"ersion number of the considered permutations is examined. The finally resulting formula is all appli- cation of writing an arbitrary integer number in factorial notation.

The pToblem mentioned above is important in both theoretical and applied mathematicE'.

The aim of this papeT is to determine the number of inveTsions in an aTbitrary permutation on the hasis of the serial number of the permutation in lexicographic order, without writing down the permutation itself.

The suggested theorem is introduced by some notations and definitions and then it will be proved.

Let PN denote the set of permutations of the finite set N. For any

=-r: E P1\" I(=-r:) denotes the number of inversion in n. Further let l(;r) denote the serial numher of permutation n E

P

N in the lexicographic list of all permu- tations of N.

Definition: Let 1 bo' b1, b2 , • • • be a monotonieally increasing sequence of natural numbers. Any natural numher n can he written in a unique form as

k

2:

aibi

i=O

where the a i are non-negative integer numbers and for every i, aib i <" bi+-l'

The set a", ... , a o is called the form of n in the system of base numbers

(b1, b2 , • • • ) while numhers ai are the digits of the form in question. If needed,

number n is allowed to be written in the form 0,0, ... ,0, a", ... , a o (in case it seems useful to write all numbers hy as many numerals. The case b1

=

b2

= ... =

10 is the common decimal writing of the natural numhers.) Definition: In the special case bi = (i 1) !, the writing in the system :If base numbers (2!, 3

!, ... ),

is called briefly factorial notation.

(2)

86 RJLCZA

Theorem:

Let

n

E

P

N be an arbitrary permutation and the form of l(n) - 1

be ak, . · · , Cl 0 in factorial notation.

Then

/;

(1) I(n)

= 2

at·

1=0

Proof:

The theorem will be proved by induction on the number

!N!

of elements in the set

N.

Cases

[N!

=

1,2

are trivial.

Let

iNI

=

n> 2

and for the sake of simplicity,

N

=

{I, 2, ... , n}.

Let us consider a permutation

n

= (i,

j2' •.• , jn) E

P

N•

As the fh'st element in :-z: is i, therefore (i - l)(n -

1)

!

<

l(n) -

1 <

i(n -

I)!,

consequently the first digit of (1) in factorial notation is i - I (the total number of digits n - 1; starting a number with zeros is allowed). Let us consider the function

f(k)

=

{k'

k -

1,

defined on the set Nj

{i}.

Then

if if

k<i k>i

(2)

l(n) -

1

= (i - l)(n -

1)

!

+

(l(n') -

1),

where 7/:' stands for the permutation

(N'

=

{I, 2, ... ,

n -

I}).

As i forms an inversion with i - I elements on the first place of n (namely with elements 1, ... , i - I ) therefore

(3)

On the other hand, (4)

Since

n'

E PN , and N' = n - 1, we can assume by induction:

n-3

(5) I(n') =

2

Ct

t=O

where cn -3 ' • • • , Co means l(n') - 1 in the factorial notation.

According to (2) and taking also (5) into consideration:

11-3

l(n) - 1 = (i - l)(n 1) !

+ 2

c/(t

+

1) !.

(=0

Hence l(n) - 1 is seen to be written in factorial notation as i - I , cn - 3' C,,_4'

••. , co'

(3)

PERMUTATIONS 87

Its digits sum up to

n-3 (5) (4)

i - I ~ Cl = (i -

1) + I(n')

= i - I

+ I«j2' .. . ,jn»)

=

I(n).

1=0

Q.E.D.

References

1. Kl'ROS, A. G.: A Course in Higher Algebra (in Russian). Moscow, 1959 2. REDEI, L.: Algebra. (In Hungarian) Budapest, 1954.

3. BIRKHOFF, G.-BARTEE, T. C.: Modern Applied Algebra. YlcGraw-Hill, New York, etc.

1970

Lajos

BALCZA,

H-1521,

Budapest

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

In the last step we integrated the binary maps resulting from the radar phase and the multispectral work phase. The number of these maps is determined by the number of satellite

In the last step we integrated the binary maps resulting from the radar phase and the multispectral work phase. The number of these maps is determined by the number of satellite

As far as the relationship between chemical structure of stilbene compounds and their antistaphylococcal effects is considered, our results suggest that the position and the number

Ver- tical wire segments on the 1st and 3rd layers coming from the northern and southern members of a net N i can be interconnected by means of a single wire segment with the

Between 1987 and 1995 in the 12 early member states of the EU, the number of farms decreased by 20 per cent, solely as a result of a reduction in the total number of holdings of

The present paper gives a new proof of the above statements and determines the number of such permutations having exactly n + 1 inversions.. Keywords:

It is kno'wn [2] that the minimum number of similarity invariants is the difference between the number of the physical quantities necessary to describe the

What is the relation between the volume and the pressure in an adiabatic reversible process of an ideal