def create_count_neighbors_ca1d(width):
  """
  Returns a list with the weights for 'neighbors' and 'center_idx' parameters
  of evodynamic.connection.cellular_automata.create_conn_matrix_ca1d(...).
  The weights are responsible to count the number of alive neighbors.

  Parameters
  ----------
  width : int
      Neighborhood size.

  Returns
  -------
  out1 : list
      List of weights of the neighbors.
  out2 : int
      Index of the center of the neighborhood.
  """
  return [1 if p != width//2 else 0 for p in range(width)], width//2