F = A'BC + AB'C + ABC' + ABC
I know that by K-map answer is AB+AC+BC, and by boolean rules, it will be
=A'BC + AB'C + ABC' + ABC+ ABC + ABC
=(A'BC + ABC) + (AB'C + ABC) + (ABC' + ABC)
=(A' + A) BC + (B' + B) CA + (C' + C) AB
=AB+AC+BC
I can't get it, how we knew that we should add ABC to it??
If you look at the K-Map, you'll find that as you create groupings, you use the $ABC$ cell three times.
Using algebra we can do the same combinations, but that does mean we need $3$ $ABC$ terms.
And by the way, there is a handy boolean algebra rule that reflects the combining of adjacent cells:
Adjacency
$PQ + PQ' = P$
Applied to your our expression:
$A'BC + AB'C + ABC' + ABC = \text{ (Idempotence x 2)}$
$A'BC + ABC + AB'C + ABC + ABC' + ABC = \text{ (Adjacency x 3)}$
$BC + AC + AB$