A108618 A quaternion-generated sequence calculated using the rules given in the comment box with initial seed x = .5'i + .5'j + .5'k + .5e; version: "tes".
1, 2, -1, -2, -3, -6, -6, 1, 4, 3, 0, -5, -10, -8, 3, 8, 5, -2, -9, -12, -6, 7, 16, 10, -9, -18, -11, 4, 15, 14, -2, -16, -20, -3, 14, 17, 6, -12, -24, -11, 10, 21, 14, -8, -22, -20, 3, 20, 17, -2, -21, -24, -6, 19, 28, 10, -21, -36, -18, 19, 40, 22, -21, -42, -23, 16, 39, 26, -14, -40, -32, 9, 38, 29, -8, -39, -36, 2, 36, 38, -1, -38
Offset: 0
Links
- Creighton Dement, Table of n, a(n) for n = 0..10000
- Creighton Dement, Plot of A108618 against A108619 (patch on)
- Creighton Dement, Plot of A108618 against A108619 (patch off)
- Creighton Dement, Floretions 2009, DRAFT. See section 4.1 Algorithms.
- Rémy Sigrist, Colored scatterplot of a(n) for n = 0..10000 (where the color is function of n mod 6)
Programs
-
Mathematica
a[0] = b[0] = 0; f[n_] := Sign[n]*Mod[n, 2]; a[n_] := a[n] = (1/2)*(a[n-1] - 3*b[n-1]) + 3*f[(1/2)*(a[n-1] + b[n-1])] + f[(1/2)*(a[n-1] - 3*b[n-1])] + 1; b[n_] := b[n] = (1/2)*(a[n-1] + b[n-1]) + 1; A108618 = Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Feb 25 2015, after Benoit Jubin *)
Comments