The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A358403 The index of A358402 where n first appears, or 0 if n never appears. 3
 1, 3, 6, 9, 25, 21, 17, 109, 198, 67, 860, 114, 148, 261, 57, 137, 82, 37, 52, 215, 447, 43, 105, 404, 267, 163, 414, 94, 154, 1292, 184, 716, 142, 669, 243, 73, 1685, 126, 360, 209, 329, 324, 355, 88, 542, 300, 887, 366, 422, 492, 1053, 1754, 256, 941, 946, 711, 679, 178, 283, 3273, 2221, 225 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,2 COMMENTS See A358402 for further details. LINKS Table of n, a(n) for n=0..61. PROG (Python) from itertools import count, islice def agen(): k, an, first, prev = 0, 0, {0: 1}, {0: 1} for n in count(2): while k in first: yield first[k]; k += 1 an1 = 0 if first[an] == n-1 else min(n-1-prev[an], first[an]) if an1 not in first: first[an1] = prev[an1] = n prev[an] = n-1 an = an1 print(list(islice(agen(), 62))) # Michael S. Branicky, Nov 14 2022 CROSSREFS Cf. A358402, A358405, A358406, A181391. Sequence in context: A329863 A026095 A061929 * A318032 A326160 A301536 Adjacent sequences: A358400 A358401 A358402 * A358404 A358405 A358406 KEYWORD nonn AUTHOR Scott R. Shannon, Nov 14 2022 STATUS approved

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

Last modified August 7 05:36 EDT 2024. Contains 375008 sequences. (Running on oeis4.)