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.

A216059 Smallest number not in Collatz trajectory starting at n.

Original entry on oeis.org

2, 3, 6, 3, 3, 7, 3, 3, 3, 3, 3, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 7, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3
Offset: 1

Views

Author

Reinhard Zumkeller, Sep 01 2012

Keywords

Comments

a(n) <= 7; a(A007283(n)) = 7;
a(n) <> 4; a(n) <> 4; a(n) <> 6 for n > 3;
a(n) = A216022(n) + 1.

Crossrefs

Programs

  • Haskell
    import Data.List ((\\))
    a216059  n = head $ enumFromTo 1 (maximum ts + 1) \\ ts
       where ts = a070165_row n
  • Mathematica
    scoll[n_]:=Sort[NestWhileList[If[EvenQ[#],#/2,3#+1] &,n,#>1 &]]; Join[{2,3},Table[i=1; While[scoll[n][[i]]==i,i++]; i,{n,3,86}]] (* Jayanta Basu, May 27 2013 *)