State the sum of the series \(1 + \mathrm { w } + \mathrm { w } ^ { 2 } + \mathrm { w } ^ { 3 } + \ldots + \mathrm { w } ^ { \mathrm { n } - 1 }\), for \(w \neq 1\).
Show that \(( 1 + i \tan \theta ) ^ { k } = \sec ^ { k } \theta ( \cos k \theta + i \sin k \theta )\), where \(\theta\) is not an integer multiple of \(\frac { 1 } { 2 } \pi\).
By considering \(\sum _ { \mathrm { k } = 0 } ^ { \mathrm { n } - 1 } ( 1 + \mathrm { i } \tan \theta ) ^ { \mathrm { k } }\), show that
$$\sum _ { k = 0 } ^ { n - 1 } \sec ^ { k } \theta \sin k \theta = \cot \theta \left( 1 - \sec ^ { n } \theta \cos n \theta \right)$$
provided \(\theta\) is not an integer multiple of \(\frac { 1 } { 2 } \pi\).
Hence find \(\sum _ { k = 0 } ^ { 6 m - 1 } 2 ^ { k } \sin \left( \frac { 1 } { 3 } k \pi \right)\) in terms of \(m\).