login
This site is supported by donations 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 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Digits can be in ascending or descending order. After 9 comes 0.

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 *) - Robert G. Wilson v (rgwv(at)rgwv.com), May 11 2006

CROSSREFS

Cf. A000959.

Sequence in context: A041870 A041868 A135391 * A195049 A041874 A041872

Adjacent sequences:  A118566 A118567 A118568 * A118570 A118571 A118572

KEYWORD

base,more,nonn

AUTHOR

Luc Stevens (lms022(AT)yahoo.com), May 07 2006

EXTENSIONS

a(9)-a(12) from Robert G. Wilson v (rgwv(at)rgwv.com), May 11 2006

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 05:29 EST 2012. Contains 205694 sequences.