frerichj

13 Reputation

2 Badges

15 years, 206 days

MaplePrimes Activity


These are questions asked by frerichj

I have a fairly easy question but I am new to Maple and can't seem to figure it out w/ Maple help or anyone online resources.  The problem is list all pairs of integers between 100 and 110 that are relatively prime.  (I think) I can make it work by doing:

for k from 100 by 1 to 110 do gcd(k, 100), gcd(k, 101) . . . ; end do

but what if the problem had said pairs of integers from 100 to 1000? I don't understand how to iterate this function for more than one variable.  Any help would be appreciated.

Page 1 of 1