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!)
A051126 Table T(n,k) = n mod k read by antidiagonals (n >= 1, k >= 1). 9
0, 1, 0, 1, 0, 0, 1, 2, 1, 0, 1, 2, 0, 0, 0, 1, 2, 3, 1, 1, 0, 1, 2, 3, 0, 2, 0, 0, 1, 2, 3, 4, 1, 0, 1, 0, 1, 2, 3, 4, 0, 2, 1, 0, 0, 1, 2, 3, 4, 5, 1, 3, 2, 1, 0, 1, 2, 3, 4, 5, 0, 2, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 1, 3, 1, 1, 1, 0, 1, 2, 3, 4, 5, 6, 0, 2, 4, 2, 2, 0, 0, 1, 2, 3, 4, 5, 6, 7, 1, 3, 0, 3, 0, 1, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,8
LINKS
Boris Putievskiy, Transformations Integer Sequences And Pairing Functions, arXiv:1212.2732 [math.CO], 2012.
FORMULA
As a linear array, the sequence is a(n) = A002260(n) mod A004736 (n) or a(n) = (n-(t*(t+1)/2)) mod ((t*t+3*t+4)/2-n), where t = floor((-1+sqrt(8*n-7))/2). - Boris Putievskiy, Dec 19 2012
EXAMPLE
Table begins in row n=1:
0 1 1 1 1 1 1 1 1 1 ...
0 0 2 2 2 2 2 2 2 2 ...
0 1 0 3 3 3 3 3 3 3 ...
0 0 1 0 4 4 4 4 4 4 ...
0 1 2 1 0 5 5 5 5 5 ...
0 0 0 2 1 0 6 6 6 6 ...
0 1 1 3 2 1 0 7 7 7 ...
0 0 2 0 3 2 1 0 8 8 ...
0 1 0 1 4 3 2 1 0 9 ...
0 0 1 2 0 4 3 2 1 0 ...
0 1 2 3 1 5 4 3 2 1 ...
0 0 0 0 2 0 5 4 3 2 ...
0 1 1 1 3 1 6 5 4 3 ...
MATHEMATICA
TableForm[Table[Mod[n, k], {n, 1, 16}, {k, 1, 16}]] (* A051126 array *)
Table[Mod[n - k + 1, k], {n, 16}, {k, n, 1, -1}] // Flatten (* A051126 sequence *)
(* Clark Kimberling, Feb 04 2016 *)
CROSSREFS
Sequence in context: A266825 A066438 A279291 * A168120 A355682 A063933
KEYWORD
nonn,tabl,easy,nice
AUTHOR
EXTENSIONS
More terms from James A. Sellers, Dec 11 1999
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 16 14:05 EDT 2024. Contains 371740 sequences. (Running on oeis4.)