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.

A006852 Step at which n is expelled in Kimberling's puzzle (A035486).

Original entry on oeis.org

1, 25, 2, 4, 3, 22, 6, 8, 10, 5, 32, 83, 44, 14, 7, 66, 169, 11, 49595, 9, 69, 16, 24, 12, 43, 47, 7598, 15, 133, 109, 13, 198, 19, 33, 18, 23, 58, 65, 60, 93167, 68, 17, 1523, 39, 75, 20, 99, 34, 117, 123
Offset: 1

Views

Author

Keywords

References

  • R. K. Guy, Unsolved Problems Number Theory, Sect E35.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A007063.
Cf. A175312. - Enrique Pérez Herrero, Mar 28 2010

Programs

  • Mathematica
    L[n_] := L[n] = (
    i = Floor[(n + 4)/3];
    j = Floor[(2*n + 1)/3];
    While[(i != j), j = Max[2*(i - j), 2*(j - i) - 1]; i++ ];
    Return[i];
    ) A006852[n_] := L[n]
    (* Enrique Pérez Herrero, Mar 28 2010 *)
  • PARI
    A006852(n)=
    {
    my(i,j);
    i=floor((n+4)/3);
    j=floor((2*n+1)/3);
    while((i!=j),
    j=max(2*i-2*j,-1-2*i+2*j);
    i++;
    ); return(i); }
    \\ Enrique Pérez Herrero, Feb 25 2010

Formula

a(n) >= floor((n+4)/3), n is expulsed from the unshuffled zone. - Enrique Pérez Herrero, Feb 25 2010

Extensions

7593 corrected to 7598 by Hans Havermann, July 1998