A334492 a(n) is the "real" part of f(n) = Sum_{k>=0, d_k>0} (1+w)^(d_k-1) * (3+w)^k where Sum_{k>=0} d_k * 7^k is the base 7 representation of n and w = -1/2 + sqrt(-3)/2 is a primitive cube root of unity; sequence A334493 gives "w" parts.
0, 1, 1, 0, -1, -1, 0, 3, 4, 4, 3, 2, 2, 3, 2, 3, 3, 2, 1, 1, 2, -1, 0, 0, -1, -2, -2, -1, -3, -2, -2, -3, -4, -4, -3, -2, -1, -1, -2, -3, -3, -2, 1, 2, 2, 1, 0, 0, 1, 8, 9, 9, 8, 7, 7, 8, 11, 12, 12, 11, 10, 10, 11, 10, 11, 11, 10, 9, 9, 10, 7, 8, 8, 7, 6, 6
Offset: 0
Examples
The following diagram depicts f(n) for n = 0..13: "w" axis \ . . . . . . . . \ 10 9 \ . . . . . . . . 3 \ 2 11 7 8 \ ._____._____._____._____._____._____._____. "real" axis 4 0 \ 1 12 13 \ . . . . . . . . 5 6 \ - f(9) = 4 + 2*w, hence a(9) = 4.
Links
- Rémy Sigrist, Table of n, a(n) for n = 0..16806
- Rémy Sigrist, Colored representation of f(n) for n = 0..7^7-1 in a hexagonal lattice (where the hue is function of n)
- Rémy Sigrist, PARI program for A334492
- Wikipedia, Eisenstein integer
Programs
-
PARI
See Links section.
Comments