floorlog23
Floorlog23 is the floor of the logarithm with base 23 for a positive real input. Formally, floorlog23(x) = floor(log_23(x)) for x > 0. The range consists of the nonnegative integers, and the function is undefined for x ≤ 0. It increases in a stepwise fashion, with jumps at powers of 23.
For integers, floorlog23(n) = k if and only if 23^k ≤ n < 23^{k+1}. Equivalently, floorlog23(n) gives the number
Computation is straightforward with standard logarithms: floorlog23(x) = floor(ln x / ln 23) or floor(log10 x / log10 23).
Examples: floorlog23(1) = 0, floorlog23(22) = 0, floorlog23(23) = 1, floorlog23(528) = 2, floorlog23(529) = 2, and floorlog23(12167) = 3, since
Applications of floorlog23 include determining the number of digits of a number in base 23, estimating sizes