After a mutiny, ten sailors find themselves stuck on a island. They find no signs of any other human activity. What they do find are lots of coconuts and a monkey. During their first day, they gather many coconuts and put them all in a community pile. After working all day they decide to sleep and divide them into ten equal piles the next morning.
That night one castaway wakes up hungry and decides to take his share early. After dividing up the coconuts he finds he is one coconut short of ten equal piles. He also notices the monkey holding one more coconut. So he tries to take the monkey's coconut to have a total evenly divisible by 10. However when he tries to take it the monkey conks him on the head with it and kills him.
Later, another castaway wakes up hungry and decides to take his share early. On the way to the coconuts, he finds the body of the first castaway, which pleases him because he will now be entitled to one ninth of the total pile. After dividing them up into nine piles he also notices he is one coconut short of equal piles and tries to take the monkey's, now slightly bloodied, coconut. The monkey conks the second man on the head and kills him.
One by one, each of the remaining castaways goes through the same process of dividing up the coconuts, finding themselves one short of equal piles, trying to take to monkeys coconut, and then been killed by the monkey, until the 10th person to wake up gets the entire pile for himself.
What is the smallest possible number of coconuts in the pile, not counting the monkeys?
Make your answer "A" in the following formula
S 33 58.((A + 43) / 7)
E 25 36.((A / 11) + 90)