OFFSET
0,3
REFERENCES
S. Wolfram, A New Kind of Science, Wolfram Media, 2002; Chapter 3.
LINKS
Robert Price, Table of n, a(n) for n = 0..999
Index entries for linear recurrences with constant coefficients, signature (0,2,0,-1).
FORMULA
a(n) = Sum_{k=0..n-1} Sum_{i=0..k} C(i,k) - (-1)^k. - Wesley Ivan Hurt, Sep 20 2017
a(n) = n + ((-1)^n*(2*n + 1) - 1)/4 = n - A001057(n). - Peter Luschny, Feb 11 2019
MAPLE
a := n -> n + ((-1)^n*(2*n + 1) - 1)/4;
seq(a(n), n=0..69); # Peter Luschny, Feb 11 2019
MATHEMATICA
LinearRecurrence[{0, 2, 0, -1}, {0, 0, 3, 1}, 70] (* Jean-François Alcover, Jul 08 2019 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Hans Havermann, May 26 2002
STATUS
approved