login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A164381 Triangle T(n,k) read by rows: 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]]. 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; table; graph; refs; listen; history; text; internal format)
OFFSET

0,1

LINKS

G. C. Greubel, Table of n, a(n) for the first 50 rows, flattened

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

Cf. A051731.

Sequence in context: A047999 A323378 A054431 * A106470 A106465 A071027

Adjacent sequences:  A164378 A164379 A164380 * A164382 A164383 A164384

KEYWORD

sign,uned,less,tabl

AUTHOR

Roger L. Bagula and Mats Granvik, Aug 14 2009

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 22 22:19 EDT 2021. Contains 343197 sequences. (Running on oeis4.)