OFFSET
0,2
EXAMPLE
The fourth antidiagonal of A377038 is (6, 1, -1, -2, -3), so a(4) = 13.
MATHEMATICA
nn=20;
t=Table[Take[Differences[NestList[NestWhile[#+1&, #+1, !SquareFreeQ[#]&]&, 1, 2*nn], k], nn], {k, 0, nn}];
Total/@Table[Abs[t[[j, i-j+1]]], {i, nn}, {j, i}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Oct 18 2024
STATUS
approved