A magnetic flux through a stationary loop with a resistance R and time t varies during the time interval τ as ϕ=at(τ−t), where, a is a positive constant. Find the amount of heat generated in the loop during that time. (Neglect the inductance of the loop.)