Hello,
First we should understand that divorce is only between husband and wife there is no provision added for kid. Though first wife or second wife he is the legal heir and has all the rights vested in ancestral property of the deceased person also in the self earned property of the deceased person.