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.

Showing 1-1 of 1 results.

A229764 Nim sequence of MARK: the game on n counters in which the legal moves are to remove 1 counter or to halve the number of counters and round down.

Original entry on oeis.org

0, 1, 0, 2, 1, 2, 0, 1, 0, 2, 0, 1, 2, 1, 0, 2, 1, 2, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1, 2, 0, 1, 0, 2, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1, 2, 0, 1, 2, 1, 0, 2, 1, 2, 0, 1, 0, 2, 0, 1, 2, 1, 0, 2, 1, 2, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1, 2, 0, 1, 2, 1, 0, 2, 1, 2, 0, 1, 0, 2, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1
Offset: 0

Views

Author

Nathan Fox, Sep 28 2013

Keywords

Comments

Is this a shifted version of A036578? - R. J. Mathar, Sep 30 2013 [Yes: see Thm. 4 in Fraenkel (2011). Don Reble, Nov 02 2023]

Crossrefs

Positions of zeros after a(0) given by A036554.

Programs

  • Maple
    a:=proc(n) local i:
    option remember:
        if n = 0 then
            return 0:
        else
            for i from 0 while i in {a(n-1), a(floor(n/2))} do od:
        return i:
        fi:
    end:
  • Mathematica
    a[0]=0; a[n_] := a[n]=(i=0; While[i==a[n-1] || i==a[Floor[n/2]], i++]; i);
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Dec 06 2017, from Maple *)
Showing 1-1 of 1 results.