OFFSET
1,1
COMMENTS
The first differences could be related to A004641. (From Bradley Klee via Seqfan list.)
EXAMPLE
Starting with L = 1,2,3,4,..., the values of j, k, and a(n) are computed (and L is updated) as follows:
n j k a(n) L
= = = ==== ======================================================
- - - - 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
1 1 2 3 3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
2 3 6 9 4,5, 7,8,9,10,11,12,13,14,15,16,17,18,19,20,...
3 4 9 13 5, 7,8, 10,11,12,13,14,15,16,17,18,19,20,...
4 5 12 17 7,8, 10,11, 13,14,15,16,17,18,19,20,...
5 7 16 23 8, 10,11, 13,14,15, 17,18,19,20,...
6 8 19 27 10,11, 13,14,15, 17,18, 20,...
PROG
(MATLAB)
function a = A363406( max_n )
L = [1:max_n+2];
for n = 1:max_n
a(n) = L(1) + L(L(1)+1); l = L(end);
L = [L(2:L(1)) L(L(1)+2:end)];
L = [L 1+l:1+l+L(1)];
end
end % Thomas Scheuerle, Jun 01 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ali Sada and David James Sycamore, May 31 2023
STATUS
approved