login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A048151
Triangular array T read by rows: T(n,k)=k mod n, for k=1,2,...,n, n=1,2,...
1
0, 1, 0, 1, 2, 0, 1, 2, 3, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 7, 0, 1, 2, 3, 4, 5, 6, 7, 8, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0
OFFSET
1,5
FORMULA
G.f.: x^2*y/((1 - x)*(1 - x*y)^2). - Stefano Spezia, Feb 21 2024
EXAMPLE
Triangle begins:
0;
1, 0;
1, 2, 0;
1, 2, 3, 0;
1, 2, 3, 4, 0;
...
MATHEMATICA
Flatten[Table[Mod[k, n], {n, 15}, {k, n}]] (* Harvey P. Dale, Mar 21 2012 *)
CROSSREFS
As a sequence, essentially same as A002262.
Sequence in context: A025690 A025668 A373748 * A025675 A025682 A025691
KEYWORD
nonn,tabl
STATUS
approved