You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Divisibility for all divisors relative prime to 10

From EverybodyWiki Bios & Wiki





Script error: No such module "Draft topics". Script error: No such module "AfC topic".

[1]

Description[edit]

A method for testing the divisibility of a number for all divisors that are relatively prime to is described and mathematically justified. The method has two advantages. First it works for a large infinite set of divisors. Secondly, it also provides instructions on how to determine the required multiplier by mental arithmetic. Divisors d are considered that have no proper common divisors with the natural number . For such divisors, divisibility criteria are presented that primarily support divisibility questions using mental arithmetic and are adapted to the decimal representation of the number under test. The assertion that is divisible is by is expressed by and means is relative prime to also known as coprime . The greatest common divisor of is denoted by . The task of deciding whether divides the number is is abbreviated to .

Divisibility criteria of the following kind of transition are considered:

Multiply the right-hand digit of the number to be tested by a multiplier and add the result to the number formed by the remaining left-hand digits.

As an example is the assertion: divides . For the divisor the multiplier is suitable. The result of transition is and therefore . Such a divisibility test contains a human component. The user decides at his own discretion when he considers the divisibility to be tested to be decided positively or negatively. A computer would probably not be entrusted with such a decision.

A general approach to this kind of transition is given in Tests for divisibility[2]. The multipliers in it differ in part from those in Mapping .

First of all, let the divisors be characterised that are relatively prime to . Let it be the value of the right-hand digit of . Then is relatively prime to if and only if . To justify this, let it be said that the other possible right-hand digits would entail the divisibility of by or . Such divisors can therefore not be relatively prime to . Conversely, divisors with never leave the remainder when dividing by . All primes except 2 and 5 are relatively prime to and therefore belong as divisors to the present topic. One can say that these are 40% of all positive numbers. In any case, that is an infinite number. The set of such divisors is closed under multiplication and for a factorisation is only possible if because each factor in turn can only have prime factors . Such a factorisation does not have to be unique.

This article is a modified and translated version of a german version: de:Teilbarkeit für alle zu 10 teilerfremden Divisoren. The translation was done by the author of the german version.

Mathematical formalisation[edit]

Let be the set of integers respectively reals. Two functions are defined:

Quotient of if divided with remainder by
Remainder of if divided by

where is the largest integer . From definition of follows immediately

.

 

 

 

 

(composition-dec)

Think of the pair as of .

Both functions model the "remaining left-hand digits", "right-hand digit" in kind of transition.

A complete verbal description of the function is:

On the domain of definition the function is a monotonically increasing staircase function with consecutive identical values each. The jump points to a higher value are the multiples of . The jump height is the value and it holds .

The monotonicity of follows almost directly from the monotonicity of the floor function by the following chain of conclusions:

 

 

 

 

(monotonicity-l())

Since by Division with remainder for any integer there is a representation it results in

and these are the consecutive identical values for fixed .

Example: l(−17) = −2 because is the largest integer and because .

For nonnegative integers n the matter is more simple:

If is the decimal representation of a nonnegative integer with digits then where the right-hand digit is throwing away and ,
if is a single-digit nonnegative number.

Example: (27) = 2 because is the largest integer and because .

For there are the following conversions (based on the definitions):

 

 

 

 

(conversion-l())

 

 

 

 

(conversion-r())

The conversions work equally for nonnegative and negative .

Partial sum of digits and divisibility[edit]

Test functions are now considered with a multiplier that has not yet been determined.

This designation already indicates that for various divisors the multiplier is dependent on the divisor , that means it is specialized on the divisor d.

Functions of this type are to be called partial sum of digits.

It is required of such a function that applies:

where means the logical "if and only if" relation. This is the meaning of divisibility criterion: The function transfers the truth value of the assertion unchanged to the truth value of the assertion , regardless of whether the assertion is true or false. The purpose of (apart from being a divisibility criterion) is to improve the recognisability of divisibility by d for a human user. An algorithm is now described which, given a divisor , determines the multiplier and is even simple enough to be mental executable in one's head.

A comparable approach is used in Tests for divisibility by prime numbers, but in comparison to the to Mapping other multipliers are used. [3]

Algorithm for determining the multiplier[edit]

To determine the multiplier from a given divisor use following steps and prefer mental arithmetic in doing so:

  1. Consider in this order and check if .
  2. Go to only if this condition is not already fulfilled for .
  3. Set

The division in step 3. is achievable without remainder. With this algorithm you end up with for at the latest for . This is based on the fact that for membership is present because of . The results of this algorithm are now presented as a table.

Table 1 Mapping

The values in the last row are alternative representation of the same values in the row above. This results from the following equations, where composition-dec is throughout used for :

These alternative formulae use as means of expression throughout and therefore offer advantages in mental arithmetic. In particular, the required multiplications with be applied to numbers with a smaller number of digits.

Now except another integer is brought into play with the aim of representing the so-called Bézout's identity for the greatest common divisor of . For this purpose, the individual cases are analysed with reference to Mapping .

Let it be determined according to the following table, whose values are read off from the respective right identity as a factor before .

Table 2 Mapping

One notes that the value of is an inevitable consequence of determining the value of . Thus, the four right identities can be written uniformly in the following form:

 

 

 

 

(basic-equation)

This is the representation of the greatest common divisor (10, d) = 1 known from elementary number theory, also called Bézout's identity.

Theorem about divisibility and partial sum of digits[edit]

Theorem — Let be a divisor relative prime to and specified according to the Mapping .

Then for the partial sum of digits applies:

 

 

 

 

(divisibility-invariance)

Supplement:
Furthermore, if is a product of two factors relatively prime to , then for both divisors applies divisibility-invariance:

With the statement divisibility-invariance , the test function specialized on the divisor d becomes a divisibility criterion that can also be used for testing divisibility mental in the head if, depending on the user, divisors d that are not too large come into play. It should also be noted that in some cases the test functions can also be identical for different ones divisors. This occurs systematically for because . Due to the relationship in divisibility-invariance, the test function can also be applied several times to results that have already been achieved without losing the property of divisibility/indivisibility. This may require increased memorisation by the user in mental arithmetic but it is part of the best practice for such divisibility tests. In any case, the user decides for himself when he considers the divisibility to be decided positively or negatively. The application of reduces the difficulty of recognising whether divisibility holds or not.
The supplement in the theorem means:

In case of the partial sum of digits is usable for three divisibility tasks: .

The divisibility-invariance represented by this theorem is also called Zbikowski’s Divisibility Criterion.[4] and is dated there to the year 1861. See also Divisibility rule § Generalized divisibility rule.

Proof[edit]

The test value n can be expressed by as follows, where composition-dec is used in the middle:

 

 

 

 

(1)

Here, the last equation 1 results from a suitable transformation of the basic-equation: .

With regard to equation 1, it can be argued as follows: The value n is a sum of two summands of which the second summand is a multiple of d. Therefore, divisibility is decided by the divisibility of the first summand:

Finally because d is coprime to 10 it follows:[5]

, which completes the proof(without the supplement).
To complete the proof in case of equation 1 can be written in the form:

Here the second summand on the right-hand side is a multiple of . It follows: with the same argument as in the original case. Of course the same is valid for the second factor .

Definition of iterations of partial sum of digits[edit]

For and fixed following functions are introduced recursively :

These functions model the multiple nested application of to results of itself, for example is . The value n is the initial value and is the value of i-th iteration.

A concrete application is:

because and , where according to Mapping . This is also a matter for mental calculation. The values , which are wandered through during mental divisibility arithmetic with several nested intermediate results, are called mental orbit for the divisibility task . Either one reaches a fixed point in such an orbit or one reach a permutation cycle. Ultimately, one must decide positively or negatively the divisibility task according to one's best judgement. As a rule, it turns out that the divisibility task is easier and easier to decide as the length of the orbit increases. Fortunately the divisibility property depends only from the last member of the orbit. Therefore, a user does not have to remember the whole orbit.

See in Divisibility Tests Unified: Stacking the Trimmings for Sums [6] the section Defining Divisibility Tests where the formalisation of iterations is also described together with some qualitative demands on the test function from which the iterations are formed.

Application examples[edit]

Some examples for the mapping
99 417
1 −2 1 −1 4 −5 2 7 3 −3 10 4 −4 13 5 6 −7 −23 10 −25 −125

Values in the second row are selected from Mapping respectively according to the algorithm for determining the multiplier . This is also a matter for mental arithmetic. See also Divisibility Tests – Making Order out of Chaos [7] for some of theses examples in section The Second Divisibility Test, Table 2.

Some examples for the application of partial sum of digits
228

Values for are taken from Mapping and means divisibility . Indivisibility in the row for follows from −251 < −205 < 0 and -251 < −146 < 0 . For negative test values conversion-r() and conversion-l() are to be applied. The last row reveals a difficulty. The test value does not change when is applied. Although is divisible by , the application of does not result in any recognizable advantage. If the user does not realise by himself that , he cannot gain any new knowledge on the divisibility question. The value is therefore called a fixed point of . Without proof, it should be noted that the integers are exactly the fix points of .

The fix point brake[edit]

This constellation is to be described here in a metaphor as a fix point brake. The fix point hinders the user in recognising divisibility. Fortunately, there is a possibility to release the brake. Consider making the transition . Then it turns out that −n is not a fixed point and the test function recognises −n as divisible by . For this leads to:

where conversion-r() and conversion-l() are to be applied.

Therefore and by divisibility-invariance follows . Finally there is the general valid assertion , which leads to . The same applies to :

Therefore finally and , which is easily recognisable even without applying . The same constellation occurs for all divisors (with the same possibility to release the fix point brake) but this is not to be explained in detail here.

The diagram for releasing the fix point brake:

Examples for the supplement in Theorem about divisibility[edit]

Some examples for the application of the supplement
divisibility decision

Relations to sum of digits[edit]

The well known decimal cross sum , also called total sum of digits, sum of digits of a nonnegative number , written as decimal representation with digits is the value

In comparison, looks (according to ) like this:

where the sum of the digits is only partially executed. This motivates the naming of partial sum of digits for all functions .

The function is a divisibility criterion for and both are relative prime to . For the total sum of digits as well as for one can iteratively apply the operation to all intermediate results. This only leads to new results as long as the previously achieved result is not a decimal single-digit number. From then on, the total sum of digits and the value of remain constant. It can also be proved elementarily that the final single-digit results are identical, although intermediate results usually differ for cross sum and . The final single-digit result is also called digital root.[8]

For example , and . If one iteratively applies these intermediate results several more times, the final result in both cases is . Therefore is not divisible by .

Note finally the congruences for all :

and . These are well known for the cross sum and also valid for because .

The advantage of the cross sum over is that the cross sum reaches the single-digit results with fewer steps.

The role of md in residue class ring ℤ/d[edit]

If basic-equation is written in the form , one can see that is a multiple of . As a congruence this means

Therefore, in ℤ/dℤ the residue class of is the inverse of . It holds , thus . It is well known in elementary number theory, that the coefficients in the basic-equation can be calculated by the Extended Euclidean algorithm. Surprisingly, it turns out that this algorithm gives the same results as the Algorithm for determining the multiplier. Because the coefficients are not unique determined by they can be modified as described in Bézout's_identity. For instance can be replaced by any other member from the same residue class . However, this only guarantees the preservation of divisibility-invariance for the modified test function . An example for such a replacement is the transition . For this results in the modified test function because is mapped to . Obviously, the modified test function for positive values exclusively also yields positive values, which is invalid for the original function . But although , which differs from ; nevertheless both results are divisible by : and . But a replacement would change the permutation property. It is already evident from the example that this does not introduce any new divisibility criteria into the realm of partial sums of digits, because . However, comprehensive conversion formulae of this kind are dispensed with here.

Simple Divisibility Rules for the 1st 1000 Prime Numbers lists divisibility tests for the first 1000 prime numbers, built on the pattern of partial digit sums.[9] Only concrete prime divisors and multipliers are listed. The multipliers there can be described by the following relations:

It follows that all listed multipliers are negativ and belong to the residue class .

Example(the last prime listed): [10]

Partial sum of digits as permutations[edit]

If for the function is considered on the restricted domain of definition the result is a permutation. This is justified by use of in last row in Mapping and by monotonicity-l() as follows.

Let be . Then and leads to:

because according to composition-dec.

Therefore, maps into itself. To check whether is injective, consider two elements and assume . Then it can be assumed without restriction of generality that and we can conclude:

From this it can be seen that is a nonnegative multiple of . Since is monotonally increasing both values are . This yields . Because the value is the only multiple of in this domain, it follows: and also . Finally and because .Then composition-dec yields:

and hence

Therefore is injective and in fact bijective because the domain is a finite set. That means: is a permutation on the restricted domain . It can be seen that are fixed points of :

where for the multiplier is read from (last row,last column) of Mapping . It follows that is also a permutation on . We consider with as an example:

where is used to distinguish the permutation from the partial sum of digits .

For the result is the identity on :

Without detailed elaboration, it may be mentioned that for also determines a permutation on domain equally denoted by . Because are fixpoints, this is also a permutation on domain of definition . An example is given for :

For negative values conversion-r() and conversion-l() are to be applied. These background knowledge about permutations is meaningful for mental calculations with partial sums of digits, to interpret results appropriate with respect to divisibility. The permutation can also contain fixpoints respectively . With one can easily calculate that the set consists of fix points of but all elements , including the fix points contained therein, are not divisible by . This is for a general insight: The inner elements of the domain of definition are to be classified as not divisible. A user can easily decide this according to the criterion where denotes the absolute value of .

For there is also a permutation but with respect to where the domain of definition is determined by :

Consideration these domains of definition requires additional attention from the user.

If the mental arithmetic chain reaches the domain of such a permutation, it is possible to decide the divisibility task (positively or negatively); not only for but for all . Let be the actual value in the (mental) calculation chain for a divisibility task . Typical final states that allow a decision of divisibility are:

Final states and divisibility decision
Condition Divisibility decision
divides
does not divide

At least for the condition in the last row describes the state where has reached the domain of the permutation . For the matter is not quite so simple because the Fix point brake has to be taken into account.

Relationships between sets of divisors[edit]

On the basis of following relations and in view of Mapping we have:

This results in for . Since depends with respect to only by , the partial sum of digits and coincide as functions. This means: Properties of that depend only on are equally valid for . The definition range of the permutation is such a property. This range is determined by .

All partial digit sum functions are enumerated in the sequence:

and despite different designations the following sequence is a subsequence of the first one.

For instance from the second sequence appears as in the first sequence in the sense of equality of functions and appears equally as . But one should bear in mind that divisibility by is different from divisibility by . This is not a contradiction to the equation . For example, if turns out to be true, it may be that divides but doesn't divide . See as an example where and divides but does not divide . The divisibility property depends not only from , because are both involved.

Furthermore, it follows from supplement in Theorem about divisibility that for fixed all partial sum of digits in the family

are usable to solve the divisibility task

The divisibility task together with a text description of the solution corresponding to is described in An Introduction to theTheory of Numbers..[11]

References[edit]

  1. Shoup, Victor (2008). A Computional Introduction to Number Theory and Algebra. Cambridge University Press. p. 3. Theorem 1.4 (Division with remainder property) floor, ceilings Search this book on
  2. Langford, W.J. (1974). "Tests for divisibility". The Mathematical Gazette. JSTOR 3621286.
  3. Hassani, Mehdi (2019). "Tests for divisibility by prime numbers". The Mathematical Gazette.
  4. Cherniavsky, Yonah; Mouftakhov, Artour (2014). "Zbikowski's Divisibility Criterion". The College Mathematics Journal. 45: 17–21. doi:10.4169/college.math.j.45.1.017. Unknown parameter |s2cid= ignored (help)
  5. Shoup, Victor (2008). A Computional Introduction to Number Theory and Algebra. Cambridge University Press. p. 7. Theorem 1.9 Search this book on
  6. O’SHEA, EDWIN (2019). "Divisibility Tests Unified: Stacking the Trimmings for Sums". Mathematics Magazine. 92 (2): 128–35. arXiv:1903.04903. doi:10.1080/0025570X.2019.1562293. JSTOR 24340446. Unknown parameter |s2cid= ignored (help)
  7. Dodge, Clayton (1999). "Divisibility Tests – Making Order out of Chaos". Pi Mu Epsilon Journal. 10 (10): 779–90. JSTOR 24340446.
  8. "A010888 - Oeis".
  9. Briggs, C.C (1999). "Simple Divisibility Rules for the 1st 1000 Prime Numbers". arXiv:arXiv.math/0001012.
  10. Briggs, C. C. (2000). "Simple Divisibility Rules for the 1st 1000 Prime Numbers". arXiv:math/0001012.
  11. Niven, Ivan; Zuckerman, Herbert; Montgomery, Hugh (1991). An Introduction to the Theory of Numbers (5th ed.). New York: John Wiley & Sons. p. 29. ISBN 0-471-62546-9. Problem 8, hint on p. 503 Search this book on


This article "Divisibility for all divisors relative prime to 10" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Divisibility for all divisors relative prime to 10. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.