# Can you solve the rogue AI riddle? – Dan Finkel

Practice more problem-solving at https://brilliant.org/TedEd/

Sign up to be emailed the solution to the bonus riddle: https://brilliant.org/TedEdPoisonChocolate/

A hostile artificial intelligence called NIM has taken over the world?s computers. You?re the only person skilled enough to shut it down, and you?ll only have one chance. Can you survive and shut off the artificial intelligence? Dan Finkel shows how.

Lesson by Dan Finkel, directed by Artrake Studio.

Thank you so much to our patrons for your support! Without you this video would not be possible! Jordan Tang, Christopher Jimenez, Juan, Tracey Tobkin, Sid, emily lam, Kathryn J Hammond, Elliot Poulin, Noel Situ, Oyuntsengel Tseyen-Oidov, Latora Slydell, Sydney Evans, Victor E Karhel, Bernardo Paulo, Eysteinn Gu?nason, Andrea Feliz, Natalia Rico, Josh Engel, B?rbara Nazar?, Gustavo Mendoza, Zhexi Shan, Hugo Legorreta, PnDAA, Sandra Tersluisen, Ellen Spertus, Fabian Amels, sammie goh, Mattia Veltri, Quentin Le Menez, Yuh Saito, Joris Debonnet, Heather Slater, Dr Luca Carpinelli, Janie Jackson, Christophe Dessalles, Arturo De Leon, Eduardo Brice?o, Bill Feaver, Ricardo Paredes, David Douglass, Grant Albert, Paul Coupe, Jen, Megan Whiteleather, and Mayank Kaul.

Sign up for free to be emailed the solution to the bonus riddle: https://brilliant.org/teded! Also, the first 833 of you who sign up for a PREMIUM subscription will get 20% off the annual fee. Now go solve some riddles!

In the 1960s, Dr. Nim took the world by storm as a popular single-player game. NOW, Dr. Nim is taking the World by FORCE as a rogue artificial intelligence, seeking out and eliminating anyone who managed to beat it in the 20th Century.

Use an RPG.

Pleeeaase, state the bonus riddles better! Am I allowed to choose a single square? It looks like all rectangles must stretch to the top right as much as possible, is that correct?

I just realized – this is like a very simplified version of the actual game NIM!

What about throwing remote control at the button?

Since I haven't seen anyone mentioning the solution that I get, so here is what I get.

I tried using equation x+3y+4z=25 to start with. To win, the sum of x+y+z must be an odd number (since your turn is odd).

However since 4 is an even number, and an even number times anything is an even number, then x+3y must be an odd number. (x+3y+4z=25<- odd)

We can split x+3y = x+y+2y

2y is an even number, thus x+y must be odd.

To win, x+y+z = odd number, and x+y = odd. That means your only chance to win is if z is even.

Thus, whatever you do, as long as 4 is selected an even times, you will always win.

Me: (Lowers water to level 21) Okay, NIM, it's your move. (Long pause as nothing happens) Uh, NIM?

NIM: I calculated that whoever makes the next move will lose, so I'm not going to do anything.

the correct answer:

don't make nim

In my school we learnt this in the Fibonacci sequence

Solution

If you fail just get back in it?s not like in 3 seconds the world will end because of that

You have hours so just hop back in and use the raft as a safe bouncy surface and turn it off

The solution to the bonus is middle top

Why don?t you just tell the military to obliterate the thing? ??

Ted-Ed: explanation:

Me: NOOOOOO THIS IS TOOO COMPLICATED

Wow