It's been a long day

There were x x friends who went on a sea voyage. Due to unforeseen circumstances, their ship wrecked and they reached a mysterious island. On that island, there were many monkeys.

On their first day they gathered as many coconuts as they could find into one big pile. They decided that, since it was getting dark, they would wait until the next day to divide the coconuts.

That night each man took a turn watching for rescue searchers while the others slept. The first watcher got bored so he decided to divide the coconuts into x x equal piles. When he did this, he found he had one remaining coconut. He gave this coconut to a monkey, took one of the piles, and hid it for himself. Then he jumbled up the remaining ( x 1 ) (x-1) piles into one big pile again.

To cut a long story short, each of the x x men ended up doing exactly the same thing. They each divided the coconuts into x x equal piles and had one extra coconut left over, which they gave to the monkey. They each took one of the x x piles and hid those coconuts. They each came back and jumbled up the remaining ( x 1 ) (x-1) piles into one big pile.

Let Φ ( x ) \Phi (x) denote the smallest number of coconuts there could have been in the original pile, where x x is number of friends. And let S = i = 5 1000 Φ ( i ) \displaystyle S = \sum_{i=5}^{1000} \Phi(i) . Find the sum of digits of S S .

As an explicit example: if x = 3 x = 3 , Φ ( 3 ) = 25 \Phi(3) = 25 .


The answer is 3001.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...