cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A241731 The number of P-positions in the game of Nim with up to 5 piles, allowing for piles of zero, such that the number of objects in the largest pile is n.

This page as a plain text file.
%I A241731 #21 Feb 28 2018 15:04:34
%S A241731 1,15,45,195,165,555,1125,1995,645,1995,3525,5355,7605,10395,13845,
%T A241731 18075,2565,7755,13125,18795,24885,31515,38805,46875,55845,65835,
%U A241731 76965,89355,103125,118395,135285,153915,10245,30795,51525,72555,94005,115995
%N A241731 The number of P-positions in the game of Nim with up to 5 piles, allowing for piles of zero, such that the number of objects in the largest pile is n.
%C A241731 This is the finite difference of A241523.
%H A241731 T. Khovanova and J. Xiong, <a href="http://arxiv.org/abs/1405.5942">Nim Fractals</a>, arXiv:1405.594291 [math.CO] (2014), p. 9 and <a href="https://cs.uwaterloo.ca/journals/JIS/VOL17/Khovanova/khova6.html">J. Int. Seq. 17 (2014) # 14.7.8</a>.
%F A241731 If b = floor(log_2(n)) is the number of digits in the binary representation of n and c = n + 1 - 2^b, then a(n)= 10*2^(2*b)*(2*c-1) + 20*c^3 - 30*c^2 + 20*c - 5.
%e A241731 If the largest pile is 1, then there are 10 positions that are permutations of (0,0,0,1,1) plus 5 positions that are permutations of (0,1,1,1,1). Therefore, a(1)=15.
%t A241731 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], Max[#] == a &]], {a, 0, 50}]
%Y A241731 Cf. A241523, A241717 (3 piles), A241718 (4 piles).
%K A241731 nonn
%O A241731 0,2
%A A241731 _Tanya Khovanova_ and _Joshua Xiong_, Apr 27 2014