[back] [prev] [next] [index] [root]

 


IntValuation

Returns the p-adic valuation of an integer

Syntax:

v := IntValuation(p, n);

integer
  v  
integer
  p  
integer
  n  

See also:  IdealValuation, EltValuation

Description:

Returns the p-adic valuation v of an integer n\neq 0, i.e. for a rational prime p it returns a non-negative, maximal v subject to p^v|n.


Example:


kash> IntValuation(1208724496185624589, 1180992730069637804054573);
> 1


<- back[back] [prev] [next] [index] [root]