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.

A377926 Indices of records in A228407.

This page as a plain text file.
%I A377926 #15 Dec 15 2024 04:40:13
%S A377926 0,1,4,8,13,15,22,28,29,30,31,62,78,94,108,138,169,205,238,279,290,
%T A377926 291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,
%U A377926 419,519,611,667,884,3341,3415,3839,4623,4665,5974,5975,5976,5977,5978,5979,5980,5981,5982,5983,5984,5985,5986,5987,5988,5989,5990,5991,5992,5993,5994,5995,5996,5997,5998
%N A377926 Indices of records in A228407.
%H A377926 Chai Wah Wu, <a href="/A377926/b377926.txt">Table of n, a(n) for n = 1..10000</a> (terms 1..514 from N. J. A. Sloane)
%o A377926 (Python)
%o A377926 from itertools import islice
%o A377926 from collections import Counter
%o A377926 def A377926_gen(): # generator of terms
%o A377926     yield from (0,1)
%o A377926     l, s, b, c, j = Counter('11'), 1, {11}, 11, 1
%o A377926     while True:
%o A377926         i = s
%o A377926         while True:
%o A377926             if i not in b:
%o A377926                 li, o = Counter(str(i)), 0
%o A377926                 for d in (l+li).values():
%o A377926                     if d % 2:
%o A377926                         if o > 0:
%o A377926                             break
%o A377926                         o += 1
%o A377926                 else:
%o A377926                     j += 1
%o A377926                     if i>c:
%o A377926                         yield j
%o A377926                         c = i
%o A377926                     l = li
%o A377926                     b.add(i)
%o A377926                     while s in b:
%o A377926                         b.remove(s)
%o A377926                         s += 1
%o A377926                     break
%o A377926             i += 1
%o A377926 A377926_list = list(islice(A377926_gen(),40)) # _Chai Wah Wu_, Dec 14 2024
%Y A377926 Cf. A228407, A229218, A377925.
%K A377926 nonn,base
%O A377926 1,3
%A A377926 _N. J. A. Sloane_, Dec 14 2024