Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A164381
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A164381 A division tristate triangle : t(n,k)=If[Mod[n, k]/k >= 0 && Mod[n, k]/k <= 2/9, 1, If[Mod[n, k]/k > 2/9 && Mod[n, k]/k <= 4/9, -1, 0]] +0
1
1, 1, 1, 1, 0, 1, 1, 1, -1, 1, 1, 0, 0, -1, 1, 1, 1, 1, 0, 1, 1, 1, 0, -1, 0, -1, 1, 1, 1, 1, 0, 1, 0, -1, 1, 1, 1, 0, 1, -1, 0, 0, -1, 1, 1, 1, 1, -1, 0, 1, 0, -1, -1, 1, 1 (list; graph; listen)
OFFSET

0,1

COMMENT

The idea is to give a quadratic type tristate effect to the divide triangle of A051731.

The Row Sums are:

{1, 2, 2, 2, 1, 5, 1, 4, 2, 2, 4, 6, 1, 3, 5, 4, 1, 6, 3, 6,...}.

FORMULA

t(n,k)=If[Mod[n, k]/k >= 0 && Mod[n, k]/k <= 2/9, 1, If[Mod[n, k]/k > 2/9 && Mod[n, k]/k <= 4/9, -1, 0]]

EXAMPLE

{1},

{1, 1},

{1, 0, 1},

{1, 1, -1, 1},

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

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

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

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

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

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

MATHEMATICA

T[n_, k_] = If[Mod[n, k]/k >= 0 && Mod[n, k]/k <= 2/9, 1, If[Mod[n, k]/k > 2/9 && Mod[n, k]/k <= 4/9, -1, 0]];

Table[Table[T[n, k], {k, 1, n}], {n, 1, 10}];

Flatten[%]

CROSSREFS

A051731

Sequence in context: A166282 A047999 A054431 this_sequence A106470 A106465 A099990

Adjacent sequences: A164378 A164379 A164380 this_sequence A164382 A164383 A164384

KEYWORD

sign,uned

AUTHOR

Roger L. Bagula and Mats Granvik (rlbagulatftn(AT)yahoo.com), Aug 14 2009

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 16 17:18 EST 2009. Contains 170825 sequences.


AT&T Labs Research