A sequence of integers {f(n)} for n=0,1,2,… is defined as follows: f(0)=0 and for n>0,
f(n)=f(n−1)+3,f(n−1)+1,f(n−1)+2,if n=0 or 1(mod6),if n=2 or 5(mod6),if n=3 or 4(mod6).Derive an explicit formula for f(n) when n≡0(mod6), showing all necessary details in your derivation.