Problem 764. Soccer - TOTO

How many different outcomes are there in a soccer-TOTO with n games?

For each game there are three results: win - loss - equal. So for example with 2 games between team A and B, we can have different outcomes:

A win(1), A loss(-1), A draw(0) for first game and A win(1), A loss(-1), A draw(0) for the next game. Outcomes are like this:

   1  1
   1  0
   1 -1
   0  1
   0  0
   0 -1
  -1  1
  -1  0
  -1 -1

Solution Stats

82.05% Correct | 17.95% Incorrect
Last solution submitted on Jul 11, 2017

Problem Comments

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!