function hw057 ( )

  A = risk_adj ( );

  v = zeros ( 42, 1 );
  v(42) = 1;

  steps = 0;
  while ( any ( v == 0 ) )
    steps = steps + 1;
    v = A * v;
    find ( v == 0 )
  end

  fprintf ( 'Starting at Western Australia, the RISK board is covered\n' );
  fprintf ( 'in %d steps.\n', steps );

  return
end
