Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A sequence is given:


The question is: what is the value of $a_n$ for a given $n$?

I have tried a lot of patterns but was not able to meet the general term. Its clear that it follows decimal code pattern with base of 2.

share|cite|improve this question

As Brian M. Scott already said, there isn't much more to say about your series. It's only about converting bases. But please note that, given only the first few elements of this series, there could be many series that make sense. I've described one way to find a series that makes sense in this answer.

Converting a number from decimal to base two

I guess you can convert from base 10 to base 2 in many ways, but two standard ways are the Euclidean algorithm and the Horner's method (LaTeX-sources for the following images are here)

Euclidean algorithm

enter image description here

Horner schema

enter image description here

share|cite|improve this answer

This is just the sequence of positive integers expressed in base two: $a_n$ is the base-two representation of the positive integer $n$. There's not really much more to be said.

share|cite|improve this answer
But is their any way to figure out general term other than this – Bharat Aug 9 '13 at 13:30
@Bharat: Just convert $n$ to base two. There are standard algorithms for that. – Brian M. Scott Aug 9 '13 at 13:31
Can you give me details regarding that algor-- – Bharat Aug 9 '13 at 13:33
@Bharat: You can find descriptions of the two most common pencil-and-paper algorithms here. – Brian M. Scott Aug 9 '13 at 13:35
here's a page for all types of conversion problems and the algorithms; decimal, octal, binary, hex, etc. – Eleven-Eleven Aug 9 '13 at 13:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.