The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A040114 List of absolute values of differences between digits of 10, 11, 12, ..., listed digit by digit. 7
1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET
10,4
COMMENTS
Start with the empty sequence. For n = 10, 11, 12, ... do the following. Let the decimal expansion of n be abcd...efg, say. Append the numbers |a-b|, |b-c|, |c-d|, ... |e-f|, |f-g| to the sequence.
The offset is slightly misleading since for n > 99 the index n is in no direct relation with the number whose digits are used to produce a(n), in contrast to A040115 where all digit-differences of n are concatenated, and leading zeros don't appear. For example, a(100) = 1 and a(101) = 0 are the two differences between the digits of 100. Similarly, a(100 + 2k) corresponds to the difference between first and second digit of 100 + k. Therefore, a(120) = 0. - M. F. Hasler, Nov 09 2019
LINKS
EXAMPLE
From M. F. Hasler, Nov 09 2019: (Start)
The first term is the difference between digits of 10, which is 1.
The second term is the difference between digits of 11, which is 0.
The 100th term is the difference between the first two digits of 100, 1-0 = 1.
The 101st term is the difference between the last two digits of 100, 0-0 = 0.
The 120th term is the difference between the first two digits of 110, 1-1 = 0: Here "leading zeros" are preserved, in contrast to A040115 where all digit-wise differences of any n are concatenated to one term, and leading zeros disappear.
(End)
When we reach n = 371, for example, we append 4 and 6 to the sequence.
MATHEMATICA
Flatten[Table[Abs[Differences[IntegerDigits[n]]], {n, 10, 200}]] (* Harvey P. Dale, Jun 28 2021 *)
CROSSREFS
Sequence in context: A297330 A037904 A070615 * A064834 A040163 A113608
KEYWORD
nonn,base,less
AUTHOR
EXTENSIONS
Definition clarified by N. J. A. Sloane, Aug 19 2008.
Name edited by M. F. Hasler, Nov 09 2019
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 May 14 12:12 EDT 2024. Contains 372532 sequences. (Running on oeis4.)