OFFSET
1,2
EXAMPLE
Array begins:
n\k| 1 2 3 4 5 6 7 8 9 10
---+----------------------------------------------------------------------
1 | 1, 3, 5, 7, 9, 11, 13, 15, 17, 19,
2 | 21, 21, 341, 45, 117, 69, 341, 93, 213, 117,
3 | 5461, 5461, 1398101, 1109, 11605, 3413, 1398101, 2261, 87381, 11605,
PROG
(PARI)
up_to = 28;
A371094(n) = { my(m=1+3*n, e=valuation(m, 2)); ((m*(2^e)) + (((4^e)-1)/3)); };
A372282sq(n, k) = if(1==n, 2*k-1, A371094(A372282sq(n-1, k)));
A372282list(up_to) = { my(v = vector(up_to), i=0); for(a=1, oo, for(col=1, a, i++; if(i > up_to, return(v)); v[i] = A372282sq((a-(col-1)), col))); (v); };
v372282 = A372282list(up_to);
A372282(n) = v372282[n];
CROSSREFS
Arrays derived from this one:
A372288 the sum of digits of A(n, k) in "Jacobsthal greedy base",
A372359 terms xored with binary words of the same length, either of the form 10101...0101 or 110101...0101, depending on whether the binary length is odd or even.
KEYWORD
AUTHOR
Antti Karttunen, Apr 28 2024
STATUS
approved