OFFSET
1,1
EXAMPLE
Sum of all 1-digit Riordan numbers is 1 + 0 + 1 + 1 + 3 + 6 = 12.
Sum of all 2-digit Riordan numbers is 15 + 36 + 91 = 142.
Sum of all 3-digit Riordan numbers is 232 + 603 = 835.
MATHEMATICA
digNum[n_] := Length @ IntegerDigits[n]; rio[0] = 1; rio[1] = 0; rio[n_] := rio[n] = (n - 1)*(2*rio[n - 1] + 3*rio[n - 2])/(n + 1); digCount = 0; sum = 0; cumsum = {}; Do[r = rio[n]; If[digNum[r] > digCount, digCount++; AppendTo[cumsum, sum]]; sum += r, {n, 0, 50}]; Differences[cumsum] (* Amiram Eldar, Nov 30 2019 *)
CROSSREFS
KEYWORD
nonn,base,less
AUTHOR
Parthasarathy Nambi, Dec 06 2007
EXTENSIONS
More terms from Amiram Eldar, Nov 30 2019
STATUS
approved