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!)
A118569 Lucky numbers with consecutive digits. 0
21, 43, 67, 87, 321, 4321, 4567, 6789, 78901, 432109, 9012345, 67890123, 109876543, 123456789, 6543210987, 8901234567 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Digits can be in ascending or descending order. After 9 comes 0.
No more terms below 10^9. - Amiram Eldar, Nov 16 2019
No more terms below 10^10. - Kevin P. Thompson, Mar 04 2022
LINKS
MATHEMATICA
consecutiveQ[n_Integer] := Block[{id = IntegerDigits@n}, MemberQ[{{1}, {9}}, Union@Mod[Rest@id - Most@id, 10]]] (* Bobby R. Treat (drbob(at)bigfoot.com), May 10 2006 *)
lst = Range[1, 10^8, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; Select[t, consecutiveQ@# &] (* Robert G. Wilson v, May 11 2006 *)
CROSSREFS
Cf. A000959.
Sequence in context: A041870 A041868 A135391 * A195049 A041874 A041872
KEYWORD
base,more,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), May 07 2006
EXTENSIONS
a(9)-a(12) from Robert G. Wilson v, May 11 2006
a(13)-a(14) from Amiram Eldar, Nov 16 2019
a(15)-a(16) from Kevin P. Thompson, Mar 04 2022
STATUS
approved

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 April 29 15:45 EDT 2024. Contains 372114 sequences. (Running on oeis4.)