login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A140819 Triangle read by rows: T(n, m) = m if 2*m = n, otherwise 2*gcd(n, m). 0
0, 2, 2, 4, 1, 4, 6, 2, 2, 6, 8, 2, 2, 2, 8, 10, 2, 2, 2, 2, 10, 12, 2, 4, 3, 4, 2, 12, 14, 2, 2, 2, 2, 2, 2, 14, 16, 2, 4, 2, 4, 2, 4, 2, 16, 18, 2, 2, 6, 2, 2, 6, 2, 2, 18 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
EXAMPLE
{0},
{2, 2},
{4, 1, 4},
{6, 2, 2, 6},
{8, 2, 2, 2, 8},
{10, 2, 2, 2, 2, 10},
{12, 2, 4, 3, 4, 2, 12},
{14, 2, 2, 2, 2, 2, 2, 14},
{16, 2, 4, 2, 4, 2, 4, 2, 16},
{18, 2, 2, 6, 2, 2, 6, 2, 2, 18}
MATHEMATICA
M[d_, x_, y_] := Sum[Sum[If[n == m, GCD[d - 1, m - 1], If[n == d - m + 1, GCD[ d - 1, n - 1], 0]]*x^(n - 1)*y^(m - 1), {n, 1, d}], {m, 1, d}]
Table[CoefficientList[M[d, x, 1], x], {d, 1, 10}]
Flatten[%]
Table[Apply[Plus, CoefficientList[M[d, x, 1], x]], {d, 1, 10}]
CROSSREFS
Sequence in context: A327488 A065273 A352707 * A138558 A111580 A066202
KEYWORD
nonn,tabl
AUTHOR
Roger L. Bagula and Mats Granvik, Jul 16 2008
EXTENSIONS
Definition simplified by the editors of the OEIS, Jan 03 2024
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)