OFFSET
0,2
COMMENTS
Partial sums of A238759.
LINKS
T. Khovanova and J. Xiong, Nim Fractals, arXiv:1405.594291 [math.CO] (2014), p. 18 and J. Int. Seq. 17 (2014) # 14.7.8.
FORMULA
a(2n+1) = 11a(n) + 5a(n-1), a(2n+2) = a(n+1) + 15a(n).
EXAMPLE
There is 1 position (0,0,0,0,0) with a total of zero. There are 10 positions with a total of 2 that are permutations of (0,0,0,1,1). Therefore, a(1)=11.
MATHEMATICA
Table[Length[
Select[Flatten[
Table[{n, k, j, i, BitXor[n, k, j, i]}, {n, 0, a}, {k, 0, a}, {j,
0, a}, {i, 0, a}], 3], #[[5]] <= a &]], {a, 0, 35}]
(* Second program: *)
a[n_] := a[n] = Which[n <= 1, {1, 11}[[n+1]], OddQ[n], 11 a[(n-1)/2] + 5 a[(n-1)/2 - 1], EvenQ[n], a[(n-2)/2 + 1] + 15*a[(n-2)/2]];
Array[a, 34, 0] (* Jean-François Alcover, Dec 14 2018 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Tanya Khovanova and Joshua Xiong, May 02 2014
STATUS
approved