OFFSET
1,3
EXAMPLE
The array begins:
n\k| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
---+--------------------------------------------------------------------
1 | 1, 3, 3, 6, 2, 9, 6, 12, 1, 15, 9, 18, 5, 21, 12, 24, 4, 27, ...
2 | 1, 2, 1, 5, 4, 8, 2, 11, 7, 14, 4, 17, 10, 20, 1, 23, 13, 26, ...
3 | 1, 3, 3, 6, 2, 9, 6, 12, 1, 15, 9, 18, 5, 21, 12, 24, 4, 27, ...
4 | 1, 2, 1, 5, 4, 8, 2, 11, 7, 14, 4, 17, 10, 20, 1, 23, 13, 26, ...
5 | 1, 3, 3, 6, 2, 9, 6, 12, 1, 15, 9, 18, 5, 21, 12, 24, 4, 27, ...
6 | 1, 2, 1, 5, 4, 8, 2, 11, 7, 14, 4, 17, 10, 20, 1, 23, 13, 26, ...
7 | 1, 3, 3, 6, 2, 9, 6, 12, 1, 15, 9, 18, 5, 21, 12, 24, 4, 27, ...
8 | 1, 2, 1, 5, 4, 8, 2, 11, 7, 14, 4, 17, 10, 20, 1, 23, 13, 26, ...
...
PROG
(PARI)
up_to = 105;
A000265(n) = (n>>valuation(n, 2));
A371100sq(n, k) = 4^n*(6*k - 3 - 2*(-1)^n) + (4^n - 1)/3;
A371101sq(n, k) = A371092(A371100sq(n, k));
A371101list(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] = A371101sq((a-(col-1)), col))); (v); };
v371101 = A371101list(up_to);
A371101(n) = v371101[n];
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Antti Karttunen, Apr 19 2024
STATUS
approved