login
This site is supported by donations 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. 3
1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 23, 34, 45, 56, 67, 78, 89, 123, 234, 345, 456, 567, 678, 789, 1234, 2345, 3456, 4567, 5678, 6789, 12345, 23456, 34567, 45678, 56789, 123456, 234567, 345678, 456789, 1234567, 2345678, 3456789, 12345678, 23456789, 123456789 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

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.

LINKS

Table of n, a(n) for n=1..45.

MATHEMATICA

fQ[n_]:=Module[{id=IntegerDigits[n]}, n < 10 || Union[Differences[id]] == {1}]; Select[Range[123456789], fQ] (* Vladimir Joseph Stephan Orlovsky, Dec 29 2010 *)

Table[FromDigits/@Partition[Range[9], n, 1], {n, 9}]//Flatten (* Harvey P. Dale, Mar 19 2017 *)

CROSSREFS

Cf. A052017, A059043, A135643, A138142.

Sequence in context: A200372 A059043 A259236 * A228017 A227224 A236750

Adjacent sequences:  A138138 A138139 A138140 * A138142 A138143 A138144

KEYWORD

base,easy,fini,full,nonn

AUTHOR

Omar E. Pol, Mar 19 2008

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 25 22:17 EDT 2019. Contains 323576 sequences. (Running on oeis4.)