1) the explosion occurs
years ago
2)

Step-by-step explanation:
1)
The light coming from the exploding supernova travels at constant speed, which is the speed of light:

And since it travels with uniform motion, the distance it covers in a time t is given by:

where t is the time taken.
Here, we know that the distance of the supernova from the Earth is

where 1 light-year is the distance covered by light in 1 year. This means that in 1 year, light covers a distance of 1 light-year; in 5 year, light covers a distance of 5 light-years; and so on.
Therefore here, since the distance is

This means that the time taken by light is
years
And therefore, the explosion occurs
years ago.
2)
First of all, the real frequency of the light emitted by the supernova is given by

where
c is the speed of light
is the proper wavelength
Substituting,

The frequency observed on Earth is shifted (Doppler effect) due to the relative motion between the supernova and the Earth; the apparent frequency observed on Earth is given by

where
c is the speed of light
is the speed at which the supernova is moving apart
Substituting the values, we find the apparent frequency:
