Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A138088
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A138088 Triangle read by rows: coefficients of characteristic polynomials of the Z/nZ addition matrices using PolynomialMod[p(x,n),n] in Mathematica. ( Polynomials/nZ): P(x, n) = If[Mod[n, 4] == 0, x^n, If[Mod[n, 2] == 1, If[n == 0, 1, (n - 1)*x^n], (n/2)x^(n - 2) + x^n]]. +0
1
1, 0, 1, 0, 1, 0, 0, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 3, 0, 1, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 1 (list; graph; listen)
OFFSET

1,9

COMMENT

Row sums are: {1, 0, 2, 2, 1, 4, 4, 6, 1, 8, 6, ...};

FORMULA

P(x, n) = If[Mod[n, 4] == 0, x^n, If[Mod[n, 2] == 1, If[n == 0, 1, (n - 1)*x^n], (n/2)x^(n - 2) + x^n]]; out_n,m=Coefficients(P(x,n)).

EXAMPLE

{1},

{0}, : Mathematica leaves out this zero in Flatten[];

{1, 0, 1},

{0, 0, 0, 2},

{0, 0, 0, 0, 1},

{0, 0, 0, 0, 0, 4},

{0, 0, 0, 0, 3, 0, 1},

{0, 0, 0, 0, 0, 0, 0, 6},

{0, 0, 0, 0, 0, 0, 0, 0, 1},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 8},

{0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 1}

MATHEMATICA

(* Polynomial form*) Clear[P, x]; P[x_, n_] :=P[x, n] = If[Mod[n, 4] ==0, x^n, If[Mod[n, 2] == 1, If[n == 0, 1, (n - 1)*x^n], (n/2)x^(n - 2) + x^n]]; g1 = Table[P[x, n], {n, 0, 10}] (* matrix form*) M[d_] := Table[Mod[n + m, d], {n, 0, d - 1}, {m, 0, d - 1}]; a = Join[{{1}}, Table[CoefficientList[PolynomialMod[Det[M[d] - x*IdentityMatrix[d]], d], x], {d, 1, 10}]]; Flatten[a]

CROSSREFS

Sequence in context: A019141 A086077 A073345 this_sequence A112765 A105966 A083915

Adjacent sequences: A138085 A138086 A138087 this_sequence A138089 A138090 A138091

KEYWORD

nonn,uned,tabf

AUTHOR

Roger L. Bagula and Gary Adamson (rlbagulatftn(AT)yahoo.com), May 02 2008

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 24 14:25 EST 2009. Contains 167438 sequences.


AT&T Labs Research