login
Number of digits of the representation of n in the alternating sexagesimal-decimal number system.
3

%I #12 Jan 16 2018 05:09:58

%S 1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,

%T 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,

%U 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3

%N Number of digits of the representation of n in the alternating sexagesimal-decimal number system.

%C For a(1)..a(59) this sequence coincides with A055642.

%C For the alternating sexagesimal-decimal number system see a comment in A055643.

%F a(n) = 1 for n = 1..9, a(n) = 2 for n = 10..59, a(n) = 3 for n = 60..599, a(n) = 4 for n = 600..3600, ..., i.e., a(n) = k, k >= 1, for n = A281863(k-1)..A281863(k)-1.

%t With[{nn = 120}, IntegerLength[Range@ 120, MixedRadix[Flatten@ ConstantArray[{6, 10}, {2 Ceiling@ Log[60, nn]}]]]] (* Version 10.2, or *)

%t Table[StringLength@ If[StringTake[#, 1] == "0", StringDrop[#, 1], #] &@ StringJoin@ Map[If[# < 10, StringJoin["0", ToString@ #], ToString@ #] &, IntegerDigits[n, 60]], {n, 120}] (* _Michael De Vlieger_, Feb 20 2017 *)

%Y Cf. A055642, A281863, A055643.

%K nonn,easy

%O 1,10

%A _Wolfdieter Lang_, Feb 20 2017