login

Revision History for A253415

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing entries 1-10 | older changes
Smallest missing number within the first n terms in A095258.
(history; published version)
#12 by Alois P. Heinz at Tue Jan 25 15:57:01 EST 2022
STATUS

reviewed

approved

#11 by Michael De Vlieger at Tue Jan 25 14:49:10 EST 2022
STATUS

proposed

reviewed

#10 by Chai Wah Wu at Tue Jan 25 14:23:31 EST 2022
STATUS

editing

proposed

#9 by Chai Wah Wu at Tue Jan 25 14:23:26 EST 2022
PROG

(Python)

from itertools import islice

from sympy import divisors

def A253415_gen(): # generator of terms, first term is a(2)

bset, m, s = {1}, 2, 3

while True:

for d in divisors(s):

if d not in bset:

bset.add(d)

while m in bset:

m += 1

yield m

s += d

break

A253415_list = list(islice(A253415_gen(), 30)) # Chai Wah Wu, Jan 25 2022

STATUS

approved

editing

#8 by OEIS Server at Sun Jan 23 21:43:40 EST 2022
LINKS

Michael De Vlieger, <a href="/A253415/b253415_1.txt">Table of n, a(n) for n = 2..10000</a> (terms 2..797 from Reinhard Zumkeller)

#7 by Alois P. Heinz at Sun Jan 23 21:43:40 EST 2022
STATUS

proposed

approved

Discussion
Sun Jan 23
21:43
OEIS Server: Installed new b-file as b253415.txt.  Old b-file is now b253415_1.txt.
#6 by Michael De Vlieger at Sun Jan 23 16:07:38 EST 2022
STATUS

editing

proposed

#5 by Michael De Vlieger at Sun Jan 23 16:07:16 EST 2022
LINKS

Reinhard Zumkeller, Michael De Vlieger, <a href="/A253415/b253415_1.txt">Table of n, a(n) for n = 2..10000</a> (terms 2..797</a> from Reinhard Zumkeller)

MATHEMATICA

c[_] = 0; c[1] = j = 1; u = 2; s = 3; Reap[Do[d = Divisors[s]; k = 1; While[c[d[[k]]] > 0, k++]; Set[k, d[[k]]]; Set[c[k], i]; If[k == u, While[c[u] > 0, u++]]; Sow[u]; j = k; s += k, {i, 2, 2^12}]][[-1, -1]] (* Michael De Vlieger, Jan 23 2022 *)

STATUS

approved

editing

#4 by Reinhard Zumkeller at Wed Dec 31 17:42:37 EST 2014
STATUS

editing

approved

#3 by Reinhard Zumkeller at Wed Dec 31 17:32:29 EST 2014
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).