OFFSET
0,1
COMMENTS
Suppose that r = (r(n)) is a sequence satisfying (i) 1 = r(1) > r(2) > r(3) > ... and (ii) r(n) -> 0. For x in (0,1], let n(1) be the index n such that r(n+1) , x <= r(n), and let L(1) = r(n(1))-r(n(1)+1). Let n(2) be the index n such that r(n(1)+1) < x <= r(n(1)+1) + L(1)r(n), and let L(2) = (r(n(2))-r(r(n)+1)L(1). Continue inductively to obtain the sequence (n(1), n(2), n(3), ... ), the r-nested interval sequence of x. Taking r = (1/n!) gives the factorial-nested interval sequence of x.
Conversely, given a sequence s= (n(1),n(2),n(3),...) of positive integers, the number x having satisfying NI(x) = s is the sum of left-endpoints of nested intervals (r(n(k)+1), r(n(k))]; i.e., x = sum{L(k)r(n(k+1)+1), k >=1}, where L(0) = 1.
See A269970 for a guide to related sequences.
EXAMPLE
x = 0.59045235435205548168124328101350...
MATHEMATICA
r[n_] := 1/n!; n[k_] := k; Table[n[k], {k, 1, 1000}];
len[1] = r[n[1]] - r[n[1] + 1];
len[k_] := len[k - 1]*(r[n[k]] - r[n[k] + 1])
sum = r[n[1] + 1] + Sum[len[i]*r[n[i + 1] + 1], {i, 1, 300}];
g = N[sum, 150]
RealDigits[g, 10, 100][[1]]
CROSSREFS
KEYWORD
AUTHOR
Clark Kimberling, Mar 08 2016
STATUS
approved