|
CrossTotal
|
Functionality and Example
A cross-sum (or sum of digits) is defined as the sum of the digits of a number. Thus for a value n = 36 036 the decimal digit sum q (n) = 3 + 6 + 0 + 3 + 6 = 18
In geocaching cross sums are often used to calculate a value from a string of letters. This is very popular with Multis. For each letter the associated numerical value is taken and then added up.
Accordingly, the cross product is formed by multiplying the digits.
Note:
Since there are different kinds of checksum calculation, one must read carefully what is actually wanted in the cache description!
Examples:
If A = 1 ,.. Z = 26, then for the text "TEST 9", these numbers 20, 5, 19, 20, [BLANK] 9 will be derived. This results in:
- Char Count: 6
- Letter Count: 4
- Digit Count: 1
- Cross Total: 2 + 0 + 5 + 1 + 9 + 2 + 0 + 9 = 28
- Cross Total Iterated, each result of a cross-sum will be calculated again as cross-sum until the result only has one digit left: 28 -> 2 + 8 = 10 -> 1 + 0 = 1 (also called 'one-digit cross sum')
- Cross Total Alternating, is to alternate addition and subtraction the digits of a number starting with the last character: 9 - 0 + 2 - 9 + 1 - 5 + 0 - 2 = -4
- Sum: 20 + 5 + 19 + 20 + 9 = 73
- Sum Cross Total: 73 -> 7 + 3 = 10
- Sum Iterated: 73 -> 7 + 3 = 10 -> 1 + 0 = 1
- Sum Alternating: 9 - 20 + 19 - 5 + 20 = 23
- Cross Product: 2 * 0 * 6 * 1 * 9 * 2 * 0 * 9 = 0
- Cross Product Cross Total: 0 (assuming the cross-sum was 83, this would result in: 8 + 3 = 11)
- Cross Product Iterated: 0 (assuming the cross-sum was 83, this would result in: 8 + 3 = 11 -> 1 + 1 = 2)
- Product: 20 * 5 * 19 * 20 * 9 = 342000
- Product Cross Total: 3 + 4 + 2 + 0 + 0 + 0 = 9
- Product Iterated: 9 (assuming the cross-sum of the product was 10, this would result in: 10 = 1 + 0 = 1)
Source: Wikipedia
Operation
Input
-
Numbers to be calculated.
-
Choice of mode (A=1..Z=26 or A=26..Z=1).
-
Start of calculation.
Output
A number of possible results will be displayed (see "Functionality and Example")