OFFSET
0,9
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1325 (rows 0..50)
FORMULA
A(n,k) = Sum_{j=0..2*k} (-n)^j.
EXAMPLE
Array begins:
=====================================================================
n/k | 0 1 2 3 4 5 6 ...
----+----------------------------------------------------------------
0 | 1 1 1 1 1 1 1 ...
1 | 1 1 1 1 1 1 1 ...
2 | 1 3 11 43 171 683 2731 ...
3 | 1 7 61 547 4921 44287 398581 ...
4 | 1 13 205 3277 52429 838861 13421773 ...
5 | 1 21 521 13021 325521 8138021 203450521 ...
6 | 1 31 1111 39991 1439671 51828151 1865813431 ...
...
PROG
(PARI) A(n, k) = (n^(2*k + 1) + 1)/(n + 1) \\ Andrew Howroyd, May 03 2023
(Magma) /* as array */ [[&+[(-n)^j: j in [0..2*k]]: k in [0..6]]: n in [0..6]]; // Juri-Stepan Gerasimov, May 06 2023
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Juri-Stepan Gerasimov, May 03 2023
EXTENSIONS
a(49) corrected by Andrew Howroyd, Jan 20 2024
STATUS
approved