- #1
FenixDragon
- 2
- 0
hi... I was thinking... is there any formula that inverts int numbers? like 21 transforms into 12... I have found an algorithm that do this... but I want to know if exists any formula to it... thx...
3trQN said:In base 10, the numbers 11 and 9 are important for reversable strings, factors of 11 tend be palindromic
Your formula fails whenever n=bm for any natural 'm'.*gnomedt said:Would this work as a symbolic formula for Rb(n), giving the number formed by reversing the digits of n in base b, when n is an integer?
[tex]R_b(n) = \sum_{k=1}^{\left \lceil log_b n \right \rceil} \left \lfloor \frac{n-b^k\left \lfloor \frac{n}{b^k} \right \rfloor}{b^{k-1}} \right \rfloor b^{\left \lceil log_b n \right \rceil - k}[/tex]
Definitely could be simplified.
Inverting integer numbers refers to the process of reversing the digits of a given integer. For example, the number 123 would become 321 when inverted.
Yes, there is a formula for inverting integer numbers. It is the product of the number's digits multiplied by their respective place values. For example, to invert the number 123, the formula would be (1*100) + (2*10) + (3*1) = 321.
Yes, all integer numbers can be inverted. However, the resulting number may not always be an integer, depending on the number of digits and the presence of leading zeros.
Inverting integer numbers can be useful in certain mathematical operations, such as finding the inverse of a number in modular arithmetic. It can also be used in coding and data manipulation.
There are no specific restrictions or limitations when inverting integer numbers. However, the resulting number may be too large to store in certain data types, so it is important to consider the data type when working with large integers.