1) dQ/dt + (1/RC)Q = 0 so you get the standard Q=CVe-t/RC
I is dQ/dt = -(V/R)e-t/RC ( I into R is +)
Initial energy is 1/2 CV2 and you can find QJH from integral of I2Rdt from 0 to infinity (same energy as stored)
2) dQ/dt =- (1/RC(t))Q such that I is constant and C(0)=C and Q(0)=CV
If I = const then Q = At+b
plug into differential equation to solve for C(t) and resolve 2 constants with the two BC's.
I get Q = (-V/R)t +CV and that C(t) = (1/R)t + C (You can only go untill charge runs out: t = RC)