As it says on the HW page, it's recommended to use a computer somehow. Indeed, it would be pretty tedious to do this problem completely by hand. On the other hand, it's not sufficient to just ask Mathematica or a similar program whether or not 44497 is prime.
Anyway, trial division is only method available to us at this time. Since the square root of 44497 is between 210 and 211, we can apply the result of E3 to conclude that it's enough to check factors between 2 and 210. While this helps somewhat, even this could be tedious.
You can use something as simple as Excel, or a similar spreadsheet, and most of my comments will be about that, but if you know how to program it in BASIC or any other computer language, that's fine too. In any case, it would be enough to check divisibility by primes between 2 and 199 (the largest prime below 210), but this would require us to have (or create) a list of primes. So, it's easier to just have the computer check disibility by the consecutive integers 2, 3, 4, ..., 210.
Here's a very basic version of a possible spreadsheet:
Desired values | Spreadsheet formulas | |||||||||||||||||||||||||||||||||||||||
|
|
With this, we can inspect the resulting 209 (= 210-1) lines of output. If an integer appears as a quotient, we have a factor. Otherwise . . .
If we don't want to do something as tedious as inspecting the output, then our spreadsheet can be jazzed up somewhat. To do this, recall that the quotient in the division 44479 =nq + r is the integer part of the fraction 44497/n. As it happens, most spreadsheet programs have a built-in function for integer part, namely INT( ). This appears in column C. And finally, we get the remainder (in column D) r as 44497 - nq. Thus:
Desired values | Spreadsheet formulas | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
So far so good, but does this story have a punch line? Well, if there is
an integer factor, then 0 will have to occur as a remainder. We can look at
our output to try to see it, but this still leaves a human in the loop. Now,
since the remainders are non-negative integers, what about asking the
spreadsheet to do this?? Well, the spreadsheet function for finding the smallest
value in a row, column, or array is MIN( ).
Back to the class homepage.
Back to to the homework page.