On 08/09/2011 10:41 PM, Ben Bacarisse wrote:
> Harshal Jain<> writes:
>
>> Find out the pattern and write a C program to print it upto n
>> digits...
>>
>> 010201130311240
>> 512223141550815233244518.......
>
> I can't work out what this sequence is, though I am pretty sure I know
> what sort of sequence it is. I would expect any of these:
>
> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,5,0,6,1,5,2,3,3,1,4...
> B 0,1,0,1,1,2,0,3,1,1,2,1,3,3,0,6,1,2,2,3,3,4,0,7,1,4,2,5,3,2,4...
> C 0,1,0,1,1,2,0,1,2,3,1,3,0,2,3,2,2,5,1,4,0,1,5,1,4,3,3,5,2,6,1...
> D 0,1,0,1,1,2,0,1,2,4,1,3,0,1,4,1,3,2,2,7,1,4,0,3,4,3,3,4,2,8,1...
>
> The closest match, A, differs here:
>
> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3, 5,0,6,1,5,2,3,3,1,4...
> 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,1,4,1,5,5,0,8,1,5,2,3,3,2,4...
>
> I suspect a typo but maybe someone has worked it out?
>
> Spoiler: A is http://oeis.org/A055186 and C is http://oeis.org/A079686
> the sequences B and D are related to A and C but the OP's sequence is
> somewhere between A and B.

Is there a practical use for such sequences or are they just an
interesting exercise?

Mark Bluemel <> writes:
> On 08/09/2011 10:41 PM, Ben Bacarisse wrote:
>> Harshal Jain<> writes:
>>
>>> Find out the pattern and write a C program to print it upto n
>>> digits...
>>>
>>> 010201130311240
>>> 512223141550815233244518.......
>>
>> I can't work out what this sequence is, though I am pretty sure I know
>> what sort of sequence it is. I would expect any of these:
>>
>> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,5,0,6,1,5,2,3,3,1,4...
>> B 0,1,0,1,1,2,0,3,1,1,2,1,3,3,0,6,1,2,2,3,3,4,0,7,1,4,2,5,3,2,4...
>> C 0,1,0,1,1,2,0,1,2,3,1,3,0,2,3,2,2,5,1,4,0,1,5,1,4,3,3,5,2,6,1...
>> D 0,1,0,1,1,2,0,1,2,4,1,3,0,1,4,1,3,2,2,7,1,4,0,3,4,3,3,4,2,8,1...
>>
>> The closest match, A, differs here:
>>
>> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3, 5,0,6,1,5,2,3,3,1,4...
>> 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,1,4,1,5,5,0,8,1,5,2,3,3,2,4...
>>
>> I suspect a typo but maybe someone has worked it out?
>>
>> Spoiler: A is http://oeis.org/A055186 and C is http://oeis.org/A079686
>> the sequences B and D are related to A and C but the OP's sequence is
>> somewhere between A and B.
>
> Is there a practical use for such sequences or are they just an
> interesting exercise?

In article
<>,
Ben Bacarisse <> wrote:
> Harshal Jain <> writes:
>
> > Find out the pattern and write a C program to print it upto n
> > digits...
> >
> > 010201130311240
> > 512223141550815233244518.......
>
> I can't work out what this sequence is, though I am pretty sure I know
> what sort of sequence it is. I would expect any of these:
>
> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,5,0,6,1,5,2,3,3,1,4...
> B 0,1,0,1,1,2,0,3,1,1,2,1,3,3,0,6,1,2,2,3,3,4,0,7,1,4,2,5,3,2,4...
> C 0,1,0,1,1,2,0,1,2,3,1,3,0,2,3,2,2,5,1,4,0,1,5,1,4,3,3,5,2,6,1...
> D 0,1,0,1,1,2,0,1,2,4,1,3,0,1,4,1,3,2,2,7,1,4,0,3,4,3,3,4,2,8,1...
>
> The closest match, A, differs here:
>
> A 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3, 5,0,6,1,5,2,3,3,1,4...
> 0,1,0,2,0,1,1,3,0,3,1,1,2,4,0,5,1,2,2,2,3,1,4,1,5,5,0,8,1,5,2,3,3,2,4...
>
> I suspect a typo but maybe someone has worked it out?
>
> Spoiler: A is http://oeis.org/A055186 and C is http://oeis.org/A079686
> the sequences B and D are related to A and C but the OP's sequence is
> somewhere between A and B.

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!