In general
Subject to paragraph (4) and subsections (d) and (m), of the amount available for allotment under subsection (a) for a fiscal year, reduced by the amount of allotments made under subsection (c) (determined without regard to paragraph (4) thereof) for the fiscal year, the Secretary shall allot to each State (other than a State described in such subsection) with a State child health plan approved under this subchapter the same proportion as the ratio of—
(A) the product of (i) the number of children described in paragraph (2) for the State for the fiscal year and (ii) the State cost factor for that State (established under paragraph (3)); to
(B) the sum of the products computed under subparagraph (A).