login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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, 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; refs; listen; history; internal format)
OFFSET

0,1

COMMENTS

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 * A106470 A106465 A071027

Adjacent sequences:  A164378 A164379 A164380 * A164382 A164383 A164384

KEYWORD

sign,uned

AUTHOR

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 06:58 EST 2012. Contains 205694 sequences.