OFFSET
0,2
COMMENTS
Sorted sequence is A047515. - Philippe Deléham, Feb 23 2013
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Aviezri S. Fraenkel and Yuval Tanny, A class of Wythoff-like games, INTEGERS, to appear, 2013.
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 0, 1, -1).
FORMULA
G.f.: x*(3+3*x-2*x^2+3*x^3+x^4)/((1-x)^2*(1+x+x^2+x^3+x^4)). - Bruno Berselli, Feb 23 2013
MAPLE
a:= n-> 8*iquo(n, 5, 'r') + [0, 3, 6, 4, 7][r+1]:
seq(a(n), n=0..80); # Alois P. Heinz, Jun 19 2013
MATHEMATICA
CoefficientList[Series[x (3 + 3 x - 2 x^2 + 3 x^3 + x^4) /((1 - x)^2 (1 + x + x^2 + x^3 + x^4)), {x, 0, 40}], x] (* Vincenzo Librandi, Jun 19 2013 *)
LinearRecurrence[{1, 0, 0, 0, 1, -1}, {0, 3, 6, 4, 7, 8}, 100] (* Jean-François Alcover, Feb 18 2016 *)
PROG
(Magma) m:=70; R<x>:=PowerSeriesRing(Integers(), m); [0] cat Coefficients(R!((3+3*x-2*x^2+3*x^3+x^4)/((1-x)^2*(1+x+x^2+x^3+x^4)))); // Bruno Berselli, Feb 23 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Feb 22 2013
STATUS
approved