OFFSET
5,6
LINKS
Andrew Howroyd, Table of n, a(n) for n = 5..989
Christopher Hunt Gribble, C++ program
EXAMPLE
The first 9 rows of T(n,k) are:
.\ k 0 1 2
n
5 1 1
6 1 1
7 1 2
8 1 2
9 1 3
10 1 3 1
11 1 4 2
12 1 4 4
13 1 5 6
MATHEMATICA
T[n_, k_] := (Binomial[n - 4k, k] + Boole[EvenQ[k] || OddQ[n]] Binomial[(n - 4k - Mod[n, 2])/2, Quotient[k, 2]])/2; Table[T[n, k], {n, 5, 20}, {k, 0, Quotient[n, 5]}] // Flatten (* Jean-François Alcover, Oct 06 2017, after Andrew Howroyd *)
PROG
(C++) See Gribble link.
(PARI)
T(n, k)={(binomial(n-4*k, k) + (k%2==0||n%2==1)*binomial((n-4*k-n%2)/2, k\2))/2}
for(n=5, 20, for(k=0, (n\5), print1(T(n, k), ", ")); print) \\ Andrew Howroyd, May 29 2017
CROSSREFS
KEYWORD
tabf,nonn
AUTHOR
Christopher Hunt Gribble, Feb 23 2014
EXTENSIONS
Terms extended and xrefs updated by Christopher Hunt Gribble, Apr 26 2015
Terms a(27) and beyond from Andrew Howroyd, May 29 2017
STATUS
approved