A248110 Table read by rows: n-th row contains the q successors of n, where q = A007953(n), the digit sum of n in decimal representation.
2, 3, 4, 4, 5, 6, 5, 6, 7, 8, 6, 7, 8, 9, 10, 7, 8, 9, 10, 11, 12, 8, 9, 10, 11, 12, 13, 14, 9, 10, 11, 12, 13, 14, 15, 16, 10, 11, 12, 13, 14, 15, 16, 17, 18, 11, 12, 13, 13, 14, 15, 14, 15, 16, 17, 15, 16, 17, 18, 19, 16, 17, 18, 19, 20, 21, 17, 18, 19, 20
Offset: 1
Examples
. n | T(n,*) | A007953(n) . ---+------------------------------------------+----------- . 1 | 2 | 1 . 2 | 3, 4 | 2 . 3 | 4, 5, 6 | 3 . 4 | 5, 6, 7, 8 | 4 . 5 | 6, 7, 8, 9, 10 | 5 . 6 | 7, 8, 9, 10, 11, 12 | 6 . 7 | 8, 9, 10, 11, 12, 13, 14 | 7 . 8 | 9, 10, 11, 12, 13, 14, 15, 16 | 8 . 9 | 10, 11, 12, 13, 14, 15, 16, 17, 18 | 9 . 10 | 11 | 1 . 11 | 12, 13 | 2 . 12 | 13, 14, 15 | 3 . 13 | 14, 15, 16, 17 | 4 . 14 | 15, 16, 17, 18, 19 | 5 . 15 | 16, 17, 18, 19, 20, 21 | 6 . 16 | 17, 18, 19, 20, 21, 22, 23 | 7 . 17 | 18, 19, 20, 21, 22, 23, 24, 25 | 8 . 18 | 19, 20, 21, 22, 23, 24, 25, 26, 27 | 9 . 19 | 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 | 10 . 20 | 21, 22 | 2
Links
- Reinhard Zumkeller, Rows n = 1..1000 of triangle, flattened
Programs
-
Haskell
a248110 n k = a248110_tabf !! (n-1) !! (k-1) a248110_row n = a248110_tabf !! (n-1) a248110_tabf = map (\x -> [x + 1 .. x + a007953 x]) [1 ..]
Comments