tensplusunitsn
Tensplusunitsn is a simple digit-based function used in recreational mathematics and coding contexts. For any nonnegative integer n, tensplusunitsn(n) is defined as the sum of the tens digit and the units digit in decimal notation. Equivalently, if a(n) denotes tensplusunitsn(n), then a(n) = floor(n/10) mod 10 + n mod 10. When n has fewer than two digits, the missing tens digit is treated as 0.
Examples help illustrate the definition. n = 0 yields 0; n = 7 yields 7; n = 42 yields
Properties and notes. The value of a(n) depends only on the last two digits of n, so
Usage and relevance. Tensplusunitsn appears in number puzzles and encoding schemes that rely on simple digit
See also: digit sum, digital root, base representation, modular arithmetic, last two digits.
---