OFFSET
0,9
LINKS
FORMULA
a(n) = Sum_{k=1..floor(n/4)} Sum_{j=k..floor((n-k)/3)} Sum_{i=j..floor((n-j-k)/2)} [4*k = n-i-j], where [ ] is the Iverson bracket.
MATHEMATICA
Table[Sum[Sum[Sum[KroneckerDelta[4 k, n - i - j], {i, j, Floor[(n - j - k)/2]}], {j, k, Floor[(n - k)/3]}], {k, Floor[n/4]}], {n, 0, 80}]
Table[Count[IntegerPartitions[n, {4}], _?(#[[1]]==3#[[4]]&)], {n, 0, 80}] (* Harvey P. Dale, Mar 25 2021 *)
PROG
(PARI) first(n) = {n--; my(res = vector(n)); for(i = 1, n \ 6, for(j = 6*i, min(10*i, n), res[j] += 1 + min(abs(j - 6*i), abs(j - 10*i))\2 ) ); concat(0, res) } \\ David A. Corneth, Mar 25 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jan 06 2021
STATUS
approved