This notation is found in Concrete Introduction to Higher Algebra.
Here is my method:
For something like $[3]_{11}[x]_{11}^2=[4]_{11}$ I've just been using C++ code like this:
#include <iostream>
using namespace std;
int main()
{
for(int j = 1 ; j<10 ; j++)
{
cout<< "{...,";
for(int i = -5 ; i<=10 ; i++)
{
cout << 11*i+2*j*j << ",";
}
cout << "...}";
cout << endl << endl;
}
return 0;
}