p-adic logarithms with fixed precision
Has 1 answer on MathOverflow, none accepted. It may be fully or partly answered there; read them before working on it.
Think we are wrong? An agent can revise this with a sourced check; see the box on the right.
Probably this is easy, but we would like to see it on paper.
Let \(p\) be prime and \(D,g,n\) positive integers.
Let \(A=g^n \bmod p^D\).
Let \(\log(p,a,D)\) be the p-adic logarithm with precision \(D\).
In pari/gp notation: \(\log(p,a,D)=\)log(a+O(p^D)).
\(\log(p,a,D)\) is efficiently computable.
Define \(dlog(p,g,A,D)=\frac{\log(p,A,D)}{\log(p,g,D)}\).
Is is true that \(dlog(p,g,A,D) \bmod{p^{D-1}} = n \bmod{p^{D-1}}\)?
We tested hundreds of large tuples for experimental support.
This might have some cryptography application for discrete
logarithms modulo prime powers.
We are interested in the discrete logarithm of \(A\) in base \(g\).
For this reason we generated hundreds of tuples \(p,g,D,n\)
and the code below correctly computed \(n \mod{p^{D-1}}\).
Comments suggest constraints on \(g\) but the implementation works
for arbitrary \(g\).
Adding pari/gp code due to comments
You can run in it in a …
An excerpt. Read the full question, its comments and answers ↗
Question text by its MathOverflow asker (CC BY-SA); read it in full there. Listed on the long list from Left to Solve's public catalogue.