M. F. Hasler: It should be clarified how this is meant to be a permutation of the odd integers. The usual definition of a permutation of the set S is a bijection of S into S.
M. F. Hasler: Also, why not start with a(0)=1 in oder to get a "permutation" (in the same sense) of *all* odd integers > 0, instead of starting with 3? (One would have to allow m=0 in that case, but as the formula says, m must always be such that 2^m is the largest power of 2 <= n, so it could and maybe should be defined that way. I think it is more natural to use that definition and be able to include 1, rather than to exclude 1 just to avoid necessity of stating the (given) maximality of m explicitly.)
Thomas Ordowski: One can obtain a permutation of all positive odd numbers by simply changing the formula to (k-2^m)*2^m-1, where 1 < 2^m < k odd. However, the formula (k-2^m)*2^m+1, where 1 < 2^m < k odd, is more basic with respect to the sorting numbers, where A(1) = 0. This gives a more natural definition of the explicit formula for the n-th term a(n) of the permutation of all odd numbers > 1 (see my formula). I use this first formula, slightly modified, namely (k-2^m)*2^(m-1)-1, [where 1 < 2^m < k odd], to define the permutation of all integers >= 0. It can be proven that all of these representations are unique, so these formulas give the corresponding permutations that I mention here. [End of quote].
--
You received this message because you are subscribed to the Google Groups "SeqFan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seqfan+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/seqfan/af9eb0be-86dc-4c6a-8047-b0391b0e1732n%40googlegroups.com.
Kevin Ryde: At "Note", normally don't want more than a hint at the nature of another sequence. Wouldn't have it's full sum definition.
Kevin Ryde: For an individual term formula, what you want is to get from n to k. By my reckoning it may be k = 2*A030530(n)+1. That sequence is (not unreasonably!) made by repetitions of each natural number (according as its bit length).
Kevin Ryde: A001855 "sorting numbers", meaning cumulative bit length, can get in as the n which is the first of a given k, much as you have, so that m = n - A001855((k-1)/2), or whatever name might give to (k-1)/2.
Kevin Ryde: In any case, which in keyword "new" time after approval, you can edit freely without signatures. Esp if the approval was a touch quicker than you expected :).
Kevin Ryde: I contemplated what n is the first of a given bit length M = floor(log2(k)), since the pattern is m = 1..M (inclusive) commences at that point. (Through to the next k bit length, next M). I made that point n = F(M) = (M-2)*2^(M-1) + 2, which is a little variation on A188716. So the task is to find M largest with n >= F(M), and there blocks of m = 1..M starting from, umm, k = 2^M + 1. (A division (n-F(M))/M says how far into those repetitions, etc etc.)
Thomas Ordowski: Okay, I deleted my signature, thanks! All your comments are welcome here.
Thomas Ordowski: Yes, it's worth thinking about what Kevin wrote...
Thomas Ordowski: Research in progress.