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-2 of 2 results.

A253443 Smallest missing number within the first n terms in A109890.

Original entry on oeis.org

4, 4, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 34, 37, 37, 37, 37, 37
Offset: 4

Views

Author

Reinhard Zumkeller, Jan 01 2015

Keywords

Comments

A253584(n) occurs exactly A253444(n) times.

Crossrefs

Cf. A095258, A095259, A253444 (run lengths), A253584 (range), A253415.

Programs

  • Haskell
    import Data.List (insert)
    a253443 n = a253443_list !! (n-4)
    a253443_list = f (4, []) 6 where
       f (m,ys) z = g $ dropWhile (< m) $ a027750_row' z where
         g (d:ds) | elem d ys = g ds
                  | otherwise = m : f (ins [m, m+1 ..] (insert d ys)) (z + d)
         ins (u:us) vs'@(v:vs) = if u < v then (u, vs') else ins us vs
    -- Reinhard Zumkeller, Jan 03 2015

A253444 Lengths of runs of identical terms in A253443.

Original entry on oeis.org

2, 4, 14, 17, 27, 1, 21, 62, 34, 86, 86, 47, 186, 94, 53, 212, 226, 148, 251, 696, 1484, 630, 1870, 563, 813, 188, 1222, 154, 960, 6654, 1980, 8872, 10027, 3628, 5724, 6330, 12059, 10418, 10169, 4192, 4868
Offset: 1

Views

Author

Reinhard Zumkeller, Jan 01 2015

Keywords

Comments

A253584(n) occurs exactly a(n) times in A253443.

Crossrefs

Programs

  • Haskell
    import Data.List (group)
    a253444 n = a253444_list !! (n-1)
    a253444_list = map length $ group a253443_list
  • Mathematica
    nn = 2^14; c[_] := False;
    Array[Set[{a[#], c[#]}, {#, True}] &, 2]; u = s = a[1] + a[2];
    Differences@ Reap[Monitor[Do[k = SelectFirst[Divisors[s], ! c[#] &];
      c[k] = True; s += k;
    If[k == u, Sow[n]; While[c[u], u++]], {n, 3, nn}], n] ][[-1, 1]] (* Michael De Vlieger, Apr 27 2024 *)

Extensions

More terms from Michael De Vlieger, Apr 27 2024
Showing 1-2 of 2 results.