OFFSET
0,5
COMMENTS
Number of triples of positive integers (a, b, c) such that 1 <= a <= b <= c and a + b + c <= n. - Leonhard Vogt, Apr 27 2017
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..870
D. Barrera, M. J. Ibáñez, and S. Remogna, On the construction of trivariate near-best quasi-interpolants based on C^2 quartic splines on type-6 tetrahedral partitions, Journal of Computational and Applied, 2016, Volume 311, February 2017, Pages 252-261.
J. Brandts and A. Cihangir, Counting triangles that share their vertices with the unit n-cube, in Conference Applications of Mathematics 2013 in honor of the 70th birthday of Karel Segeth. Jan Brandts, Sergey Korotov, et al., eds., Institute of Mathematics AS CR, Prague 2013.
Jan Brandts and Apo Cihangir, Enumeration and investigation of acute 0/1-simplices modulo the action of the hyperoctahedral group, arXiv preprint arXiv:1512.03044 [math.CO], 2015.
Mircea Merca, Inequalities and Identities Involving Sums of Integer Functions J. Integer Sequences, Vol. 14 (2011), Article 11.9.1.
Index entries for linear recurrences with constant coefficients, signature (2,0,-1,-1,0,2,-1).
FORMULA
a(n) = round((2*n^3 + 3*n^2 - 6*n)/72).
a(n) = round((4*n^3 + 6*n^2 - 12*n - 7)/144).
a(n) = floor((2*n^3 + 3*n^2 - 6*n + 9)/72).
a(n) = ceiling((2*n^3 + 3*n^2 - 6*n + 9 - 16)/72).
a(n) = a(n-6) + (n^2 - 5*n + 8)/2, n > 5.
From R. J. Mathar, Oct 06 2010: (Start)
a(n) = (-1)^n/16 + n^3/36 - n^2/24 - n/12 + 7/144 - A049347(n)/9.
G.f.: x^4 / ( (1+x)*(1+x+x^2)*(x-1)^4 ). (End)
a(n) = A000601(n-3). - R. J. Mathar, Oct 11 2017
EXAMPLE
a(5) = 4 = 0 + 0 + 0 + 1 + 1 + 2.
MAPLE
a:= n-> round(1/(72)*(2*n^(3)+3*n^(2)-6*n)): seq(a(n), n=0..50);
PROG
(PARI) a(n)=round(n*(2*n^2+3*n-6)/72) \\ Charles R Greathouse IV, May 23 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mircea Merca, Oct 04 2010
STATUS
approved