Chains don't always rule

Calculus Level 4

How many 1's are there in the base 3 expansion of the following expression?

$\left. \frac{d^{2016}}{dx^{2016}} 4\cos^{3} (x) \right|_{x=0}$

×