An astronomical unit (AU) is the average distance between Earth and the sun. One AU is equal to approximately 150,000,000 km. Astronomers also use light years to measure distance. A light year is approximately 9.5×1012 km.

and ... ??

Maybe you want 1 light year =
(9.5*10^12)/(1.5*10^8) km

I mean AU, not km

That's correct! An astronomical unit (AU) is a commonly used unit of distance in astronomy, and it measures the average distance between the Earth and the Sun. One AU is approximately equal to 150,000,000 kilometers.

On the other hand, astronomers also use another unit of distance called the light year (ly) to measure vast distances in space. A light year is the distance that light travels in one year, and it is approximately equal to 9.5×1012 kilometers.

To convert between AU and light years, you can use the relationship between light year and AU. Since light travels at a speed of about 299,792 kilometers per second, you can calculate how many kilometers light travels in one year:

Speed of light × seconds in a year = light year
(299,792 km/s) × (60 seconds/min × 60 min/hour × 24 hours/day × 365.25 days/year) = 9.5×1012 km/year

So, one light year is approximately equal to 9.5×1012 kilometers. To convert from AU to light years, you can divide the distance in AU by the number of kilometers in one light year.

For example, if you have a distance of 100 AU, you can calculate the equivalent distance in light years:

Distance in light years = Distance in AU ÷ (150,000,000 km/AU)

Distance in light years = 100 AU ÷ (150,000,000 km/AU) = 0.0006667 light years

Therefore, a distance of 100 AU is approximately equal to 0.0006667 light years.