OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
Jan Brandts and Apo 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.
Index entries for linear recurrences with constant coefficients, signature (14,-56,64).
FORMULA
a(n) = binomial(2^n,3).
a(n) = 14*a(n-1) - 56*a(n-2) + 64*a(n-3) for n>=3. - Harvey P. Dale, Jun 20 2012
From Elmo R. Oliveira, Mar 20 2026: (Start)
G.f.: -4*x^2/((8*x - 1)*(4*x - 1)*(2*x - 1)).
E.g.f.: exp(2*x)*(2 - 3*exp(2*x) + exp(6*x))/6.
a(n) = 4*A016290(n-2) for n >= 2. (End)
MAPLE
seq(binomial(2^n, 3), n=0..20); # Zerinvary Lajos, Feb 22 2008
MATHEMATICA
Binomial[2^Range[0, 20], 3] (* or *) LinearRecurrence[{14, -56, 64}, {0, 0, 4}, 21] (* Harvey P. Dale, Jun 20 2012 *)
PROG
(Magma) [2^n*(2^n-1)*(2^n-2)/6: n in [0..20]]; // Vincenzo Librandi, May 23 2011
(PARI) vector(20, n, binomial(2^(n-1), 6)) \\ G. C. Greubel, Oct 26 2019
(SageMath) [binomial(2^n, 6) for n in (0..20)] # G. C. Greubel, Oct 26 2019
(GAP) List([0..20], n-> Binomial(2^n, 3)); # G. C. Greubel, Oct 26 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
