Good afternoon, Dear residents of Wolfram Community. I need to add each number in the sequence to one value.
Here is a formula that generates a Fibonacci sequence of up to 33 values in it.
fibonacci Sequence[n_] :=
Module[{prev = 0, fNext = 1, i = 0},
While[i++ < n, {fPrev, f Next} = {f Next, prev + fNext}];
fPrev]
Array[fibonacci Sequence, 33, 0]
{0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, \
1597, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, \
196418, 317811, 514229, 832040, 1346269, 2178309}
and I need to add all the numbers that consists of more than 2 numbers, to one digit
for example : 377 > 3+7+7 = 17 > 1+7 = 8
And then, if possible, color all 123 = in red. 456 in green and 789 in blue
Thank you for your attention, I am waiting for an answer.