A305185 a(n) minimizes the maximum norm of elements in a complete residue system of Eisenstein integers modulo n.
0, 1, 3, 4, 7, 12, 13, 19, 27, 28, 37, 48, 49, 61, 75, 76, 91, 108, 109, 127, 147, 148, 169, 192, 193, 217, 243, 244, 271, 300, 301, 331, 363, 364, 397, 432, 433, 469, 507, 508, 547, 588, 589, 631, 675, 676, 721, 768, 769, 817, 867, 868, 919, 972, 973, 1027, 1083, 1084, 1141, 1200
Offset: 1
Examples
In the following examples let w = (-1 + sqrt(-3))/2. Let A be the set shown in Page 5, Figure 2 in my further notes on this sequence, and S(w) = {r*w : r is in A}. n = 1: S(1) = {0}, so a(1) = max_{s in S(1)} N(s) = 0. n = 2: S(2) = {0, 1, w, w+1}, so a(2) = max_{s in S(2)} N(s) = 1. n = 3: S(3) = {0, 1, -1, w, w+1, -w, -w-1, w+2, -w-2}, so a(3) = max_{s in S(3)} N(s) = 3.
Links
- Jianing Song, Table of n, a(n) for n = 1..10000
- Jianing Song, Further notes on A305185
Programs
-
PARI
a(n) = if(n>1, n^2 - 3*n*ceil(n/3) + 3*ceil(n/3)^2, 0) \\ Jianing Song, May 12 2019
Formula
From Jianing Song, May 05 2019: (Start)
a(1) = 0; for n >= 2, a(n) = (n^2 + 3*(n - 2*ceiling(n/3))^2)/4 = n^2 - 3*n*ceiling(n/3) + 3*ceiling(n/3)^2.
For k >= 1, a(3*k-1) = 3*k^2 - 3*k + 1, a(3*k) = 3*k^2, a(3*k+1) = 3*k^2 + 1.
G.f.: (x^2*(1 + x^2)*(1 + 2*x - x^3 + x^4))/((1 - x)^3*(1 + x + x^2)^2). (End)
Extensions
Entry rewritten by Jianing Song, May 05 2019
Comments