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!)
A138141 Numbers with digits in ascending order that differ exactly by 1. 6

%I #25 Feb 15 2024 08:45:21

%S 1,2,3,4,5,6,7,8,9,12,23,34,45,56,67,78,89,123,234,345,456,567,678,

%T 789,1234,2345,3456,4567,5678,6789,12345,23456,34567,45678,56789,

%U 123456,234567,345678,456789,1234567,2345678,3456789,12345678,23456789,123456789

%N Numbers with digits in ascending order that differ exactly by 1.

%C This finite sequence has 45 members. The last member is 123456789. There are 10-k members with k digits. See A052017 for primes in this sequence. All members with 3 or more digits are straight-line numbers A135643.

%F a(n) = floor(((9*t^2 - 189*t + 18*n + 182) * (10^t - 1) - 18*t) / 162), where t = floor((21 - sqrt(369 - 8*n)) / 2). - _Christopher J. Thomas_, Feb 14 2024

%t Table[FromDigits/@Partition[Range[9],n,1],{n,9}]//Flatten (* _Harvey P. Dale_, Mar 19 2017 *)

%Y Cf. A052017, A059043, A135643, A138142.

%K base,easy,fini,full,nonn

%O 1,2

%A _Omar E. Pol_, Mar 19 2008

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 July 12 01:26 EDT 2024. Contains 374237 sequences. (Running on oeis4.)