402 views

1 Answer

Best answer
1 votes
1 votes

Ans: $2^{\lceil n/2 \rceil}$

APPROACH: 

for even length strings:


1st bit and nth bit are same. similarly, 2nd and (n-1)th bits are same.
Now, 2 bits for every position, and we are filling n/2 positions. therefore $2^{n/2}$ strings
 

for odd-length strings

1st bit and nth bit are same. similarly, 2nd and (n-1)th bits are same. but {(n+1)/2}th positions has 2 more ways to be filled
Now, 2 bits for every position, and we are filling n/2 positions. therefore $2^{n+1/2}$ strings.


We can also write it as $2^{\lceil n/2 \rceil}$.

selected by

Related questions

0 votes
0 votes
0 answers
1
0 votes
0 votes
0 answers
3
admin asked Apr 28, 2020
340 views
How many ways are there to seat four of a group of ten people around a circular table where two seatings are considered the same when everyone has the same immediate left...
0 votes
0 votes
0 answers
4
admin asked Apr 28, 2020
432 views
How many $4$-element $RNA$ sequencescontain the base $U?$ do not contain the sequence $CUG?$ do not contain all four bases $A, U, C,$ and $G?$ contain exactly two of the ...