1,1

a(n) also equals the Abelian complexity function of A189718.

Table of n, a(n) for n=1..99.

Nathan Fox, Python program to generate sequence

a(1) = 2; a(3n) = a(n) + 2; a(3n-1) = a(n) + 1; a(3n+1) = a(n) + 1.

Cf. A064990, A189718.

Sequence in context: A214613 A114524 A058033 * A307531 A125619 A262519

Adjacent sequences: A216194 A216195 A216196 * A216198 A216199 A216200

nonn,easy

Nathan Fox, Mar 12 2013

approved