FACTOID # 180: Armenia was the first nation to formally adopt Christianity, and today has one of the few Christian cultures to still sacrifice animals on Sunday.
 
 Home   Encyclopedia   Statistics   Countries A-Z   Flags   Maps   Education   Forum   FAQ   About 
 
WHAT'S NEW
RELATED ARTICLES
People who viewed "Factoradic" also viewed:
RECENT ARTICLES
More Recent Articles »
 

Encyclopedia > Factoradic

The factorial based radix or factoradic is a factorial based mixed radix numeral scheme:

 radix: 5! 4! 3! 2! 1! decimal: 120 24 6 2 1 

In this numbering system, the rightmost digit may be 0 or 1, the next 0, 1, or 2, and so on. The numbers from 0 to 24 are

 decimal factoradic 0 0 1 1 2 10 3 11 4 20 5 21 6 100 7 101 8 110 9 111 10 120 11 121 12 200 13 201 14 210 15 211 16 220 17 221 18 300 19 301 20 310 21 311 22 320 23 321 24 1000 

For another example, the biggest number that could be represented with five digits would be 54321 which equals 719 in decimal:

5×5!+4×4!+3×3!+2×2!+1×1!.

It might not be clear at first sight but factorial based numbering system is also unambiguous. No number can be represented by more than one way because the sum of respective factorials multiplied by the index is always the next factorial minus one:

 sum_{i=1}^{n} {i.i!} = {(n+1)!} - 1.

This can be easily proved with mathematical induction.


There is a natural mapping between the integers 1 .. n! (or equivalently the factoradic numbers with (n-1) digits) and permutations of n elements in lexicographic order, when the integers are expressed in factoradic form. For example, with n=3, such a mapping is

 decimal factoradic permutation 0 00 (0,1,2) 1 01 (0,2,1) 2 10 (1,0,2) 3 11 (2,0,1) 4 20 (1,2,0) 5 21 (2,1,0) 

where the leftmost factoradic digit (0..2) specifies the placement of the 0 in the permutation, the rightmost digit (0..1) specifies the placement of the 1 in the remaining two possible locations, and the 2 is put in the last open location in the permutation list.


A similar concept, combinadics, can be used to find combinations.


External links


  Results from FactBites:
 
PlanetMath: unambiguity of factorial base representation (178 words)
is the factoradic representation of a positive integer
Cross-references: property, digits, infinite descent, complete, without loss of generality, side, bound, definition, representation, factoradic, telescoping sum, equation, limit, sum, integers, positive
This is version 11 of unambiguity of factorial base representation, born on 2007-01-30, modified 2007-01-31.
Science Fair Projects - Factoradic (699 words)
Factoradics provide a lexicographical index for permutations, so they have potential application to computer security.
The second factoradic digit if "0" then selects for the second permutation digit the first (0-indexed) digit from the shorter list and removes it, or if "1" selects the second (1-indexed) digit from the shorter list and removes it.
The third factoradic digit must be "0", but by now the list is only one item long, so that last remaining item is selected as the last permutation digit.
  More results at FactBites »

 

COMMENTARY     


Share your thoughts, questions and commentary here
Your name
Your location
Your comments
Please enter the 5-letter protection code


Lesson Plans | Student Area | Student FAQ | Reviews | Press Releases |  Feeds | Contact
The Wikipedia article included on this page is licensed under the GFDL.
Images may be subject to relevant owners' copyright.
All other elements are (c) copyright NationMaster.com 2003-5. All Rights Reserved.
Usage implies agreement with terms.