login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A253415 Smallest missing number within the first n terms in A095258. 4
2, 4, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 22, 22, 22, 22, 22, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31 (list; graph; refs; listen; history; text; internal format)
OFFSET

2,1

LINKS

Reinhard Zumkeller, Table of n, a(n) for n = 2..797

PROG

(Haskell)

import Data.List (delete)

a253415 n = a253415_list !! (n-2)

a253415_list = f [2..] 1 where

   f xs z = g xs where

     g (y:ys) = if mod z' y > 0 then g ys else x : f xs' (z + y)

                where xs'@(x:_) = delete y xs

     z' = z + 2

-- Reinhard Zumkeller, Dec 31 2014

CROSSREFS

Cf. A095258, A095259, A253425 (run lengths).

Sequence in context: A278300 A034214 A317749 * A227401 A131813 A083038

Adjacent sequences:  A253412 A253413 A253414 * A253416 A253417 A253418

KEYWORD

nonn

AUTHOR

Reinhard Zumkeller, Dec 31 2014

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 7 02:11 EDT 2021. Contains 343636 sequences. (Running on oeis4.)