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.
%I A307629 #27 May 06 2019 08:53:46 %S A307629 0,0,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8,9,10,11,3,4,5, %T A307629 6,7,8,9,10,11,12,4,5,6,7,8,9,10,11,12,13,5,6,7,8,9,10,11,12,13,14,6, %U A307629 7,8,9,10,11,12,13,14,15,7,8,9,10,11,12,13,14,15,16,8,9,10,11,12,13,14,15,16,17,9,10,11,12,13,14,15,16,17,18,2,4,6 %N A307629 Let decimal expansion of n be d_1 d_2 ... d_k; a(n) = Sum_{i=1..k-1} Sum_{j=i+1..k} (d_i + d_j). %C A307629 More than the usual number of terms are shown in order to distinguish this from related sequences. %C A307629 Starts to differ from A093882 at A093882(101)=22 <> a(101)=4. - _R. J. Mathar_, May 06 2019 %H A307629 Michael De Vlieger, <a href="/A307629/b307629.txt">Table of n, a(n) for n = 0..10000</a> %F A307629 From _Alois P. Heinz_, Apr 19 2019: (Start) %F A307629 a(n) = A007953(n) * (A055642(n)-1). %F A307629 a(n) = A110805(n) - A007953(n). (End) %e A307629 For n<10 there is only one decimal digit so a(n)=0. %e A307629 a(102) = 1+0 + 1+2 + 0+2 = 6. %p A307629 a:= n-> (d-> (nops(d)-1)*add(i, i=d))(convert(n, base, 10)): %p A307629 seq(a(n), n=0..120); # _Alois P. Heinz_, Apr 19 2019 %t A307629 Array[Total@ Flatten@ Subsets[IntegerDigits@ #, {2}] &, 103, 0] (* _Michael De Vlieger_, Apr 19 2019 *) %Y A307629 Cf. A007953, A055642, A110805, A138953. %Y A307629 Suggested by A307560. %K A307629 nonn,look,base %O A307629 0,12 %A A307629 _N. J. A. Sloane_, Apr 19 2019