Algorithm to convert to binary - The problem is from Numerical Methods. Please show each step of your solution and tell me the theorems, definitions, etc. if you use any.
3. The following algorithm...
Please see attached.
Onto or One-to-one - let f(s) = string s with 01100 concatenated.
Example: f(0000) = 000001100
Show:
a) the range of f
b) f is onto
c) f is one-one
n-Bit Binary Strings with Fixed Digits - I need to show that the number of n-bit binary strings that contain exactly two occurrences of 10 is C(n+1, 5).
Factoring - a.
Convert (11101)2 to base 16.
b.
Use the Euclidean algorithm to find gcd(34,21).