The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 56th year, we are closing in on 350,000 sequences, and we’ve crossed 9,700 citations (which often say “discovered thanks to the OEIS”).

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A032981 Positive numbers with the property that all pairs of consecutive base-10 digits differ by 0 or 1. 9
 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 21, 22, 23, 32, 33, 34, 43, 44, 45, 54, 55, 56, 65, 66, 67, 76, 77, 78, 87, 88, 89, 98, 99, 100, 101, 110, 111, 112, 121, 122, 123, 210, 211, 212, 221, 222, 223, 232, 233, 234, 321, 322, 323, 332, 333, 334, 343, 344, 345 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS a(n) = A178403(n+1) for n < 38. - Reinhard Zumkeller, May 27 2010 LINKS Alois P. Heinz, Table of n, a(n) for n = 1..10000 MATHEMATICA okQ[n_]:=Max[Abs[Last[#]-First[#]]&/@Partition[IntegerDigits[n], 2, 1]]<2 Select[Range[350], okQ]  (* Harvey P. Dale, Feb 14 2011 *) PROG (Haskell) a032981 n = a032981_list !! (n-1) a032981_list = map read \$ filter f \$ map show [1..] :: [Int] where    f ps = all (`elem` neighbours) \$ zipWith ((. return) . (:)) ps (tail ps)    neighbours = "09" : "90" : zipWith ((. return) . (:))       (digs ++ tail digs ++ init digs) (digs ++ init digs ++ tail digs)    digs = "0123456789" -- Reinhard Zumkeller, Feb 14 2015 CROSSREFS Cf. A068148 (primes). Sequence in context: A178403 A134336 A131207 * A136332 A023766 A023793 Adjacent sequences:  A032978 A032979 A032980 * A032982 A032983 A032984 KEYWORD nonn,base AUTHOR 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.

Last modified December 1 13:38 EST 2021. Contains 349429 sequences. (Running on oeis4.)