Skip to main content
edited body; edited title
Source Link
corey979
  • 24.3k
  • 7
  • 60
  • 105

powers Powers of prime factors of a positive integer $n$ in "Mathematica"?

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is,. For instance

n=60;
f[n,2]=2;
f[n,3]=1;
f[n,5]=1;
f[n,7]=0;

powers of prime factors of a positive integer $n$ in "Mathematica"?

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is, For instance

n=60;
f[n,2]=2;
f[n,3]=1;
f[n,5]=1;
f[n,7]=0;

Powers of prime factors of a positive integer $n$ in "Mathematica"?

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is. For instance

n=60;
f[n,2]=2;
f[n,3]=1;
f[n,5]=1;
f[n,7]=0;
added 2 characters in body
Source Link
Feyre
  • 8.7k
  • 2
  • 29
  • 48

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is, For instance

n=60;

f[n,2]=2;

f[n,3]=1;

f[n,5]=1;

f[n,7]=0;

n=60;
f[n,2]=2;
f[n,3]=1;
f[n,5]=1;
f[n,7]=0;

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is, For instance

n=60;

f[n,2]=2;

f[n,3]=1;

f[n,5]=1;

f[n,7]=0;

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is, For instance

n=60;
f[n,2]=2;
f[n,3]=1;
f[n,5]=1;
f[n,7]=0;
Source Link
asad
  • 848
  • 5
  • 13

powers of prime factors of a positive integer $n$ in "Mathematica"?

I would like to find the powers of a prime in the unique prime factorization of an $n$. I want a function $f[n,p]$ such that $n,p$ are given and I need to know what the power of $p$ is, For instance

n=60;

f[n,2]=2;

f[n,3]=1;

f[n,5]=1;

f[n,7]=0;