OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..300
J. Brandts and C. 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
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
(Sage) [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
AUTHOR
STATUS
approved