login

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 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A108971
Lexicographically earliest sequence such that in decimal representation sums of digits of consecutive terms differ exactly by 1 or -1.
9
1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 16, 15, 14, 13, 12, 11, 10, 20, 21, 22, 23, 24, 25, 26, 18, 19, 27, 28, 29, 37, 36, 35, 34, 33, 32, 31, 30, 40, 41, 42, 43, 44, 45, 46, 38, 39, 47, 48, 49, 57, 56, 55, 54, 53, 52, 51, 50, 60, 61, 62, 63, 64, 65, 66, 58, 59, 67, 68, 69, 77, 76, 75
OFFSET
1,2
COMMENTS
Permutation of the natural numbers with inverse A179977; A179978(n)=a(a(n)); A179979 gives fixed points: a(A179979(n))=A179979(n).
abs(A007953(a(n+1)) - A007953(a(n))) = 1.
A179987(n)=A007953(a(n)); A007953(a(A179988(n)))=n; a(A179988(n))=A051885(n+1). - Reinhard Zumkeller, Aug 09 2010, Jul 10 2011
CROSSREFS
Sequence in context: A322260 A133504 A335492 * A179977 A326298 A372281
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Jul 27 2005
EXTENSIONS
Comment corrected and extended by Reinhard Zumkeller, Aug 04 2010
STATUS
approved