function home = hw045 ( n )

  home = 0;
  for i = 1 : 1000
    track = walker_1d ( n );
    i = ( track == 0 );
    visits = sum ( i );
    home = home + visits;
  end

  home = home / 1000;

  return
end
