OFFSET
0,3
COMMENTS
Diagonal sums of A113045.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..10000
FORMULA
a(n) = Sum_{k=0..floor(n/2)} binomial(n-k, floor((n-2k)/2)) mod 3.
MAPLE
A113046:=n->add(binomial(n-k, floor((n-2*k)/2)) mod 3, k=0..floor(n/2)): seq(A113046(n), n=0..150); # Wesley Ivan Hurt, Jul 25 2017
PROG
(PARI) A113046(n) = sum(k=0, n\2, binomial(n-k, ((n-(2*k))\2))%3); \\ Antti Karttunen, Jul 24 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 11 2005
STATUS
approved