This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A181634 #19 Nov 08 2016 19:49:33 %S A181634 1,1,3,0,0,3,2,2,4,1,1,4,6,0,3,3,0,6,5,2,2,5,7,1,4,4,1,7,9,0,6,3,3,6, %T A181634 0,9,8,2,5,5,2,8,10,1,7,4,4,7,1,10,12,0,9,3,6,6,3,9,0,12,11,2,8,5,5,8, %U A181634 2,11,13,1,10,4,7,7,4,10,1,13,15,0,12,3,9,6,6 %N A181634 Irregular triangle T(n,k) where row n contains all pairs [a,b] of the compositions n=a+b into nonnegative pairs where a == b (mod 3). %C A181634 Row lengths are 2*A008611(n). Row sums are n*A008611(n).- _R. J. Mathar_, May 13 2016 %e A181634 1, 1; %e A181634 3, 0, 0, 3; %e A181634 2, 2; %e A181634 4, 1, 1, 4; %e A181634 6, 0, 3, 3, 0, 6; %e A181634 5, 2, 2, 5; %e A181634 7, 1, 4, 4, 1, 7; %e A181634 9, 0, 6, 3, 3, 6, 0, 9; %e A181634 8, 2, 5, 5, 2, 8; %e A181634 10, 1, 7, 4, 4, 7, 1, 10; %e A181634 12, 0, 9, 3, 6, 6, 3, 9, 0, 12; %e A181634 11, 2, 8, 5, 5, 8, 2, 11; %e A181634 13, 1, 10, 4, 7, 7, 4, 10, 1, 13; %e A181634 15, 0, 12, 3, 9, 6, 6, 9, 3, 12, 0, 15; %e A181634 14, 2, 11, 5, 8, 8, 5, 11, 2, 14; %p A181634 A181634_row := proc(n) %p A181634 local L,a,b; %p A181634 L := [] ; %p A181634 for a from n to 0 by -1 do %p A181634 b := n-a ; %p A181634 if modp(a,3) = modp(b,3) then %p A181634 L := [op(L),a,b] ; %p A181634 end if; %p A181634 end do: %p A181634 L ; %p A181634 end proc: %p A181634 for n from 2 to 18 do %p A181634 print(op(A181634_row(n))) ; %p A181634 end do: # _R. J. Mathar_, May 13 2016 %t A181634 If[First@ # == Last@ # &@ Take[#, 2], Join[Reverse@ Drop[#, 2], #], Join[Reverse@ #, #]] & /@ Function[n, Flatten@ Select[Transpose@ {n - #, #}, Mod[First@ #, 3] == Mod[Last@ #, 3] &] &@ Range[Ceiling[n/2], n]] /@ Range[2, 16] // Flatten (* _Michael De Vlieger_, May 13 2016 *) %K A181634 nonn,easy,tabf,less %O A181634 2,3 %A A181634 Florentin Smarandache (smarand(AT)unm.edu), Nov 03 2010 %E A181634 Edited by _R. J. Mathar_, May 13 2016