Hi everyone. I have Partition::pdep Depth 1 requested in object with dimensions {}
error in this code
list = {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};
crush[n_] :=
Module[{m = n},
If[m >= 10, While[m >= 10, m = Total[IntegerDigits[m]]]]; m]
Map[crush, list]
colored =
digitalRoots /. {r : (1 | 4 | 7) :> Style[r, Red, 24],
g : (2 | 5 | 8) :> Style[g, Green, 24],
b : (3 | 6 | 9) :> Style[b, Blue, 24]};
Partition[data, 4] // TableForm
Does somebody know how to solve it ?