login
A341308
Row sums of triangle A249223.
1
1, 1, 1, 2, 1, 4, 1, 3, 2, 3, 1, 6, 1, 3, 5, 5, 1, 6, 1, 6, 4, 3, 1, 10, 3, 3, 4, 8, 1, 11, 1, 7, 4, 3, 5, 13, 1, 3, 4, 12, 1, 11, 1, 7, 10, 3, 1, 16, 4, 8, 4, 7, 1, 11, 6, 14, 4, 3, 1, 21, 1, 3, 10, 10, 6, 13, 1, 7, 4, 15, 1, 23, 1, 3, 9, 7, 7, 12, 1, 20, 8, 3, 1, 23, 6, 3, 4, 14, 1, 24, 9, 7
OFFSET
1,4
LINKS
PROG
(PARI) a(n) = { my (v=0, s=0); for (h=2, oo, if (n<=0, return (v), v+=s+=(-1)^h * ((n-1)%(h-1)==0); n-=h)) } \\ Rémy Sigrist, Feb 14 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 14 2021
STATUS
approved