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.

A367348 a(1) = 1, a(2) = 11; thereafter, a(n+1) = a(n) + x + 10*y, where x and y are respectively the first and last digits of a(n).

This page as a plain text file.
%I A367348 #27 Nov 17 2023 07:33:35
%S A367348 1,11,22,44,88,176,237,309,402,426,490,494,538,623,659,755,812,840,
%T A367348 848,936,1005,1056,1117,1188,1269,1360,1361,1372,1393,1424,1465,1516,
%U A367348 1577,1648,1729,1820,1821,1832,1853,1884,1925,1976,2037,2109,2201,2213,2245,2297,2369
%N A367348 a(1) = 1, a(2) = 11; thereafter, a(n+1) = a(n) + x + 10*y, where x and y are respectively the first and last digits of a(n).
%C A367348 This sequence and A367347 are simple models for the Commas sequence A121805.
%H A367348 N. J. A. Sloane, <a href="/A367348/b367348.txt">Table of n, a(n) for n = 1..20000</a>
%F A367348 a(837058) = A367347(888508) = 40000026, so a(837058+i) = A367347(888508+i) for i >= 0. - _Michael S. Branicky_, Nov 17 2023
%t A367348 Join[{1},NestList[#+First[IntegerDigits[#]]+10Mod[#,10]&,11,100]] (* _Paolo Xausa_, Nov 17 2023 *)
%o A367348 (Python)
%o A367348 from itertools import islice
%o A367348 def agen(): # generator of terms
%o A367348     yield 1
%o A367348     an = 11
%o A367348     while True:
%o A367348         yield an
%o A367348         s = str(an)
%o A367348         an += int(s[0]) + 10*int(s[-1])
%o A367348 print(list(islice(agen(), 55))) # _Michael S. Branicky_, Nov 17 2023
%Y A367348 Cf. A121805, A367347.
%K A367348 nonn,base
%O A367348 1,2
%A A367348 _N. J. A. Sloane_, Nov 16 2023