A pea plant with purple flowers was crossed

A pea plant with purple flowers was crossed with white flowers producing 50 plants with only purple flowers. On selfing, these plants produced 482 plants with purple flowers and 162 with white flowers. What genetic mechanism accounts for these results? Explain.

Phenotypic ratio is
Purple flowered plants : White flowered plants
3(482): 1(162)
Mechanism are as follow:
(i) Factors segregate from each other that remained together in a hybrid during gamete formation.
(ii) A homozygous parent produces all gametes that are
similar while heterozygous parent produces two kinds of gametes in equal ratio.