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”).

A030620
a(n)=(# 3's)-(# 4's) in first n terms of A030604.
0
0, 0, 1, 1, 1, 1, 1, 1, 2, 3, 3, 2, 2, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, -1, -2, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 0, 0, 0, -1, -1, -1, -1, -1, 0, 0, 0, 0, 1, 0, 0, -1, -1, -1, -1, -1, -2
OFFSET
1,9
MATHEMATICA
Accumulate[Which[#==3, 1, #==4, -1, True, 0]&/@Flatten[IntegerDigits[#, 6]&/@ Fibonacci[Range[2, 30]]]] (* Harvey P. Dale, Jun 22 2017 *)
CROSSREFS
Sequence in context: A059252 A349319 A251619 * A348241 A110764 A107901
KEYWORD
sign
STATUS
approved