How to write a number as a power with base 3?

See the following examples.

Problem 1: Write the number 9 as a power with the base 3

Solution:

9 = 3 * 3 = 3^{2}

Problem 2: Write the number 27 as a power with the base 3

Solution:

27 = 3 * 3 * 3 = 3^{3}

Problem 3: Write the number 81 as a power with the base 3

Solution:

81 = 3 * 3 * 3 * 3 = 3^{4}

Problem 4: Write the number 729 as a power with the base 3

Solution:

729 = 27 * 27 =

3^{3} * 3^{3} =

3^{3 + 3} = 3^{6}

3

3

Problem 5: Write the number 6561 as a power with the base 3

Solution:

6561 = 81 * 81 =

3^{4} * 3^{4} =

3^{4 + 4} = 3^{8}

3

3