Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118569
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118569 Lucky numbers with consecutive digits. +0
1
21, 43, 67, 87, 321, 4321, 4567, 6789, 78901, 432109, 9012345, 67890123 (list; graph; listen)
OFFSET

1,1

COMMENT

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 this_sequence A041874 A041872 A041876

Adjacent sequences: A118566 A118567 A118568 this_sequence 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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 18 20:14 EST 2008. Contains 147244 sequences.


AT&T Labs Research