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.

A367337 Analog of A121805, but starting with 5.

This page as a plain text file.
%I A367337 #22 Nov 18 2023 13:13:00
%S A367337 5,61,78,159,251,263,295,348,432,456,521,536,602,628,715,772,799,897,
%T A367337 976,1037,1108,1189,1280,1281,1292,1313,1344,1385,1436,1497,1568,1649,
%U A367337 1740,1741,1752,1773,1804,1845,1896,1957,2029,2121,2133,2165,2217,2289,2381,2393,2425
%N A367337 Analog of A121805, but starting with 5.
%C A367337 This sequence is finite, with last term a(19706) = 999945.
%H A367337 N. J. A. Sloane, <a href="/A367337/b367337.txt">Table of n, a(n) for n = 1..19706</a>
%o A367337 (Python)
%o A367337 from itertools import islice
%o A367337 def agen(start=5): # generator of terms
%o A367337     an, y = start, 1
%o A367337     while y < 10:
%o A367337         yield an
%o A367337         an, y = an + 10*(an%10), 1
%o A367337         while y < 10:
%o A367337             if str(an+y)[0] == str(y):
%o A367337                 an += y
%o A367337                 break
%o A367337             y += 1
%o A367337 print(list(agen())) # _Michael S. Branicky_, Nov 18 2023
%Y A367337 Comma sequences in base 10, starting with 1, 2, 4, 5, 6, 7, 8, 9, 10 are A121805, A139284, A366492, A367337, A367350, A367351, A367352, A367353, A367354. Starting with 3 is trivial, and those starting with 11, 12, 13 are essentially duplicates.
%Y A367337 Cf. A330128, A330129.
%K A367337 nonn,base,fini,full
%O A367337 1,1
%A A367337 _N. J. A. Sloane_, Nov 14 2023