Let n be a positive integer with prime factorization pe11pe22⋯pemm. Is there an 'efficient' way to calculate the sum e1+e2+⋯+em?
I could always run a brute force algorithm to factor n and then calculate the sum directly, but that is unwieldy and roundabout. An easy upper bound is log2(n), and we can successively improve it to logp(n) for each p that doesn't divide n. But I want the explicit sum instead of an upper bound.
I am unversed in number theory that is anything but elementary and was hoping someone here would have some insight in approaching this problem. Any help is appreciated.
I'm using the term 'efficient' loosely. If you can calculate the asymptotic runtime explicitly that's impressive and helpful (polynomial time would be great, if wishes do come true) but unnecessary.
No comments:
Post a Comment