OFFSET
0,3
COMMENTS
In fact ceiling(7n/2) is just as likely as floor(7n/2), so sequence could equally well be A047345. - Henry Bottomley, Jan 19 2001. a(1) is the only exception to this rule. - Dmitry Kamenetsky, Nov 03 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000 (corrected by Sean A. Irvine, Jan 18 2019)
Eric Weisstein's World of Mathematics, Dice.
Index entries for linear recurrences with constant coefficients, signature (1,1,-1).
FORMULA
a(n) = floor(7*n/2) for n >= 2.
From Colin Barker, Jun 09 2013: (Start)
a(n) = a(n-1) + a(n-2) - a(n-3) for n >= 5.
G.f.: x - x^2 * (3*x^2-3*x-7) / ((x-1)^2*(x+1)). (End)
MAPLE
MATHEMATICA
CoefficientList[Series[-(3 x^2 - 3 x - 7)/((x - 1)^2 (x + 1)), {x, 0, 60}], x] (* Vincenzo Librandi, Oct 19 2013 *)
PROG
(Magma) I:=[7, 10, 14]; [n le 3 select I[n] else Self(n-1)+Self(n-2)-Self(n-3): n in [1..60]]; // Vincenzo Librandi, Oct 19 2013
(PARI) a(n)=7*n\2 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
EXTENSIONS
a(0) and a(1) added by Dmitry Kamenetsky, Nov 03 2017
STATUS
approved