Problem 288
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.
This forum is NOT meant to discuss solution methods for a problem.
In particular don't post any code fragments or results.
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
Don't start begging others to give partial answers to problems
Don't ask for hints how to solve a problem
Don't start a new topic for a problem if there already exists one
See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
-
vermillon
- Posts: 2
- Joined: Sat Apr 17, 2010 6:00 pm
Problem 288
Problem 288 (View Problem)
Hello,
I have questions concerning the phrasing of this problem: (mostly due to the fact that English is not my mother tongue)
1) What does the * in "T_(n)*p^(n)" mean? Is it a multiplication sign or something else?
2) "Let NF(p,q) be the number of factors p in Nfac(p,q)." I have no idea what "the number of factors p in another number" is supposed to mean. Is it the power of factor p in the decomposition in a product of prime numbers? Any example would be more than welcome on this expression.
Thanks in advance
Hello,
I have questions concerning the phrasing of this problem: (mostly due to the fact that English is not my mother tongue)
1) What does the * in "T_(n)*p^(n)" mean? Is it a multiplication sign or something else?
2) "Let NF(p,q) be the number of factors p in Nfac(p,q)." I have no idea what "the number of factors p in another number" is supposed to mean. Is it the power of factor p in the decomposition in a product of prime numbers? Any example would be more than welcome on this expression.
Thanks in advance
- remy72
- Posts: 296
- Joined: Thu May 21, 2009 3:41 pm
Re: Problem 288
1) yes, the "*" stands for the multiplication sign,vermillon wrote:Problem 288 (View Problem)
Hello,
I have questions concerning the phrasing of this problem: (mostly due to the fact that English is not my mother tongue)
1) What does the * in "T_(n)*p^(n)" mean? Is it a multiplication sign or something else?
2) "Let NF(p,q) be the number of factors p in Nfac(p,q)." I have no idea what "the number of factors p in another number" is supposed to mean. Is it the power of factor p in the decomposition in a product of prime numbers? Any example would be more than welcome on this expression.
Thanks in advance
2) indeed, it's the power of p in the prime decomposition of Nfac(p,q)
-
vermillon
- Posts: 2
- Joined: Sat Apr 17, 2010 6:00 pm
-
pgrontas
- Posts: 6
- Joined: Sun Jun 22, 2008 8:10 pm
Re: Problem 288
This problem is driving me crazy.
I have the test case correct (NF(3,10000) mod 3^(20)=624955285), my algorithm is pretty fast but i keep getting the wrong answer.
Can someone please verify that:
NF(61,10^6) mod 61^9 = 1075175834078238
Thanks.
I have the test case correct (NF(3,10000) mod 3^(20)=624955285), my algorithm is pretty fast but i keep getting the wrong answer.
Can someone please verify that:
NF(61,10^6) mod 61^9 = 1075175834078238
Thanks.
-
albert_nik
- Posts: 18
- Joined: Wed Apr 22, 2009 11:46 am
Re: Problem 288
Yes, i get this too: NF(61,10^6) mod 61^9 = 1075175834078238
Maybe you have same problem with me.
If you are using
long m = (long) Math.Pow(61,10) // gives m= 713342911662882560 !!!!
check this :
61^9 = 11694146092834141
61^10=713342911662882601
Maybe you have same problem with me.
If you are using
long m = (long) Math.Pow(61,10) // gives m= 713342911662882560 !!!!
check this :
61^9 = 11694146092834141
61^10=713342911662882601
-
cyclops
- Posts: 15
- Joined: Mon Apr 05, 2010 12:30 am
Re: Problem 288
That's interesting; I used BigInteger off the bat so never ran into that problem, but it's the type of bug I would have a hard time spotting. I'm a bit surprised double precision results in that much of an error in this situation. I'll keep that in mind for next time!albert_nik wrote:Yes, i get this too: NF(61,10^6) mod 61^9 = 1075175834078238
Maybe you have same problem with me.
If you are using
long m = (long) Math.Pow(61,10) // gives m= 713342911662882560 !!!!
check this :
61^9 = 11694146092834141
61^10=713342911662882601
-
pgrontas
- Posts: 6
- Joined: Sun Jun 22, 2008 8:10 pm
-
kingmoshe
- Posts: 1
- Joined: Sat Oct 11, 2014 11:46 pm
Re: Errors/Warnings/Bugs
on problem 288 there is an example that say :NF(3,10000) mod 3^20=624955285. but this is not correct acctualy NF(3,9999) mod 3^20=624955285.
-
TripleM
- Posts: 384
- Joined: Fri Sep 12, 2008 3:31 am
- Oliver1978
- Posts: 166
- Joined: Sat Nov 22, 2014 9:13 pm
- Location: Erfurt, Germany
Re: Problem 288
The first 10 Tn with p = 61 are [7, 30, 13, 59, 40, 50, 30, 31, 58, 17].
Is this correct?
Is this correct?
49.157.5694.1125
- Georg
- Posts: 157
- Joined: Mon Jan 21, 2008 7:00 am
- Location: Mannheim, Germany
- Contact:
- Oliver1978
- Posts: 166
- Joined: Sat Nov 22, 2014 9:13 pm
- Location: Erfurt, Germany
Re: Problem 288
Typo. Wrong Index. T should start with [10, ...].
Apart from that aforementioned minor hiccup I have a more severe problem concerning my understanding of the problem. It's about "Let NF(p, q) be the number [...]". Would someone be willing to hear me about it? Privately of course, since I don't want to be blamed for spilling possibly essential information.
Apart from that aforementioned minor hiccup I have a more severe problem concerning my understanding of the problem. It's about "Let NF(p, q) be the number [...]". Would someone be willing to hear me about it? Privately of course, since I don't want to be blamed for spilling possibly essential information.
49.157.5694.1125
- Georg
- Posts: 157
- Joined: Mon Jan 21, 2008 7:00 am
- Location: Mannheim, Germany
- Contact:
Re: Problem 288
Read there.Oliver1978 wrote:[...]
I have a more severe problem concerning my understanding of the problem. It's about "Let NF(p, q) be the number [...]".
[...]
- Oliver1978
- Posts: 166
- Joined: Sat Nov 22, 2014 9:13 pm
- Location: Erfurt, Germany
-
LarryBlake
- Posts: 100
- Joined: Sat Aug 29, 2009 8:49 pm
- Circling
- Posts: 23
- Joined: Wed Sep 16, 2020 7:33 am
- Location: Turkey
- Contact:
Re: Problem 288
Having quite some trouble with this one. My code works for the example given but not for the actual question.
Can someone confirm the following:
NF(5, 10) = 735554
NF(61, 20) mod (61 ^ 10) = 118406441632680948
NF(61, 10) mod (61 ^ 3) = 34930
T_9.999.999 = 36 when p = 61
Also, can I privately contact with someone that has solved the problem?
NOTE: I use Python which can store and manipulate numbers with hundreds of digits (though slowly for obvious reasons), so owerflow is out of the question.
EDIT: Nevermind, I solved it. My error was having the N(p, q) function sum for n = 0 to q-1, not for n = 0 to q. Once I fixed that, I got the right answer. The values for NF examples are most likely false too, even though they are correct for my flawed interpretation.
Can someone confirm the following:
NF(5, 10) = 735554
NF(61, 20) mod (61 ^ 10) = 118406441632680948
NF(61, 10) mod (61 ^ 3) = 34930
T_9.999.999 = 36 when p = 61
Also, can I privately contact with someone that has solved the problem?
NOTE: I use Python which can store and manipulate numbers with hundreds of digits (though slowly for obvious reasons), so owerflow is out of the question.
EDIT: Nevermind, I solved it. My error was having the N(p, q) function sum for n = 0 to q-1, not for n = 0 to q. Once I fixed that, I got the right answer. The values for NF examples are most likely false too, even though they are correct for my flawed interpretation.
Problem 84 sux!!!
