Transposable integer
In mathematics, the transposable integers are integers that permute or shift cyclically when they are multiplied by another integer. Examples are:
- 142857 × 3 = 428571
- 142857 × 5 = 714285
- 128205 × 4 = 512820
- 076923 × 9 = 692307
General
For any integer coprime to 10, its reciprocal is a repeating decimal without any non-recurring digits. E.g. = 0.006993006993006993...While the expression of a single series with vinculum on top is adequate, the intention of the above expression is to show that the six cyclic permutations of 006993 can be obtained from this repeating decimal if we select six consecutive digits from the repeating decimal starting from different digits.
This illustrates that cyclic permutations are somehow related to repeating decimals and the corresponding fractions.
The greatest common divisor (gcd) between any cyclic permutation of an m-digit integer and 10m − 1 is constant. Expressed as a formula,
where N is an m-digit integer; and Nc is any cyclic permutation of N.
For example,
gcd = gcd
= 3663
= gcd
= gcd
= gcd
= gcd
= gcd
If N is an m-digit integer, the number Nc, obtained by shifting N to the left cyclically, can be obtained from:
where d is the first digit of N and m is the number of digits.
This explains the above common gcd and the phenomenon is true in any base if 10 is replaced by b, the base.
The cyclic permutations are thus related to repeating decimals, the corresponding fractions, and divisors of 10m−1. For examples the related fractions to the above cyclic permutations are thus:
- ,,,,, and.
- ,,,,, and.
Fraction method
Integral multiplier
An integral multiplier refers to the multiplier n being an integer:- An integer X shift right cyclically by k positions when it is multiplied by an integer n. X'' is then the repeating digits of, whereby F is F0 = n 10k − 1, or a factor of F0; excluding any values of F which are not more than n.
- An integer X shift left cyclically by k positions when it is multiplied by an integer n. X'' is then the repeating digits of, whereby F is F0 = 10k - n, or a factor of F0; excluding any values of F which are not more than n and which are not coprime to 10.
For these two cases, multiples of X, i.e. are also solutions provided that the integer i satisfies the condition < 1. Most often it is convenient to choose the smallest F that fits the above.
The solutions can be expressed by the formula:
To exclude integers that begin with zeros from the solutions, select an integer j such that >, i.e. j >.
There is no solution when n > F.
Fractional multiplier
An integer X shift left cyclically by k positions when it is multiplied by a fraction . X is then the repeating digits of, whereby F is F0 = s 10k - n, or a factor of F0; and F must be coprime to 10.For this third case, multiples of X, i.e. are again solutions but the condition to be satisfied for integer j is that < 1. Again it is convenient to choose the smallest F that fits the above.
The solutions can be expressed by the formula:
To exclude integers that begin with zeros from the solutions, select an integer j such that >, i.e. j >.
Again if > 1, there is no solution.
Direct representation
The direct algebra approach to the above cases integral multiplier lead to the following formula:- :where m is the number of digits of X, and D, the k-digit number shifted from the low end of X to the high end of n ''X, satisfies D'' < 10k.
- :If the numbers are not to have leading zeros, then n 10k − 1 ≤ D.
- :where m is the number of digits of X, and D, the k-digit number shifted from the high end of X to the low end of n ''X, satisfies:
- :#
- :#and the 10-part of 10k'' − n divides D.
- :#:The 10-part of an integer t is often abbreviated
- :If the numbers are not to have leading zeros, then 10k − 1 ≤ D.
Cyclic permutation by multiplication
A long division of 1 by 7 gives:0.142857...
7 ) 1.000000
.7
3
28
2
14
6
56
4
35
5
49
1
At the last step, 1 reappears as the remainder. The cyclic remainders are. We rewrite the quotients with the corresponding dividend/remainders above them at all the steps:
Dividend/Remainders 1 3 2 6 4 5
Quotients 1 4 2 8 5 7
and also note that:
- = 0.142857...
- = 0.428571...
- = 0.285714...
- = 0.857142...
- = 0.571428...
- = 0.714285...
- The integer 142857, corresponding to remainder 1, permutes to 428571 when multiplied by 3, the corresponding remainder of the latter.
- The integer 142857, corresponding to remainder 1, permutes to 857142 when multiplied by 6, the corresponding remainder of the latter.
- The integer 857142, corresponding to remainder 6, permutes to 571428 when multiplied by ; i.e. divided by 6 and multiplied by 5, the corresponding remainder of the latter.
Less importantly, this technique can be applied to any integer to shift cyclically right or left by any given number of places for the following reason:
- Every repeating decimal can be expressed as a rational number.
- Every integer, when added with a decimal point in front and concatenated with itself infinite times, can be converted to a fraction, e.g. we can transform 123456 in this manner to 0.123456123456..., which can thus be converted to fraction. This fraction can be further simplified but it will not be done here.
- To permute the integer 123456 to 234561, all one needs to do is to multiply 123456 by. This looks like cheating but if is a whole number, the mission is completed.
Proof of formula for cyclical right shift operation
An integer X shift cyclically right by k positions when it is multiplied by an integer n. Prove its formula.Proof
First recognize that X is the repeating digits of a repeating decimal, which always possesses cyclic behavior in multiplication. The integer X and its multiple n X then will have the following relationship:
- The integer X is the repeating digits of the fraction, say dpdp-1...d3d2d1, where dp, dp-1,..., d3, d2 and d1 each represents a digit and p is the number of digits.
- The multiple n X is thus the repeating digits of the fraction, say dkdk-1...d3d2d1dpdp-1...dk+2dk+1, representing the results after right cyclical shift of k positions.
- F must be coprime to 10 so that when is expressed in decimal there is no preceding non-repeating digits otherwise the repeating decimal does not possess cyclic behavior in multiplication.
- If the first remainder is taken to be n then 1 shall be the st remainder in the long division for in order for this cyclic permutation to take place.
- In order that n × 10k = 1 then F shall be either F0 =, or a factor of F0; but excluding any values not more than n and any value having a nontrivial common factor with 10, as deduced above.
Proof of formula for cyclical left shift operation
An integer X shift cyclically left by k positions when it is multiplied by an integer n. Prove its formula.Proof
First recognize that X is the repeating digits of a repeating decimal, which always possesses a cyclic behavior in multiplication. The integer X and its multiple n X then will have the following relationship:
- The integer X is the repeating digits of the fraction, say dpdp-1...d3d2d1.
- The multiple n X is thus the repeating digits of the fraction, say dp-kdp-k-1...d3d2d1dpdp-1...dp-k+1,
- F must be coprime to 10 so that has no preceding non-repeating digits otherwise the repeating decimal does not possesses cyclic behavior in multiplication.
- If the first remainder is taken to be 1 then n shall be the st remainder in the long division for in order for this cyclic permutation to take place.
- In order that 1 × 10k = n then F shall be either F0 =, or a factor of F0; but excluding any value not more than n, and any value having a nontrivial common factor with 10, as deduced above.
Shifting an integer cyclically
The permutations can be:- Shifting right cyclically by single position ;
- Shifting right cyclically by double positions;
- Shifting right cyclically by any number of positions;
- Shifting left cyclically by single position;
- Shifting left cyclically by double positions; and
- Shifting left cyclically by any number of positions
Parasitic numbers
When a parasitic number is multiplied by n, not only it exhibits the cyclic behavior but the permutation is such that the last digit of the parasitic number now becomes the first digit of the multiple. For example, 102564 x 4 = 410256. Note that 102564 is the repeating digits of and 410256 the repeating digits of.Shifting right cyclically by double positions
An integer X shift right cyclically by double positions when it is multiplied by an integer n. X is then the repeating digits of, whereby = n × 102 - 1; or a factor of it; but excluding values for which has a period length dividing 2 ; and must be coprime to 10.Most often it is convenient to choose the smallest that fits the above.
Summary of results
The following multiplication moves the last two digits of each original integer to the first two digits and shift every other digits to the right:| Multiplier n | Solution | Represented by | Other Solutions |
| 2 | 0050251256 2814070351 7587939698 4924623115 5778894472 3618090452 2613065326 6331658291 4572864321 608040201 | x 2 = period = 99 i.e. 99 repeating digits. | ,,..., |
| 3 | 0033444816 0535117056 8561872909 6989966555 1839464882 9431438127 090301 | x 3 = period = 66 299 = 13×23 | ,,..., some special cases are illustrated below |
| 3 | 076923 | x 3 = period = 6 | ,, |
| 3 | 0434782608 6956521739 13 | x 3 = period = 22 | ,,..., |
| 4 | 0025062656 64160401 | x 4 = period = 18 399 = 3×7×19 | ,,..., some special cases are illustrated below |
| 4 | 142857 | x 4 = period = 6 | - |
| 4 | 0526315789 47368421 | x 4 = period = 18 | ,, |
| 5 | x 5 = 499 is a full reptend prime | ,,..., |
Note that:
- 299 = 13 x 23, and the period of is accurately determined by the formula, LCM = 66, according to Repeating decimal#Generalization.
- 399 = 3 x 7 x 19, and the period of is accurately determined by the formula, LCM = 18.
Shifting left cyclically by single position
Problem: An integer X shift left cyclically by single position when it is multiplied by 3. Find X.Solution:
First recognize that X is the repeating digits of a repeating decimal, which always possesses some interesting cyclic behavior in multiplications.
The integer X and its multiple then will have the following relationship:
- The integer X is the repeating digits of the fraction, say ab***.
- The multiple is thus the repeating digits of the fraction, say b***a.
- In order for this cyclic permutation to take place, then 3 shall be the next remainder in the long division for. Thus shall be 7 as 1 × 10 ÷ 7 gives remainder 3.
The other solution is represented by x 3 = :
- 285714 x 3 = 857142
- Integer n must be the subsequent remainder in a long division of a fraction. Given that n = 10 - F, and F is coprime to 10 in order for to be a repeating decimal, then n shall be less than 10.
- For n = 2, F must be 10 - 2 = 8. However does not generate a repeating decimal, similarly for n = 5.
- For n = 7, F must be 10 - 7 = 3. However 7 > 3 and = 2.333 > 1 and does not fit the purpose.
- Similarly there is no solution for any other integer of n less than 10 except n = 3.
The following summarizes some of the results found in this manner:
| Multiplier | Solution | Represented by | Other Solutions |
| 105263157894736842 | × = A 2-parasitic number | Other 2-parasitic numbers: ,,,,,,, | |
| 1176470588235294 | × = | ,,, | |
| 153846 | × = | - | |
| 18 | × = | - | |
| 1304347826086956521739 | × = | ,,,,, | |
| 190476 | × = | - |
Shifting left cyclically by double positions
An integer X shift left cyclically by double positions when it is multiplied by an integer n. X is then the repeating digits of, whereby is = 102 - n, or a factor of ; excluding values of for which has a period length dividing 2 ; and F must be coprime to 10.Most often it is convenient to choose the smallest that fits the above.
Summary of results
The following summarizes some of the results obtained in this manner, where the white spaces between the digits divide the digits into 10-digit groups:| Multiplier n | Solution | Represented by | Other Solutions |
| 2 | 142857 | × 2 = | , |
| 3 | 0103092783 5051546391 7525773195 8762886597 9381443298 9690721649 4845360824 7422680412 3711340206 185567 | x 3 = | ,,,,....,, |
| 4 | No solution | - | - |
| 5 | 0526315789 47368421 | x 5 = | , |
| 6 | 0212765957 4468085106 3829787234 0425531914 893617 | x 6 = | ,,,,, |
| 7 | 0322580645 16129 | x 7 = | ,, ,,,,,,,, |
| 8 | 0434782608 6956521739 13 | x 8 = | |
| 9 | 076923 | x 9 = | ,,,,,,,, |
| 10 | No solution | - | - |
| 11 | 0112359550 5617977528 0898876404 4943820224 7191 | x 11 = | ,,,,,, |
| 12 | No solution | - | - |
| 13 | 0344827586 2068965517 24137931 | x 13 = | ,,,, |
| 14 | 0232558139 5348837209 3 | x 14 = | , |
| 15 | 0588235294 117647 | x 15 = | - |
Other bases
In duodecimal system, the transposable integers are:| Multiplier n | Smallest solution such that the multiplication moves the last digit to left | Digits | Represented by | Smallest solution such that the multiplication moves the first digit to right | Digits | Represented by |
| 2 | 06316948421 | Ɛ | x 2 = | 2497 | 4 | x 2 = |
| 3 | 2497 | 4 | x 3 = | no solution | ||
| 4 | 0309236ᘔ8820 61647195441 | 1Ɛ | x 4 = | no solution | ||
| 5 | 025355ᘔ94330 73ᘔ458409919 Ɛ7151 | 25 | x 5 = | 186ᘔ35 | 6 | x 5 = |
| 6 | 020408142854 ᘔ997732650ᘔ1 83469163061 | 2Ɛ | x 6 = | no solution | ||
| 7 | 01899Ɛ864406 Ɛ33ᘔᘔ1542391 374594930525 5Ɛ171 | 35 | x 7 = | no solution | ||
| 8 | 076Ɛ45 | 6 | x 8 = | no solution | ||
| 9 | 014196486344 59Ɛ9384Ɛ26Ɛ5 33040547216ᘔ 1155Ɛ3Ɛ12978 ᘔ3991 | 45 | x 9 = | no solution | ||
| ᘔ | 08579214Ɛ364 29ᘔ7 | 14 | x ᘔ = | no solution | ||
| Ɛ | 011235930336 ᘔ53909ᘔ873Ɛ3 25819Ɛ997505 5Ɛ54ᘔ3145ᘔ42 694157078404 491Ɛ1 | 55 | x Ɛ = | no solution |
Note that the “Shifting left cyclically by single position” problem has no solution for the multiplier less than 12 except 2 and 5, the same problem in decimal system has no solution for the multiplier less than 10 except 3.