OFFSET
0,2
FORMULA
a(n) = 1 + n + Sum_{k=0..n} floor(log_10(C(n,k))).
MAPLE
a:= n-> length(cat(seq(binomial(n, k), k=0..n))):
seq(a(n), n=0..57); # Alois P. Heinz, Jan 15 2024
MATHEMATICA
PROG
(PARI) a(n) = #concat(vector(n+1, k, Str(binomial(n, k-1)))); \\ Michel Marcus, Jan 18 2024
(Python)
from math import comb
def A369152(n): return sum(len(str(comb(n, k))) for k in range(n+1)) # Chai Wah Wu, Feb 15 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bartlomiej Pawlik, Jan 14 2024
STATUS
approved