OFFSET
0,8
LINKS
Matthew House, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3,-4,4,-4,4,-4,4,-4,4,-4,4,-4,4,-4,4,-3,1).
FORMULA
G.f.: -((x^5 (1-x+x^2) (1-x+x^2-x^3+x^4-x^5+x^6))/((-1+x)^3 (1+x^2) (1+x^4) (1+x^8)))
a(n) = n^2/16 - n/16 + O(1). - Charles R Greathouse IV, May 31 2026
MATHEMATICA
Table[Floor[(n(n-1))/16], {n, 0, 70}] (* or *) LinearRecurrence[{3, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -4, 4, -3, 1}, {0, 0, 0, 0, 0, 1, 1, 2, 3, 4, 5, 6, 8, 9, 11, 13, 15}, 70] (* Harvey P. Dale, May 23 2019 *)
PROG
(Magma) [(n*(n-1) div 16) : n in [0..70]]; // Vincenzo Librandi, May 26 2019
(PARI) a(n)=n*(n-1)\16 \\ Charles R Greathouse IV, May 31 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
