OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..100
PROG
(PARI) \\ PeaksBySig defined in A334774.
a(n)={my(u=PeaksBySig(vector(n, i, 2), [0..n-1])); sum(k=1, #u, k*u[k])}
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Howroyd, May 12 2020
STATUS
approved