OFFSET
0,2
COMMENTS
FORMULA
MATHEMATICA
f[n_] := DigitCount[n, 3] /. {a_, b_, c_} -> 2a + b + 0c; Array[f, 105, 0] (* Robert G. Wilson v, Jul 31 2012 *)
PROG
(PARI) {a(n)=local(M=matrix(n+1, n+1, r, c, (binomial(r-1, c-1)+1)%3-1)^2, L=sum(i=1, #M, -(M^0-M)^i/i)); return(sum(k=0, n, L[n+1, k+1]))}
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Jul 08 2006
STATUS
approved