(d) From the percentage of the unorganized borough national forest receipts fund allocated to public roads under (b) of this section, the commissioner shall pay to each
- (1) home rule city, first class city, or second class city that exercises road powers, that is located within the unorganized borough and within a national forest or within 20 miles of a national forest, a share of the income from the roads allocation of the fund; a home rule city, first class city, or second class city's share shall be calculated as the proportion of the number of road miles within municipal boundaries over which the community exercises road powers plus the number of state road miles maintained by the municipality under agreement with the state compared to the total number of road miles maintained by state or local governments in the unorganized borough and within the national forest or within 20 miles of the national forest;
- (2) municipality organized under federal law as an Indian reserve that existed before the enactment of 43 U.S.C. 1618(a) and is continued in existence under that subsection and that has formed a community development corporation under (m) of this section, that exercises road powers and that is located within the unorganized borough and within the national forest or within 20 miles of the national forest a share of the income from the roads allocation of the fund; the share due a municipality organized under federal law that exercises road powers shall be calculated as the proportion of the number of road miles within municipal boundaries over which the community exercises road powers plus the number of state road miles maintained by the municipality under agreement with the state compared to the total number of road miles maintained by state or local governments in the unorganized borough and within the national forest or within 20 miles of the national forest; however, the commissioner may pay income from national forest receipts under this paragraph only after the corporation has delivered a written waiver of sovereign immunity from legal action by the state to recover all or a portion of the money distributed under this section.