Problem 44705. Expand 10^n to Powers of 4

Given an integer n, return the coefficients

     c = [c_n,c_n-1,...,c_0]

Such that

    10^n = c_n*4^(n) + c_n-1*4^(n-1) +...+ c_0*4^(0)

With the constraint that

   c_n = c_0

For example,

n = 1
10^n = 10 = 2*4^(1) + 2*4^(0), so c = [2  2] 

Solution Stats

15.26% Correct | 84.74% Incorrect
Last Solution submitted on Jul 12, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers41

Suggested Problems

More from this Author18

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!