[math-fun] Knuth circle product [was ... Zeckendorf representation]
CONJECTURE: x o y = 3 x y - x [(y+1)/tau^2] - y [(x+1)/tau^2] . PROOF: Presently skimped. WANTED: x o y o z = symmetric function of x,y,z. NOTES: x o y == x (*) y previously; tau == (1 + sqrt(5))/2; [...] == floor, integer part. WFL
On 5/19/08, Fred lunnon <fred.lunnon@gmail.com> wrote:
CONJECTURE:
x o y = 3 x y - x [(y+1)/tau^2] - y [(x+1)/tau^2] .
PROOF: Presently skimped.
By overwhelming popular demand (thanks for the line in OEIS, NJAS!) I've finally been shamed into cobbling together a proof of the above --- spawning in the process another conjecture. Critical appraisal would be much appreciated, not to mention fulsome praise --- should any be forthcoming. WFL %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Theorem: Let x o y denote "circle" Fibonacci product (see A101330, A135090); then x o y = 3 x y - x [(y+1)/phi^2] - y [(x+1)/phi^2] (*) where phi = (1 + \sqrt 5)/2, psi = (1 - \sqrt 5)/2, [...] denotes floor function. Proof: Supposing x fixed and y varying, consider the forward differences f(y) = x o z - x o y with z = y+1, x o y = \sum_{i,j} x_i y_j F_{i+j}, x o z = \sum_{i,j} x_i z_j F_{i+j}. Case y_2 = 0: for some k >= 0, y = F_3 + F_5 + ... + F_{2k+1} + w, z = F_2 + F_3 + F_5 + ... + F_{2k+1} + w = F_{2k+2} + w, where w_i = 0 for i < 2k+4; f(y) = \sum_{i,j} x_i (z_j - y_j) F_{i+j} = \sum_i x_i (F_{2k+2+i} - F_{3+i} - F_{5+i} - ... - F_{2k+1+i}) = \sum_i x_i F_{2+i} = x o 1 = x @ 3. Case y_2 = 1: for some k >= 0, y = F_2 + F_4 + ... + F_{2k} + w, z = 2 F_2 + F_3 + F_5 + ... + F_{2k} + w = F_{2k+2} - F_1 + w, where w_i = 0 for i < 2k+3; f(y) = \sum_{i,j} x_i (z_j - y_j) F_{i+j} = \sum_i x_i (F_{2k+2+i} - F_{1+i} - 2 F_{2+i} - F_{4+i} - ... - F_{2k+i}) = \sum_i x_i (F_{3+i} - F_{2+i}) = x o 2 - x o 1 = \sum_i x_i F_{1+i} = x @ 2. Summing and collecting, x o y = \sum_{0 < z < y} f(y) = \sum_{0 < z < y} (1 - z_2)(x o 1) + (z_2)(x o 2 - x o 1) = (y - g(y))(x o 1) + g(y)(x o 2 - x o 1) = y (x o 1) + g(y)(x o 2 - 2(x o 1)), where we define g(z) = \sum_{0 < z < y} z_2. This is further simplified by iteration on x o 2 and x o 1 thus x o 1 = 1 o x = x 1o1 + g(x)(1o2 - 2 1o1) = 3 x - g(x), x o 2 = 2 o x = x 2o1 + g(x)(2o2 - 2 2o1) = 5 x - 2 g(x) (see A026274, A101345); substituting above, x o y = 3 x y - x g(y) - y g(x) [note the expected symmetry in x,y]. To eliminate g(z), it is shown in the lemma below that z_2 = [(z+2)/phi^2] - [(z+1)/phi^2], where z_2 denotes the least significant base-F digit of z; summing, g(z) = \sum_{0 < z < y} z_2 = [(z+1)/phi^2] (see A003849, A060144: final digit and sum properties omitted from OEIS!); substituting, finally x o y = 3 x y - x [(y+1)/phi^2] - y [(x+1)/phi^2], QED. [The theorem proof depends implicitly upon the value of the circle product being independent of arbitrary redistribution of the coefficients, consistent with the Fibonacci reccurrence F_{k+2} - F{k+1} - F_k = 0, during computation --- see [Knu88]. This feature permits us temporarily to ignore the uniqueness constraint, and postponing consideration of the more significant parts w above, then simply cancelling them. By symmetry, it also implies associativity.] Is there a similar expression for x o y o z ? A related operation is obtained by dropping the two initial zeros (see A101646), christened here the "arroba" product x @ y = \sum_{i,j} x_i y_j F_{i+j-2} . Conjecture: x @ y = x y - [(y+1)/phi^2] [(x+1)/phi^2] . (**) Via the relation x o y = (x o 1) @ y = (x @ 3) @ y the theorem above is implied easily by the conjecture. Lemma: x_2 = [(x+2)/phi^2] - [(x+1)/phi^2] = RP(x) say, (***) where x_2 denotes the least-significant nontrivial digit of x in base-F. Proof: Note that phi + psi = - phi psi = 1; phi^k = F_k phi + F_{k-1} . The explicit formula below for Fibonacci numbers should be well known [though evidently not by A000045, which --- amazingly --- gets it wrong]: F_k = (phi^k - psi^k)/sqrt5 [proved by showing that the RHS also satisfies F_{k+2} - F{k+1} - F_k = 0, etc]. So F_k/phi^2 - F_{k-2} = (phi^{k-2} - psi^{k+2} - phi^{k-2} + psi^{k-2})/sqrt5 = psi^k (phi^2 - phi^{-2})/sqrt5 = psi^k; and letting x = \sum_{k>=2} x_k F_k as usual, x/phi^2 - \sum x_k F_{k-2} = \sum x_k (F_k/phi^2 - F_{k-2}) = \sum x_k psi^k = e(x), say which lies in the range -1/phi^2 <= e(x) <= 1/phi [the extreme values occur when x_k = 1,0 for k odd,even, or vice-versa; then sum the geometric progressions]. Consequently d(x) = \sum x_k F_{k-2} represents the nearest integer to x/phi^2. Since d(x) is a non-decreasing integer function, the RHS will be 1 just when e(x+1) < 0 and e(x+2) > 0; and e(x) will be positive when the least k for which x_k = 1 is even, negative when odd, zero when x = 0. [Base-F representations are rendered x = (x_0 x_1) x_2 x_3 ... below.] Case x_2 = 0, x_3 = 1: x = (00)0101...0100..., x+1 = (00)0000...0010..., x+2 = (00)1000...0010...; so e(x+1) > 0, e(x+2) > 0, and RP(x) = 0. Case x_2 = 0, x_3 = 0: x = (00)001010...100..., x+1 = (00)101010...100..., x+2 = (00)000000...010...; so e(x+1) > 0, e(x+2) < 0, and RP(x) = 0. Case x_2 = 1, x_3 = 0: x = (00)1010...100..., x+1 = (00)0000...010..., x+2 = (00)1000...010...; so e(x+1) < 0, e(x+2) > 0, and RP(x) = 1. This covers all nonzero cases; the case x = 0 being trivial, we have shown that x_2 = RP(x) for all natural x, QED. [Knu88] D. E. Knuth, Fibonacci multiplication, Appl. Math. Lett. 1 (1988), 57-60. Fred Lunnon (24 May 2008) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Your formula for the circle product reminds me of this one for the Fibonacci series f_n: f_n = [phi^n / sqrt(5)] There's another formula that's exact and avoids the integer part function [] f_n = (phi^n - (-phi)^{-n})/sqrt(5) It seems like it would be easier to prove things about the circle product if you could find a similar expression. -- Mike Stay - metaweta@gmail.com http://math.ucr.edu/~mike http://reperiendi.wordpress.com
On 5/24/08, Mike Stay <metaweta@gmail.com> wrote:
Your formula for the circle product reminds me of this one for the Fibonacci series f_n: f_n = [phi^n / sqrt(5)]
Should read [phi^n / sqrt(5) + 1/2] [There must be something about this expression --- the version below is/was wrong in OEIS too!]
There's another formula that's exact and avoids the integer part function [] f_n = (phi^n - (-phi)^{-n})/sqrt(5) It seems like it would be easier to prove things about the circle product if you could find a similar expression.
I guess at this point you haven't ploughed through any of my last posting, which (I hope) proves the x o y conjecture, starting from just this formula. WFL
I now have proofs of both x o y = 3 x y - x [(y+1)/phi^2] - y [(x+1)/phi^2] and x @ y = x y - [(y+1)/phi^2] [(x+1)/phi^2] which I shan't inflict on everybody here --- if anyone wants a copy, let me know and I shall email the (corrected and extended) text file. WFL
On 5/27/08, Fred lunnon <fred.lunnon@gmail.com> wrote:
I now have proofs of both
x o y = 3 x y - x [(y+1)/phi^2] - y [(x+1)/phi^2]
and
x @ y = x y - [(y+1)/phi^2] [(x+1)/phi^2]
and (x o y) o z = 8 x y z - 3 (x' y z + x y' z + x y z') + (x y' z' + x' y z' + x' y' z) where x', y', z' denote [(x+1)/phi^2], [(y+1)/phi^2], [(z+1)/phi^2] . Since this is symmetric in x,y,z, it provides an alternative proof of Knuth's theorem that x o y is associative. Given that x @ y is not associative --- so can have no such triple product formula --- it's a little surprising that the above drops out so nicely! Fred Lunnon
On 5/27/08, Fred lunnon <fred.lunnon@gmail.com> wrote:
Neil --- re-revised --- apologies --- Fred [Read my lips: no more circle product theorems!]
Well, maybe just one more ... Writing x' for [(x+1)/phi^2] etc, we have already x o y = 3 x y - x y' - x' y; x o y o z = 8 x y z - 3 (x' y z + x y' z + x y z') + (x y' z' + x' y z' + x' y' z); and having nothing better to do, we might idly compute x o y o z o w = 21 (x y z w) - 8 (x y z w' + ...) + 3 (x y z' w' + ...) - 1 (x y' z' w' + ...) + 0 (x' y' z' w'); x o y o z o w o v = 55 (x y z w v) - 21 (x y z w v' + ...) + 8 (x y z w' v' + ...) - 3 (x y z' w' v' + ...) + 1 (x y' z' w' v' + ...) - 0 (x' y' z' w' v'); At which point dawns --- utterly pointless, but rather engaging --- a formula for the circle product of n arguments: THEOREM: x^1 o x^2 o ... o x^n = \sum_{0 <= m <= n} (-1)^(n-m) F_{2m} \sum_{n_C_m} x^1 x^2 ... x^m x^{m+1}' ... x^n' where the inner sum ranges over all monomials with m undashed and n-m dashed variables; and the coefficients are alternate Fibonacci numbers depending (apart from sign) only on m.
participants (2)
-
Fred lunnon -
Mike Stay