Parasitic Number
   HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, an ''n''-parasitic number (in
base 10 The decimal numeral system (also called the base-ten positional numeral system and denary or decanary) is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers (''decimal fractions'') of t ...
) is a positive
natural number In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
which, when multiplied by ''n'', results in movement of the last digit of its
decimal representation A decimal representation of a non-negative real number is its expression as a sequence of symbols consisting of decimal digits traditionally written with a single separator: r = b_k b_\cdots b_0.a_1a_2\cdots Here is the decimal separator, ...
to its front. Here ''n'' is itself a single-digit positive natural number. In other words, the decimal representation undergoes a right
circular shift In combinatorial mathematics, a circular shift is the operation of rearranging the entries in a tuple, either by moving the final entry to the first position, while shifting all other entries to the next position, or by performing the inverse ope ...
by one place. For example: :4 × 128205 = 512820, so 128205 is 4-parasitic. Most mathematicians do not allow
leading zero A leading zero is any 0 digit that comes before the first nonzero digit in a number string in positional notation.. For example, James Bond's famous identifier, 007, has two leading zeros. Any zeros appearing to the left of the first non-zero dig ...
s to be used, and that is a commonly followed convention. So even though 4 × 25641 = 102564, the number 25641 is ''not'' 4-parasitic.


Derivation

An ''n''-parasitic number can be derived by starting with a digit ''k'' (which should be equal to ''n'' or greater) in the rightmost (units) place, and working up one digit at a time. For example, for ''n'' = 4 and ''k'' = 7 :4 × 7 = 28 :4 × 87 = 348 :4 × 487 = 1948 :4 × 9487 = 37948 :4 × 79487 = 317948 :4 × 179487 = 717948. So 179487 is a 4-parasitic number with units digit 7. Others are 179487179487, 179487179487179487, etc. Notice that the
repeating decimal A repeating decimal or recurring decimal is a decimal representation of a number whose digits are eventually periodic (that is, after some place, the same sequence of digits is repeated forever); if this sequence consists only of zeros (that i ...
:x=0.179487179487179487\ldots=0.\overline \mbox4x=0.\overline=\frac. Thus :4x=\frac \mbox x=\frac. In general, an ''n''-parasitic number can be found as follows. Pick a one digit integer ''k'' such that , and take the period of the
repeating decimal A repeating decimal or recurring decimal is a decimal representation of a number whose digits are eventually periodic (that is, after some place, the same sequence of digits is repeated forever); if this sequence consists only of zeros (that i ...
''k''/(10''n''−1). This will be \frac(10^m-1) where ''m'' is the length of the period; i.e. the
multiplicative order In number theory, given a positive integer ''n'' and an integer ''a'' coprime to ''n'', the multiplicative order of ''a'' modulo ''n'' is the smallest positive integer ''k'' such that a^k\ \equiv\ 1 \pmod n. In other words, the multiplicative orde ...
of 10
modulo In computing and mathematics, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another, the latter being called the '' modulus'' of the operation. Given two positive numbers and , mo ...
. For another example, if ''n'' = 2, then 10''n'' − 1 = 19 and the repeating decimal for 1/19 is : \frac=0.\overline. So that for 2/19 is double that: : \frac=0.\overline. The length ''m'' of this period is 18, the same as the order of 10 modulo 19, so = 105263157894736842. 105263157894736842 × 2 = 210526315789473684, which is the result of moving the last digit of 105263157894736842 to the front.


Additional information

The step-by-step derivation algorithm depicted above is a great core technique but will not find all n-parasitic numbers. It will get stuck in an infinite loop when the derived number equals the derivation source. An example of this occurs when n = 5 and k = 5. The 42-digit n-parasitic number to be derived is 102040816326530612244897959183673469387755. Check the steps in Table One below. The algorithm begins building from right to left until it reaches step 15—then the infinite loop occurs. Lines 16 and 17 are pictured to show that nothing changes. There is a fix for this problem, and when applied, the algorithm will not only find all ''n''-parasitic numbers in base ten, it will find them in base 8 and base 16 as well. Look at line 15 in Table Two. The fix, when this condition is identified and the ''n''-parasitic number has not been found, is simply to not shift the product from the multiplication, but use it as is, and append ''n'' (in this case 5) to the end. After 42 steps, the proper parasitic number will be found.


Table One


Table Two

There is one more condition to be aware of when working with this algorithm, leading zeros must not be lost. When the shift number is created it may contain a leading zero which is positionally important and must be carried into and through the next step. Calculators and computer math methods will remove leading zeros. Look at Table Three below displaying the derivation steps for ''n'' = 4 and ''k'' = 4. The Shift number created in step 4, 02564, has a leading zero which is fed into step 5 creating a leading zero product. The resulting Shift is fed into Step 6 which displays a product proving the 4-parasitic number ending in 4 is 102564.


Table Three


Smallest ''n''-parasitic numbers

The smallest ''n''-parasitic numbers are also known as Dyson numbers, after a puzzle concerning these numbers posed by
Freeman Dyson Freeman John Dyson (15 December 1923 – 28 February 2020) was a British-American theoretical physics, theoretical physicist and mathematician known for his works in quantum field theory, astrophysics, random matrix, random matrices, math ...
.. They are: (leading zeros are not allowed)


General note

In general, if we relax the rules to allow a leading zero, then there are 9 ''n''-parasitic numbers for each ''n''. Otherwise only if ''k'' ≥ ''n'' then the numbers do not start with zero and hence fit the actual definition. Other ''n''-parasitic integers can be built by concatenation. For example, since 179487 is a 4-parasitic number, so are 179487179487, 179487179487179487 etc.


Other bases

In
duodecimal The duodecimal system, also known as base twelve or dozenal, is a positional numeral system using twelve as its base. In duodecimal, the number twelve is denoted "10", meaning 1 twelve and 0 units; in the decimal system, this number is i ...
system, the smallest ''n''-parasitic numbers are: (using inverted two and three for ten and eleven, respectively) (leading zeros are not allowed)


Strict definition

In strict definition, least number ''m'' beginning with 1 such that the quotient ''m''/''n'' is obtained merely by shifting the leftmost digit 1 of ''m'' to the right end are :1, 105263157894736842, 1034482758620689655172413793, 102564, 102040816326530612244897959183673469387755, 1016949152542372881355932203389830508474576271186440677966, 1014492753623188405797, 1012658227848, 10112359550561797752808988764044943820224719, 10, 100917431192660550458715596330275229357798165137614678899082568807339449541284403669724770642201834862385321, 100840336134453781512605042016806722689075630252, ... They are the period of ''n''/(10''n'' − 1), also the period of the decadic integer -''n''/(10''n'' − 1). Number of digits of them are :1, 18, 28, 6, 42, 58, 22, 13, 44, 2, 108, 48, 21, 46, 148, 13, 78, 178, 6, 99, 18, 8, 228, 7, 41, 6, 268, 15, 272, 66, 34, 28, 138, 112, 116, 179, 5, 378, 388, 18, 204, 418, 6, 219, 32, 48, 66, 239, 81, 498, ...


See also

* Cyclic number *
Linear-feedback shift register In computing, a linear-feedback shift register (LFSR) is a shift register whose input bit is a Linear#Boolean functions, linear function of its previous state. The most commonly used linear function of single bits is exclusive-or (XOR). Thus, ...
* Transposable integer


Notes


References

* C. A. Pickover, ''Wonders of Numbers'', Chapter 28,
Oxford University Press Oxford University Press (OUP) is the publishing house of the University of Oxford. It is the largest university press in the world. Its first book was printed in Oxford in 1478, with the Press officially granted the legal right to print books ...
UK, 2000. * Sequence in the
On-Line Encyclopedia of Integer Sequences The On-Line Encyclopedia of Integer Sequences (OEIS) is an online database of integer sequences. It was created and maintained by Neil Sloane while researching at AT&T Labs. He transferred the intellectual property and hosting of the OEIS to th ...
. * {{Classes of natural numbers Base-dependent integer sequences