There are N egg baskets and the number of eggs in each
basket is a known quantity. Two players take turns to remove
these eggs from the baskets. On each turn, a player must
remove at least one egg, and may remove any number of eggs
provided they all belong to the same basket. The player
picking the last egg(s) wins the game. If you are allowed to
decide who is going to start first, what mathematical
function would you use to decide so that you end up on the
winning side?

Answer Posted / playboy

There are N buckets & each contains n eggs in it.
Then let opponent to start a game.
If opponent picks x eggs then u choose n-x from perticular
bucket.

This way u can win...

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you understand by friend-functions? How are they used?

633


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2394


Why clrscr is used after variable declaration?

1025


What are c preprocessors?

658


Why & is used in scanf in c?

604






What is the difference between text and binary modes?

630


Explain what is a program flowchart and explain how does it help in writing a program?

630


Explain what are header files and explain what are its uses in c programming?

615


What does calloc stand for?

633


What are compound statements?

616


What does *p++ do?

569


Difference between exit() and _exit() function?

643


Explain what is gets() function?

616


Which is an example of a structural homology?

764


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

656