login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A038716
a(n) = floor(n/4)*ceiling((n+3)/4).
1
0, 0, 0, 0, 2, 2, 3, 3, 6, 6, 8, 8, 12, 12, 15, 15, 20, 20, 24, 24, 30, 30, 35, 35, 42, 42, 48, 48, 56, 56, 63, 63, 72, 72, 80, 80, 90, 90, 99, 99, 110, 110, 120, 120, 132, 132, 143, 143, 156, 156, 168, 168, 182, 182, 195, 195, 210, 210, 224, 224, 240
OFFSET
0,5
FORMULA
a(n) = a(n-1) +a(n-2) -a(n-3) +a(n-4) -a(n-5) -a(n-6) +a(n-7). - R. J. Mathar, Mar 11 2012
MAPLE
A038716:=n->floor(n/4)*ceil((n+3)/4): seq(A038716(n), n=0..100); # Wesley Ivan Hurt, Jan 03 2017
MATHEMATICA
Table[Floor[n/4]Ceiling[(n+3)/4], {n, 0, 70}] (* Harvey P. Dale, Sep 19 2011 *)
PROG
(Magma) [Floor(n/4)*Ceiling((n+3)/4): n in [0..60]]; // Vincenzo Librandi, Sep 21 2011
CROSSREFS
Sequence in context: A147795 A258186 A357415 * A168659 A035642 A213332
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 02 2000
STATUS
approved