Undergrad P-adic valuation expression for a given natural number

Click For Summary
SUMMARY

The discussion focuses on the mathematical expression for the p-adic valuation, denoted as ##v_p(n)##, which quantifies the highest power of a prime p that divides a natural number n. A formula derived from a paper (arXiv:1907.11902) is presented: ##v_p(n) = (1 - s_p(n) + s_p(n-1))/(p - 1)##, where ##s_p(n)## represents the sum of the digits in the base-p expansion of n. Additionally, an alternative formula using logarithmic functions is proposed, but its practical utility is questioned.

PREREQUISITES
  • Understanding of p-adic numbers and valuations
  • Familiarity with prime factorization
  • Knowledge of base-p numeral systems
  • Basic concepts of logarithms and floor/ceiling functions
NEXT STEPS
  • Research the properties of p-adic numbers and their applications
  • Study the Euclidean algorithm and its iterative applications
  • Explore the implications of the formula for ##s_p(n)## in number theory
  • Investigate the practical applications of p-adic valuations in computational mathematics
USEFUL FOR

Mathematicians, number theorists, and students interested in advanced number theory and the properties of p-adic valuations.

DaTario
Messages
1,097
Reaction score
46
TL;DR
Hi All, is there a closed expression that yields the p-adic valuation of a natural number n ?
Hi All,

If p is a prime, the p-adic valuation, ## v_p(n) ##, of a positive natural number is defined as the highest power of p that divides n. For instance, ##v_3(45) = 2##.
My question is: Is there a mathematical expression for ##v_p(n)## ?
 
Physics news on Phys.org
doubtful - primes are too scattered around
 
Thank you, mathman. Could you please elaborate a bit more on this comment?
 
I have just found this paper:
https://arxiv.org/ftp/arxiv/papers/1907/1907.11902.pdf
where the author derives a formula for ##v_p(n)##. The approach goes like this:

##v_p (n) = v_p (n!) – v_p ((n –1)!)##
##= (n – s_p (n))/(p –1) – (n –1– s_p (n–1))/(p –1) ##
##= (1 – s_p (n) + s_p (n–1))/(p –1)##
##= (1 – Δ s_p (n–1))/(p –1). ##

where ##s_p (n)## denotes the sum of the digits in the base-p expansion of n.

Example: ##v_3(36) = 2 ##
##36 = 1 . 9 + 1 . 27 \Rightarrow s_3(36) = 1 + 1 = 2##
##35 = 2 . 1 + 2 . 3 + 1 . 27 \Rightarrow s_3(35) = 2 + 2 + 1 = 5##
Thus,
##v_3(36) = \frac{1 - \Delta s_3(36) + \Delta s_3(35)}{3-1} = \frac{1 - 2 + 5}{2} = \frac{4}{2} = 2 ##.

Thak you all.
 
Last edited:
Editing the last post: In the last equation there is no ##\Delta## anymore.
 
Last edited:
is there some formula for the sum of the digits in the base p expansion? this is something that seems to require an iterative application of the euclidean algorithm.
 
Yes, mathwonk, it seems to require such algorithmic approach. Do you think using instead functions as Floor[ ], Ceiling[ ] and FractionalPart[ ], to implement ##v_p(n)##, will demand the same algorithmic structure?
 
I found a simple and alternative formula for ##v_p(n)##, given by:
$$
v_p(n) = \lfloor \log_p (n) \rfloor - \sum_{j=1}^{\lfloor \log_p (n) \rfloor} \left \lceil \left \{ \frac{n}{p^j}\right \} \right\rceil,
$$

But it does not seem to be of any practical use.
 
DaTario said:
Thank you, mathman. Could you please elaborate a bit more on this comment?
No deep study. Just a gut feeling, since prime factoring seems to be "random" as a function of n.
 
  • #10
Thank you, mathman.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
2K
  • · Replies 3 ·
Replies
3
Views
834
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 45 ·
2
Replies
45
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K