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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A143187 A symmetrical triangle sequence with low, even center: t(n,m)=If[(n - m)*m == 0, 1, If[m <= Floor[n/2] && Mod[m, 2] == 1, 2*m, If[m <= Floor[n/2] && Mod[m, 2] == 0, m, If[m > Floor[n/2] && Mod[n - m, 2] == 1, 2*(n - m), If[m > Floor[n/2] && Mod[n - m, 2] == 0, (n - m), n - m]]]]]. 0
1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 6, 2, 2, 1, 1, 2, 2, 6, 6, 2, 2, 1, 1, 2, 2, 6, 4, 6, 2, 2, 1, 1, 2, 2, 6, 4, 4, 6, 2, 2, 1, 1, 2, 2, 6, 4, 10, 4, 6, 2, 2, 1 (list; graph; refs; listen; history; internal format)
OFFSET

1,5

COMMENTS

Row sums are:

{1, 2, 4, 6, 8, 10, 16, 22, 26, 30, 40}.

There are two design feature here:

1) modulo 2 hollow center

2) very low row sum.

FORMULA

t(n,m)=If[(n - m)*m == 0, 1, If[m <= Floor[n/2] && Mod[m, 2] == 1, 2*m, If[m <= Floor[n/2] && Mod[m, 2] == 0, m, If[m > Floor[n/2] && Mod[n - m, 2] == 1, 2*(n - m), If[m > Floor[n/2] && Mod[n - m, 2] == 0, (n - m), n - m]]]]].

EXAMPLE

{1},

{1, 1},

{1, 2, 1},

{1, 2, 2, 1},

{1, 2, 2, 2, 1},

{1, 2, 2, 2, 2, 1},

{1, 2, 2, 6, 2, 2, 1},

{1, 2, 2, 6, 6, 2, 2, 1},

{1, 2, 2, 6, 4, 6, 2, 2, 1},

{1, 2, 2, 6, 4, 4, 6, 2, 2, 1},

{1, 2, 2, 6, 4, 10, 4, 6, 2, 2, 1}

MATHEMATICA

Clear[t, n, m]; t[n_, m_] = If[(n - m)*m == 0, 1, If[m <= Floor[n/2] && Mod[m, 2] == 1, 2*m, If[m <= Floor[n/2] && Mod[m, 2] == 0, m, If[m > Floor[n/2] && Mod[n - m, 2] == 1, 2*(n - m), If[m > Floor[n/2] && Mod[n - m, 2] == 0, (n - m), n - m]]]]]; Table[Table[t[n, m], {m, 0, n}], {n, 0, 10}]; Flatten[%]

CROSSREFS

Sequence in context: A157415 A154325 A129765 * A143209 A163994 A156593

Adjacent sequences:  A143184 A143185 A143186 * A143188 A143189 A143190

KEYWORD

nonn,uned

AUTHOR

Roger L. Bagula and Gary W. Adamson (rlbagulatftn(AT)yahoo.com), Oct 17 2008

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 16:21 EST 2012. Contains 205823 sequences.