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 A298486 #14 Mar 27 2018 16:27:15 %S A298486 0,0,1,0,1,2,0,1,2,3,0,1,2,3,4,0,1,2,3,4,5,0,1,2,3,4,5,6,0,1,2,3,4,5, %T A298486 6,7,0,1,2,3,4,5,6,7,8,0,1,2,3,4,5,6,7,8,9,0,10,10,10,10,10,10,10,10, %U A298486 10,10,0,1,20,11,11,11,11,11,11,11,11,11,0,1 %N A298486 Square array T(n, k), n >= 0, k >= 0, read by antidiagonals upwards: T(n, k) = the (k+1)-th nonnegative number m such that n + m can be computed with carry in decimal base. %C A298486 The corresponding sequence for the binary base is A295653. %H A298486 Rémy Sigrist, <a href="/A298486/b298486.txt">Table of n, a(n) for n = 0..5150</a> %F A298486 For any n >= 0 and k >= 0: %F A298486 - T(0, k) = k, %F A298486 - T(9, k) = 10 * k, %F A298486 - T(10^n - 1, k) = 10^n * k, %F A298486 - T(n, 0) = 0, %F A298486 - T(n, 1) = 10^A122840(n+1), %F A298486 - T(n, k + A298372(n)) = k + 10^A004218(n+1) (i.e. each row is linear). %e A298486 Square array begins: %e A298486 n\k| 0 1 2 3 4 5 6 7 8 9 10 ... %e A298486 ---+------------------------------------------------- %e A298486 0| 0 1 2 3 4 5 6 7 8 9 10 ... <-- A001477 %e A298486 1| 0 1 2 3 4 5 6 7 8 10 11 ... %e A298486 2| 0 1 2 3 4 5 6 7 10 11 12 ... %e A298486 3| 0 1 2 3 4 5 6 10 11 12 13 ... %e A298486 4| 0 1 2 3 4 5 10 11 12 13 14 ... %e A298486 5| 0 1 2 3 4 10 11 12 13 14 20 ... %e A298486 6| 0 1 2 3 10 11 12 13 20 21 22 ... %e A298486 7| 0 1 2 10 11 12 20 21 22 30 31 ... %e A298486 8| 0 1 10 11 20 21 30 31 40 41 50 ... %e A298486 9| 0 10 20 30 40 50 60 70 80 90 100 ... <-- A008592 %e A298486 10| 0 1 2 3 4 5 6 7 8 9 10 ... %o A298486 (PARI) T(n,k,{base=10}) = my (v=0, p=1); while (k, my (r=base - (n%base)); v += p*(k%r); n \= base; k \= r; p *= base); v %Y A298486 Cf. A001477, A004218, A008592, A122840, A295653, A298372. %K A298486 nonn,base,tabl %O A298486 0,6 %A A298486 _Rémy Sigrist_, Jan 20 2018