HP50g or other: U. of Houston calc exams

08092015, 02:18 AM
Post: #14




RE: HP50g or other: U. of Houston calc exams
In thread2771, Gilles (presumably asleep as I write this, or he'd be writing this himself) very nicely shows how to split the output of FACTORS into two lists, one of primes and the other of their corresponding multiplicities. (He makes use of the seemingly gratuitous difference between the object types of the two quantities; maybe he has thus shown us that the difference was intentional.)
Multiplying those lists together and summing the resulting single list yields the 301 result here. With those split lists, by the way, one can do other things (things often asked of competitors in the USA MATHCOUNTS program, for example): calculate the number of distinct positive integer factors of the original integer, the sum of those factors, and the sum of the inverses of those factors. Thread2771 is here: <http://www.hpmuseum.org/forum/archive/index.php?thread2771.html> Peter 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)