%I #12 May 04 2017 00:19:19
%S 3,20,120,721,4329,25976,155856,935137,5610825,33664952,201989712,
%T 1211938273,7271629641,43629777848,261778667088,1570672002529,
%U 9424032015177,56544192091064,339265152546384,2035590915278305
%N Base 6 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (7,-7,7,-6).
%F G.f.: x*(3-x+x^2) / ( (x-1)*(6*x-1)*(x^2+1) ). - _R. J. Mathar_, May 01 2015
%t CoefficientList[Series[(3 - x + x^2)/((x - 1)*(6*x - 1)*(x^2 + 1)), {x, 0, 30}], x] (* _Wesley Ivan Hurt_, May 03 2017 *)
%t Table[FromDigits[PadRight[{}, n, {3, 2, 0, 1}], 6], {n, 20}] (* _Michael De Vlieger_, May 03 2017 *)
%K nonn,base,easy
%O 1,1
%A _Clark Kimberling_