Page 1 of 2
Problem 319
Posted: Sat Jan 08, 2011 8:12 pm
by raggie
Problem 319 (
View Problem)
Is it right that $x_i\in \mathbb{N}$ , cause it isn't stated in the problem.
Shouldn't it be
Let $x_1$, $x_2$,..., $x_n$ be a [integer] sequence
Re: Problem 319
Posted: Sat Jan 08, 2011 8:20 pm
by Lord_Farin
By monotonicity of the given constraints this must be true to satisfy that there are only five sequences of length 2.
Re: Problem 319
Posted: Sat Jan 08, 2011 10:14 pm
by starblue
I don't see how {2, 6} satisfies the third condition:
$$2^6=64 \not< 49 = (6+1)^2$$
Re: Problem 319
Posted: Sat Jan 08, 2011 11:08 pm
by harryh
starblue wrote:I don't see how {2, 6} satisfies the third condition:
$$2^6=64 \not< 49 = (6+1)^2$$
It does, if you look carefully at
Problem 319 (
View Problem): the exponents are i and j,
not x
i and x
j.
So, 2
2<(6+1)
1 and 6
1<(2+1)
2, both of which are true.
Re: Problem 319
Posted: Sun Jan 09, 2011 8:17 am
by Navakanth
Can anyone please verify that the the #of such sequences for n=3 is 20?
Re: Problem 319
Posted: Sun Jan 09, 2011 8:44 am
by umisef
Navakanth wrote:Can anyone please verify that the the #of such sequences for n=3 is 20?
No, it is not.
Re: Problem 319
Posted: Sun Jan 09, 2011 9:08 am
by Navakanth
Navakanth wrote:Can anyone please verify that the the #of such sequences for n=3 is 20?
My bad, I counted wrongly, sorry, is it 24 for n=3?
Re: Problem 319
Posted: Sun Jan 09, 2011 10:21 am
by harryh
No, but you are close. Here is the complete list for n=3:
Code: Select all
2 4 8
2 4 9
2 4 10
2 4 11
2 5 11
2 5 12
2 5 13
2 5 14
2 6 14
2 6 15
2 6 16
2 6 17
2 6 18
2 7 18
2 7 19
2 7 20
2 7 21
2 7 22
2 8 22
2 8 23
2 8 24
2 8 25
2 8 26
You can't ask for more, can you?

Good luck!
Re: Problem 319
Posted: Sun Jan 09, 2011 11:48 am
by sivakd
harryh, you know how to give details without revealing anything

. I can compute accurately even for t(20). But I don't know how to scale for larger values. I am also having issues with precision.
harryh wrote:No, but you are close. Here is the complete list for n=3:
Code: Select all
2 4 8
2 4 9
2 4 10
2 4 11
2 5 11
2 5 12
2 5 13
2 5 14
2 6 14
2 6 15
2 6 16
2 6 17
2 6 18
2 7 18
2 7 19
2 7 20
2 7 21
2 7 22
2 8 22
2 8 23
2 8 24
2 8 25
2 8 26
You can't ask for more, can you?

Good luck!
Re: Problem 319
Posted: Sun Jan 09, 2011 7:05 pm
by Navakanth
Thanks! Harry.... Now have to figure out the 'best' way to easily count them...
harryh wrote:No, but you are close. Here is the complete list for n=3:
Code: Select all
2 4 8
2 4 9
2 4 10
2 4 11
2 5 11
2 5 12
2 5 13
2 5 14
2 6 14
2 6 15
2 6 16
2 6 17
2 6 18
2 7 18
2 7 19
2 7 20
2 7 21
2 7 22
2 8 22
2 8 23
2 8 24
2 8 25
2 8 26
You can't ask for more, can you?

Good luck!
Re: Problem 319
Posted: Sun Jan 09, 2011 10:16 pm
by starblue
harryh wrote:the exponents are i and j, not xi and xj.
Thanks.
Seems I had a severe case of blindness yesterday, I couldn't see that even after looking at the formula many times.
Re: Problem 319
Posted: Sun Jan 09, 2011 10:34 pm
by sivakd
If only the problem was limited to finding it the best way. IMHO, it also requires some juggling to find it in reasonable time inspite of knowing the best way to compute. Most likely it wouldn't have made much difference if the limit was set only to 10^8 instead of 10^10 but I don't know why the admins some times give very high limits while sometimes much lower limits. I spent more time trying to make the program run fast and fit within the memory than on finding the best way to solve it. Even after all that, I am way off with the 1 minute rule.
Navakanth wrote:Thanks! Harry.... Now have to figure out the 'best' way to easily count them...
Re: Problem 319
Posted: Sun Jan 09, 2011 11:38 pm
by stijn263
Check the forum. Hans Klein briefly explained his algorithm that solves the problem in 6 seconds.
The limits are pushed for some problems to make sure that asymptotically-suboptimal algorithms take longer than a minute or require too much memory

Re: Problem 319
Posted: Mon Jan 10, 2011 7:02 pm
by 0liver
Hi. Can anybody check if the answer for 4 is 101, please?
Re: Problem 319
Posted: Mon Jan 10, 2011 7:29 pm
by hk
No, it isn't
Re: Problem 319
Posted: Wed Jan 12, 2011 4:41 pm
by sangupta
Please verify if the answer for sequence length 4 is 83, for length 6 is 935, for length 7 is 2993.
Re: Problem 319
Posted: Wed Jan 12, 2011 4:46 pm
by stijn263
If your answer matches for n = 5, there should be no reason to assume it's incorrect for the other values right?
Re: Problem 319
Posted: Wed Jan 12, 2011 5:12 pm
by sangupta
Agreed

Re: Problem 319
Posted: Fri Jan 21, 2011 5:06 pm
by quintana
could t(30) possibly end up with ...9113247?
thanks!
Re: Problem 319
Posted: Fri Jan 21, 2011 6:39 pm
by quilan
quintana wrote:could t(30) possibly end up with ...9113247?
thanks!
This is incorrect -- you're very close though. ....3243.