Here is the trick: set Y = x - q(x) Then observe Y is uniform [0,1/n] so the PDF of Y = n. After that just do simple formula plug in!!

Alumni Liaison

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett