|
|
A168313
|
|
Triangle read by rows, retain 1's as rightmost diagonal of A101688 and replace all other 1's with 2's.
|
|
2
|
|
|
1, 0, 1, 0, 2, 1, 0, 0, 2, 1, 0, 0, 2, 2, 1, 0, 0, 0, 2, 2, 1, 0, 0, 0, 2, 2, 2, 1, 0, 0, 0, 0, 2, 2, 2, 1, 0, 0, 0, 0, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 1
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,5
|
|
COMMENTS
|
Row sums = odd integers repeated: (1, 1, 3, 3, 5, 5,...).
Eigensequence of the triangle = A168314: (1, 1, 3, 5, 13, 29, 71, 165, 401,...).
|
|
LINKS
|
|
|
FORMULA
|
Triangle read by rows, retain 1's as rightmost diagonal of A101688 and replace all other 1's with 2's.
a(n) = 2*floor((2*n-t*(t+1)+1)/(t+3))*(n-t*(t+1)/2) - floor((sqrt(8*n+1)-1)/2) + t, where t = floor((-1+sqrt(8*n-7))/2). (End)
|
|
EXAMPLE
|
First few rows of the triangle =
1;
0, 1;
0, 2, 1;
0, 0, 2, 1;
0, 0, 2, 2, 1;
0, 0, 0, 2, 2, 1;
0, 0, 0, 2, 2, 2, 1;
0, 0, 0, 0, 2, 2, 2, 1;
0, 0, 0, 0, 2, 2, 2, 2, 1;
0, 0, 0, 0, 0, 2, 2, 2, 2, 1;
0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 1;
0, 0, 0, 0, 0, 0, 2, 2, 2, 2, 2, 1;
...
|
|
MATHEMATICA
|
rows = 11;
A = Array[Which[#1 == 1, 1, #1 <= #2, 2, True, 0]&, {rows, rows}];
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|