First time here? Check out the FAQ!
answered 2012-01-31 17:38:08 +0100
sage: m=240
sage: m.valuation(2) 4
sage: m.valuation(3)
1
sage: m.valuation(5)
sage: [x for x in factor(m)]
[(2, 4), (3, 1), (5, 1)]