P-adic division algorithm
Encyclopedia : P : PA : PAD : P-adic division algorithm
- The correct title of this } is }}}. The initial letter is capitalized due to [Naming conventions #Lower case first lettertechnical restrictions].
Description of the algorithm
To compute the inverse of a, first choose a number c > 1, and an initial guess x0, which must be chosen to have at least 1 correct p-adic digit, that is x0 a ≡ 1 (mod p). Then, apply the iteration
- [x_=\frac-a^\left(\frac-x_\right)^c. ]
One can also convert nth root algorithms from real numbers to p-adic numbers.
Example
To calculate 1/11 in Q7 with c = 3, we start with x0 = 2. The first three iterates are
- [x_1=842, \,]
- [x_2=72207276962, \,]
- [x_3=45554184106538309239332600382503722. \,]
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
