OFFSET
1,2
COMMENTS
FORMULA
a(1) = 1. For a(n)>1, a(n) = 4 * 3^(gt(n-1)-1).
EXAMPLE
A003188(5-1) = 6 = 110 (base 2), so gt(5-1) = 2. Then a(5) = 12 = 4 * 3^1 = 12.
PROG
(PARI) gt(n) = sum(kk=1, n, (-1)^((kk/2^valuation(kk, 2)-1)/2)); \\ from A005811.
a(n) = if (n==1, 1, 4 * 3^(gt(n-1)-1)); \\ Michel Marcus, Apr 22 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Apr 08 2013
STATUS
approved