But 181 % 7 != 0!
I get 301, and here's how:
We're looking for an integer
n such that
n %
e == 1 for every
e in the set { 2, 3, 4, 5, 6 } AND
n % 7 == 0.
In other words,
n - 1 must be divisible by 2, 3, 4, 5 and 6. If a number is divisible by 2, 3, 4, 5 and 6, then it is equivalent to say that that number is also divisible by the least common denominator (LCD) of 2, 3, 4, 5 and 6. That LCD is 60.
So now, we
test 60
n + 1 for divisibility by 7:
n = 1: 61 % 7 == 5
n = 2: 121 % 7 == 2
n = 3: 181 % 7 == 6
n = 4: 241 % 7 == 4
n = 5:
301 % 7 == 0
<==== The questions
I have are, how much do 301 eggs
weigh, and how big
was that basket, anyways?
Oh, well, I guess it's the yolk she had to bear.
Art, a.k.a. "Al Bumin"
[This message has been edited by Art Metzer (edited May 25, 2001).]