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.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A367359 Value of A121805(k) for k = A367358(n). 1

%I #12 Nov 22 2023 23:56:19

%S 1,12,35,94,135,248,331,461,530,651,744,809,908,1068,2070,3039,4093,

%T 5012,6013,7042,8026,9055,10058,20047,30092,40017,50008,60054,70063,

%U 80065,90022,100058,200051,300060,400093,500028,600074,700013,800022,900055,1000006,2000047,3000008,4000061,5000034,6000055,7000008,8000056,9000013,10000036,20000038,30000029,40000039,50000030,60000051,70000064,80000064,90000077

%N Value of A121805(k) for k = A367358(n).

%C These are the terms in A121805 where either the leading digit or the length has just changed.

%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 if lead != prev_lead or length != prev_length:

%o yield an

%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 n, prev_lead, prev_length = n+1, lead, length

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

%Y Cf. A121805, A366487, A367358.

%K nonn,base,fini,full

%O 1,2

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

%E More than the usual number of terms are shown in order to match the data in A367358.

%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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 18 10:39 EDT 2024. Contains 373479 sequences. (Running on oeis4.)