Let's look at a few common number theoretic functions.
|
|
|
|
|
|
|
|
|
|
Let's look at the 'divisors' function. The argument is an integer, and the function returns a vector of the factors (which sets it apart from the 'factor' function, which returns the divisors as a product).
|
|
Hmmm. This gives me an idea:
|
|