Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A131218
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A131218 Gray code/ Silvester-Hadamard binary triangular sequence from 16 X 16 self-similar matrix. +0
3
1, 1, 1, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1 (list; table; graph; listen)
OFFSET

1,1

COMMENT

This algorithm gives a real Gray code binary triangular sequence.

See A140820 for another version.

FORMULA

a(n,m) = Antidiagonal[HadamardMatrix[n,m]]

EXAMPLE

{1},

{1, 1},

{1, 0, 1},

{1, 0, 0, 1},

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

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

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

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

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

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

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

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

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

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

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

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

MATHEMATICA

Clear[c, b, n, a0] c[i_, k_]:=Floor[Mod[i/2^k, 2]]; b[i_, k_]=If[c[i, k]==0&&c[i, k+1]\[Equal]0, 0, If[c[ i, k]==1&&c[i, k+1]\[Equal]1, 0, 1]]; a0=Table[If[Sum[b[i, k]*b[j, k], {k, 0, n}]\[Equal]0, 1, 0], {j, 0, n}, {i, 0, n}]; ListDensityPlot[a0, Mesh\[Rule]False]; c=Delete[Table[Reverse[Table[a0[[n, l-n]], {n, 1, l-1}]], {l, 1, Dimensions[a0][[1]]+1}], 1]; Flatten[c]

CROSSREFS

Cf. A121801, A122944, A123949, A140820.

Sequence in context: A127970 A140865 A114000 this_sequence A113998 A070909 A115954

Adjacent sequences: A131215 A131216 A131217 this_sequence A131219 A131220 A131221

KEYWORD

nonn,uned,tabl,obsc

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Sep 27 2007

EXTENSIONS

This looks interesting, but I do not understand the definition. - njas, Oct 16 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 December 2 15:58 EST 2008. Contains 150992 sequences.


AT&T Labs Research