OFFSET
1,1
COMMENTS
Row sums are:
{2, 5, 12, 21, 46, 69, 107, 135, 189, 270, 318}.
FORMULA
t(n,m)=Floor[Re[Exp[I*2*Pi*Mod[m*2*Pi, 1]/(n + 2)]*Prime[n + 1]]].
EXAMPLE
{2},
{3, 2},
{5, 4, 3},
{7, 6, 5, 3},
{11, 10, 9, 6, 10},
{13, 12, 11, 9, 12, 12},
{17, 16, 15, 13, 16, 16, 14},
{19, 18, 17, 15, 18, 18, 16, 14},
{23, 22, 21, 19, 22, 22, 20, 18, 22},
{29, 28, 27, 25, 28, 28, 26, 24, 28, 27},
{31, 30, 29, 27, 30, 30, 28, 26, 30, 29, 28}
MATHEMATICA
Clear[T, n, m]; T[n_, m_] = Floor[Cyclotomic[Prime[n + 1], m/(n + 2)]*Prime[n + 1]]; Table[Flatten[Table[If[PrimeQ[T[n, m]], T[n, m], {}], {m, 0, n}]], {n, 0, 10}]; Flatten[%]
CROSSREFS
KEYWORD
AUTHOR
Roger L. Bagula, Sep 04 2008
STATUS
approved