(A) A child who is a child of an individual under clause (3) of the first sentence of section 416(e) of this title and is not a child of such individual under clause (1) or (2) of such first sentence shall be deemed not to be dependent on such individual at the time specified in subparagraph (1)(C) of this subsection unless (i) such child was living with such individual in the United States and receiving at least one-half of his support from such individual (I) for the year immediately before the month in which such individual became entitled to old-age insurance benefits or disability insurance benefits or died, or (II) if such individual had a period of disability which continued until he had become entitled to old-age insurance benefits, or disability insurance benefits, or died, for the year immediately before the month in which such period of disability began, and (ii) the period during which such child was living with such individual began before the child attained age 18.
(B) In the case of a child who was born in the one-year period during which such child must have been living with and receiving at least one-half of his support from such individual, such child shall be deemed to meet such requirements for such period if, as of the close of such period, such child has lived with such individual in the United States and received at least one-half of his support from such individual for substantially all of the period which begins on the date of such child’s birth.