%I #22 Feb 16 2022 11:59:19
%S 1,1,1,2,1,1,1,2,1,1,2,1,2,1,1,3,2,1,2,1,1,1,3,2,1,2,1,1,2,1,3,2,1,2,
%T 1,1,3,2,1,3,2,1,2,1,1,4,3,2,1,3,2,1,2,1,1,1,4,3,2,1,3,2,1,2,1,1,2,1,
%U 4,3,2,1,3,2,1,2,1,1,3,2,1,4,3,2,1,3,2,1,2,1,1,4,3,2,1,4,3,2,1,3,2,1,2,1,1,5,4,3,2,1,4,3,2,1,3,2,1,2,1,1,1,5,4,3
%N Reverse reluctant sequence of reluctant sequence A002260.
%C Sequence B is called a reluctant sequence of sequence A, if B is triangle array read by rows: row number k coincides with first k elements of the sequence A.
%C Sequence B is called a reverse reluctant sequence of sequence A, if B is triangle array read by rows: row number k lists first k elements of the sequence A in reverse order.
%C Sequence A002260 is the reluctant sequence of sequence 1,2,3,... (A000027).
%H Boris Putievskiy, <a href="/A220464/b220464.txt">Rows n = 1..140 of triangle, flattened</a>
%H Boris Putievskiy, <a href="http://arxiv.org/abs/1212.2732">Transformations Integer Sequences And Pairing Functions</a>, arXiv:1212.2732 [math.CO], 2012.
%F T(n,k) = A002260(n-k+1).
%F As a linear array, the sequence is a(n) = n1-t1*(t1+1)/2, where n1=(t*t+3*t+4)/2-n, t1=floor[(-1+sqrt(8*n1-7))/2], t=floor[(-1+sqrt(8*n-7))/2].
%e The start of the sequence as triangle array T(n,k) is:
%e 1;
%e 1,1;
%e 2,1,1;
%e 1,2,1,1;
%e 2,1,2,1,1;
%e 3,2,1,2,1,1;
%e ...
%o (Python)
%o t=int((math.sqrt(8*n-7) - 1)/ 2)
%o n1=(t*t+3*t+4)/2-n
%o t1=int((math.sqrt(8*n1-7) - 1)/ 2)
%o m=n1-t1*(t1+1)/2
%Y Cf. A002260, A004736, A220280.
%K easy,nonn,tabl
%O 1,4
%A _Boris Putievskiy_, Dec 15 2012
|