OFFSET
0,2
LINKS
Hugo Pfoertner, Illustration of terms a(0)-a(4).
Hugo Pfoertner, Illustration of a(5) = 41846.
EXAMPLE
S(0) = {i}, a(0) = 1;
S(1) = {-1, 2*i}, a(1) = 2;
S(2) = {-4, -2, 1, -1+2*i, -2*i, 4*i}, a(2) = 6;
S(3) = {-16, -8, -6, -4, -3, -2, -1, 1, 2, 4, 8, 16, -8-4*i, -5+2*i, -4-2*i, -4+4*i, -3-4*i, -3+2*i, -2-2*i, -2+4*i, -1+2*i, -1+6*i, -16*i, -8*i, -4*i, -2*i, 2*i, 4*i, 8*i, 1-2*i, 1+4*i, 2-4*i, 4-8*i, 4+2*i}, a(3) = 34.
PROG
(PARI) a353536(nmax) = {my(v=[I], m=#v); print1(m, ", "); for(n=1, nmax, my(L=m*(m+1), w=vector(L), k=0); for(i=1, #v, for(j=i, #v, w[k++]=v[i]+v[j]; w[k++]=v[i]*v[j])); v=Set(w); m=#v; print1(m, ", "))};
a353536(5)
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Hugo Pfoertner, Apr 26 2022
STATUS
approved