Question #177362

Write a simple formula that generates the below mentioned terms.

a)  1,2,2,3,4,4,5,6,6,7,8,8,...

b)  1,10,11, 100, 101, 110,111,1000,1001,1010,1011

Expert's answer

a.) 1,2,2,3,4,4,5,6,6,7,8,8,....

General formula a(n)=a(n−1)+a(n−3)−a(n−4)   For n>4a(n)=a(n-1)+a(n-3)-a(n-4)\ \ \ \text{For n>4}


b.) 1,10,11,100,101,110,111,1000,1001,1010,1011

Yes, the given sequence numbers are represented in binary number format. In the binary number system to represent number, we use only 0’s and 1’s.

The positive integers go like this: 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110……..

Here explicit formula is the digits of a binary number represent powers of 2.

Examples:

1.) (1100)2=(1×23)+(1×22)+(0×21)+(0×20)=8+4+0+0=(12)10=12(1100)_2 = (1\times2^3 )+ (1\times2^2) +(0\times2^1) +(0\times2^0)= 8 + 4 +0+0= (12)_{10}= 12


  2.) (1101)2=(1×23)+(1×22)+(0×21)+(1×20)=8+4+0+1=(13)10=13(1101)_2 = (1\times2^3) + (1\times2^2) +(0\times2^1) +(1\times2^0)= 8 + 4 +0+1= (13)_{10}=13

                    and so on....

Therefore the sequence is : 1, 10, 11, 100, 101, 110, 111, 1000, 1001, 1010, 1011, 1100, 1101, 1110,1111……..


LATEST TUTORIALS
APPROVED BY CLIENTS