cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A040114 List of absolute values of differences between digits of 10, 11, 12, ..., listed digit by digit.

This page as a plain text file.
%I A040114 #19 Jan 30 2023 12:26:19
%S A040114 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,
%T A040114 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,
%U A040114 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
%N A040114 List of absolute values of differences between digits of 10, 11, 12, ..., listed digit by digit.
%C A040114 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.
%C A040114 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
%H A040114 T. D. Noe, <a href="/A040114/b040114.txt">Table of n, a(n) for n = 10..1902</a>
%e A040114 From _M. F. Hasler_, Nov 09 2019: (Start)
%e A040114 The first term is the difference between digits of 10, which is 1.
%e A040114 The second term is the difference between digits of 11, which is 0.
%e A040114 The 100th term is the difference between the first two digits of 100, 1-0 = 1.
%e A040114 The 101st term is the difference between the last two digits of 100, 0-0 = 0.
%e A040114 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.
%e A040114 (End)
%e A040114 When we reach n = 371, for example, we append 4 and 6 to the sequence.
%t A040114 Flatten[Table[Abs[Differences[IntegerDigits[n]]],{n,10,200}]] (* _Harvey P. Dale_, Jun 28 2021 *)
%Y A040114 Cf. A037904, A040115, A040163, A040997.
%K A040114 nonn,base,less
%O A040114 10,4
%A A040114 _Felice Russo_
%E A040114 Definition clarified by _N. J. A. Sloane_, Aug 19 2008.
%E A040114 Name edited by _M. F. Hasler_, Nov 09 2019