login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A030371
a(n)=(# 1's)-(# 0's) in first n terms of A030363.
0
1, 1, 2, 1, 2, 2, 2, 2, 3, 4, 5, 5, 6, 5, 6, 5, 5, 6, 6, 5, 4, 5, 6, 5, 4, 4, 4, 5, 5, 6, 5, 4, 4, 4, 5, 5, 5, 6, 7, 8, 8, 8, 8, 8, 9, 10, 11, 11, 12, 13, 14, 13, 12, 13, 13, 12, 12, 11, 12, 12, 11, 12, 13, 14, 13, 14, 15, 15, 15, 14, 15, 16, 16, 16, 15
OFFSET
1,3
MATHEMATICA
Accumulate[Flatten[IntegerDigits[Fibonacci[Range[2, 30]], 3]]/.{0->-1, 2->0}] (* Harvey P. Dale, Jan 16 2020 *)
CROSSREFS
Sequence in context: A029215 A240649 A226942 * A029550 A091110 A339660
KEYWORD
nonn
STATUS
approved