ABarrios
- 23
- 0
I am attempting to program Mathematica to multiply the square free terms of an integer. Basically say we are looking at 252, its prime factors are 2^2*3^2*7. So what I want to do is have Mathematica return to me just 2*3*7 when I enter 252.
So I have this
S := FactorInteger[252]
Transpose[[1]]
which returns
{{2, 2}, {3, 2}, {7, 1}}
{2, 3, 7}
So, knowing a way to have Mathematica multiply 2*3*7 will give me what I need. Thanks!
So I have this
S := FactorInteger[252]
Transpose
which returns
{{2, 2}, {3, 2}, {7, 1}}
{2, 3, 7}
So, knowing a way to have Mathematica multiply 2*3*7 will give me what I need. Thanks!