Numerical Experiment Applicable to Planet Formation