Post Reply 
HP50g or other: U. of Houston calc exams
08-09-2015, 12:46 AM
Post: #12
RE: HP50g or other: U. of Houston calc exams
(08-08-2015 06:00 PM)Peter Murphy Wrote:  9. Give the sum of the prime factors (including repetition) for 224551579230.

After FACTOR, the solution seems clumsy but straightforward until you get to repetition, at which point I'm at a loss.

Like Hlib and Gilles, I thought of using FACTORS instead of FACTOR. Then, my brain got stuck on using DOT to compute the sum of the products of the factors. The problem with this method is getting the result of FACTORS split into two vectors, which I haven't found a good way to do. This is what I ended up with for a "general form" of the problem:

Code:
FACTORS
OBJ-> 2 / 2 DUP ->LIST ->ARRY 1 COL- SWAP 1 COL- SWAP DROP
DOT

I'm sure there's simpler methods.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP50g or other: U. of Houston calc exams - DavidM - 08-09-2015 12:46 AM



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