Number construction II
Given a positive integer, n, return a, b, c and d, such that
1. n = a*2^b+c*3^d
2. a, b, c and d are all positive integers...
5 years ago
Solved
Number construction I
Given a positive integer, n, return a, b, c and d, such that
1. n = a*sqrt(b)+c*sqrt(d)
2. a, b, c and d are all positive ...
5 years ago
Solved
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...
5 years ago
Solved
Still more miles to go before I sleep
It's time for more odometer fun. Last problem, my car's odometer hit 56789. It's coming up on 111111 now, which (barring a maj...
5 years ago
Solved
Accessing values in a cell
You are given c, which is a 1xN cell array, and a and b, which are each two 1xM vectors. Your job is to give the bth value in t...
5 years ago
Solved
Inscribed Pentagon? 2
Your function will be provided with the five vertices of a pentagon (p) as well as the center point (cp) and radius (r) of a cir...