Finding a formula for the nth term of the sequence

Hello I need some help with this problem.

Find a formula for the nth term of the sequence.

1,0,0,1,0,0,0,0,1,0

so far I looked at the indexes of where 1s appear but I am not sure where to go from there and how to create a formula for this problem. I hope someone can explain to me the steps on how to solve this problem thanks.

Re: Finding a formula for the nth term of the sequence

So far you have shown only 10 terms of the sequence. How are we to know that the sequence doesn't go 1,0,0,1,0,0,0,0,1,0, 2, 2, 2, ... or 1,0,0,1,0,0,0,0,1,0, 1000000, 2000000, 3000000, ...?

In other words NO finite number of terms implies a **specific** rule. Unless there is more given in this problem, there is no way to know how it continues. Do have some reason to think there might be an exponential or similar rule? Of course, there exist a unique 9th degree polynomial equation that fits exactly those 10 points?

Re: Finding a formula for the nth term of the sequence

Sorry I forgot to metion that I am only given the first 10 terms of the sequence and I am supposed to find a formula for it

Re: Finding a formula for the nth term of the sequence

Let's look at the terms that have a 1:

1, 4, 9

So, my guess:

The -th term would be 1 if is a perfect square and 0 otherwise.

Re: Finding a formula for the nth term of the sequence

But slipEternal is correct that that is a guess. There is no **mathematical** reason that a sequence starting with those 10 terms could not have **any** succeeding terms at all. What he gives is perhaps the **simplest** formula but I see no where that was specified.

Re: Finding a formula for the nth term of the sequence

I see since I am only given the first 10 terms, it is probably safe to assume the most obvious pattern. As long as the formula satisfies all 10 terms then it will be correct.

I understand the pattern between the indexes but, how do you I use the indexes to create a formula for the nth term?

Re: Finding a formula for the nth term of the sequence

You wont be able to write a single formula for it, you will need to write is as a function with two cases like so,

Where T_{n} is the n^{th} term. Fill in what comes after "if" with the condition that makes the n^{th} term 1 or 0

Re: Finding a formula for the nth term of the sequence

Quote:

Originally Posted by

**Shakarri** You wont be able to write a single formula for it, you will need to write is as a function with two cases like so,

**Not true**. Assuming relpy #4 is correct (or at least what was meant) then

Re: Finding a formula for the nth term of the sequence

Hello, gfbrd!

Is this a trick question?

There are (at least) two possible interpretations of the sequence.

Re: Finding a formula for the nth term of the sequence

Ok, so we have:

gives the sequence

gives the sequence

And

gives for all :

Edit: Fixed

Re: Finding a formula for the nth term of the sequence

Thank you everyone for your help

yea this question gotten me a bit confused as to how to work with it I will look through all of your work and see if I can figure something out thank you again.