The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A367358 Indices k at which either the leading digit or the length of A121805(k) changes. 1

%I #12 Nov 22 2023 08:16:36

%S 1,2,3,4,5,7,8,11,13,17,19,21,22,24,45,69,90,107,127,145,164,185,204,

%T 422,614,822,1007,1174,1392,1585,1757,1943,4115,6039,8123,9974,11641,

%U 13814,15738,17822,19673,41413,60643,81477,99995,114281,132138,151369,172201,190720,408111,646206,854539,1039724,1373058,1551630,1743937,1952271

%N Indices k at which either the leading digit or the length of A121805(k) changes.

%o (Python)

%o def agen(): # generator of terms

%o n, an, y, prev_lead, prev_length = 1, 1, 1, None, None

%o while y < 10:

%o san = str(an)

%o lead, length = san[0], len(san)

%o yield n

%o an, y = an + 10*(an%10), 1

%o while y < 10:

%o if str(an+y)[0] == str(y):

%o an += y

%o break

%o y += 1

%o print(list(agen())) # _Michael S. Branicky_, Nov 22 2023

%Y Cf. A121805, A366487, A367359.

%K nonn,base,fini,full

%O 1,2

%A _N. J. A. Sloane_, Nov 21 2023

%E More terms from _Michael S. Branicky_, Nov 22 2023

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 May 23 13:40 EDT 2024. Contains 372763 sequences. (Running on oeis4.)