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

346 Solutions

48 Solvers

Last Solution submitted on Mar 31, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers48

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!