This is a rather difficult challenge for me. How would I write a program in python based off this sequence function:

http://oeis.org/A063655

and does the following:

It asks for the value of the sequence and returns the corresponding number. For example, the number corresponding to the 10th value of the sequence is 7. I'd like to be able to do this for values over 300,000,000.

So, the final product would look like this:

Enter a value: 4

[7]

Any ideas where to start? I only know a little python, but knowing how to translate the sequence into code is my main problem.

Edited by EmeraldPanda - 3/31/13 at 6:28am

http://oeis.org/A063655

and does the following:

It asks for the value of the sequence and returns the corresponding number. For example, the number corresponding to the 10th value of the sequence is 7. I'd like to be able to do this for values over 300,000,000.

So, the final product would look like this:

Enter a value: 4

[7]

Any ideas where to start? I only know a little python, but knowing how to translate the sequence into code is my main problem.

Edited by EmeraldPanda - 3/31/13 at 6:28am