login
Length of longest Roman numeral representation of a number <= n.
0

%I #26 Sep 06 2023 21:12:17

%S 1,2,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,

%T 6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,

%U 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8

%N Length of longest Roman numeral representation of a number <= n.

%F a(n) = max_{i=1..n} A006968(i).

%Y Cf. A006968.

%K nonn,base,easy

%O 1,2

%A _Leyang Zou_, Aug 05 2023