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!)
A234964 Numbers of the form 123...n - (n+1) 1

%I #9 Jan 13 2014 10:42:16

%S 9,119,1229,12339,123449,1234559,12345669,123456779,12345678899,

%T 1234567890999,123456789101099,12345678910111199,1234567891011121299,

%U 123456789101112131399,12345678910111213141499,1234567891011121314151599,123456789101112131415161699

%N Numbers of the form 123...n - (n+1)

%e a(3) = 123 - 4 = 119.

%e a(4) = 1234 - 5 = 1229.

%e a(5) = 12345 - 6 = 12339.

%e etc.

%o (Python)

%o def Concatenate(x):

%o ..num = ''

%o ..for n in range(1,x+1):

%o ....num += str(n)

%o ..return int(num)

%o {print(Concatenate(x)-(x+1)) for x in range(1,50)}

%Y Cf. A007908.

%K nonn,base

%O 2,1

%A _Derek Orr_, Jan 02 2014

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 September 5 17:16 EDT 2024. Contains 375700 sequences. (Running on oeis4.)