OFFSET
1,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..4096
EXAMPLE
a(8) = 15 = sum of the first 8 terms of A165195: (1, 1, 2, 1, 2, 5, 2, 1...).
PROG
(PARI) seq(n)={my(v=vector(n, i, i--; hammingweight(bitxor(i, i>>1))), b=Vec(serlaplace(exp(exp(x+O(x*x^vecmax(v))) - 1)))); v=vector(#v, i, b[1+v[i]]); for(i=2, #v, v[i]+=v[i-1]); v} \\ Andrew Howroyd, Sep 24 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Sep 06 2009
EXTENSIONS
a(25) corrected and a(33) onwards from Andrew Howroyd, Sep 24 2025
STATUS
approved
