reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(Python)
def A213626(n): return sum((-1 if (i&(i>>1)).bit_count()&1 else 1)*sum((-1 if (j&(j>>1)).bit_count()&1 else 1)*sum(-1 if (k&(k>>1)).bit_count()&1 else 1 for k in range(j+1, n+1)) for j in range(i+1, n+1)) for i in range(n+1)) # Chai Wah Wu, Feb 12 2023
approved
editing
proposed
approved
editing
proposed
b[n_] := b[n] = Module[{q, r}, If[n==0, 1, {q, r}=QuotientRemainder[n, 2]; If[r == 0, b[q], b[q]*(-1)^q]]];
s[j_] := s[j] = If[j < 0, 0, s[j-1] + b[j]];
t[k_] := t[k] = If[k < 1, 0, t[k-1] + b[k]*s[k-1]];
a[n_] := a[n] = If[n < 2, 0, a[n-1] + b[n]*t[n-1]];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Jun 01 2022, after Alois P. Heinz *)
approved
editing
editing
approved
seq (a(n), n=0..100);
approved
editing
editing
approved