Cody

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

81.25% Correct | 18.75% Incorrect
Last Solution submitted on Feb 23, 2019

Problem Comments

Problem Recent Solvers8

Suggested Problems

More from this Author18