A person has two parents (father and mother), four grandparents, eight great-grandparents, etc. Find the number of ancestors the person has up to the 10th generation.