OFFSET
0,2
COMMENTS
A147562 = the partial sums of A147582, derived from the binary weight of n, wt() = A000120. A224513 = the partial sums of A224512, derived from the Gray code weight of n (number of 1's in the representation of n), gt() = A005811.
At the date of this submission, it's unknown if the terms represent a simple CA rule for the numbers of ON cells.
FORMULA
EXAMPLE
a(4) = 21 = (1 + 4 + 12 + 4), where (1, 4, 12, 4, ...) are the first four terms of A224512.
PROG
(PARI) gt(n) = sum(kk=1, n, (-1)^((kk/2^valuation(kk, 2)-1)/2)); \\ from A005811.
a(n) = if (n==0, 1, 1 + 4*sum(k=1, n, 3^(gt(k)-1))); \\ Michel Marcus, Apr 22 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Apr 08 2013
STATUS
approved