OFFSET
1,1
COMMENTS
Any real number in the range (0,1), having infinite number of nonzero binary digits, can be represented by a monotonic infinite sequence, such a way that: n is in the sequence iff the n-th digit in the fraction part of the number is 1. See also A092855.
An example for the inverse mapping is A051006.
LINKS
PROG
(PARI) {/* mtinv(x)= /*Returns the inverse binary mapping of x into a monotonic sequence */ local(z, v=[], r=[], l); z=frac(x); v=binary(z)[2]; l=matsize(v)[2]; for(i=1, l, if(v[i]==1, r=concat(r, i))); return(r)} }
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ferenc Adorjan (fadorjan(AT)freemail.hu)
STATUS
approved