Page 1 of 1

Problem 643

Posted: Sat Nov 17, 2018 7:22 pm
by vapor
What does g(100)=1031 mean in this problem?
Update: It seems that setting p<q gives the correct result.

Re: Problem 643

Posted: Sat Nov 17, 2018 7:25 pm
by mscha
I get f(10²) = 1037, not 1031, given the definition in the problem.
If I change the definition to require 1 ≤ p < q ≤ n instead of 1 ≤ p ≤ q ≤ n, then I get 1031. (That excludes (2,2), (4,4), (8,8) ... (64,64).)
So which is wrong, the definition or the example?

Re: Problem 643

Posted: Sat Nov 17, 2018 7:34 pm
by MHealy
mscha wrote: Sat Nov 17, 2018 7:25 pm
So which is wrong, the definition or the example?
The definition is wrong; the example values are correct. (Based on the expected answer.)

Re: Problem 643

Posted: Sat Nov 17, 2018 7:47 pm
by hk
It should read $1\le p\lt q\le n$. Problem edited.

Re: Problem 643

Posted: Sun Nov 18, 2018 9:35 am
by vamsikal3
<deleted post>

Re: Problem 643

Posted: Sun Nov 18, 2018 11:46 am
by RobertStanforth
vamsikal3 wrote: Sun Nov 18, 2018 9:35 am The correct text is: For example, 24 and 40 are 2-friendly because ....
Thanks, Vamsi. This is fixed now.

Re: Problem 643

Posted: Tue Nov 20, 2018 7:24 pm
by Cot-O-Bus
Looks like expansion of PI-2, but...

Re: Problem 643

Posted: Mon Dec 31, 2018 3:08 pm
by HashFunction
How come $$gcd(a,b)=2^t,t>0$$ , but with brute force I get f(100) = 1031 when t = 0 , that is $$gcd(a,b) = 2^0 = 1$$ , should t be >= 0 or am I wrong ?

Re: Problem 643

Posted: Mon Dec 31, 2018 9:05 pm
by hk
Could it be that your bruteforcer is wrong?

Re: Problem 643

Posted: Sat Oct 04, 2025 2:43 pm
by Derfellios
... because $\gcd(24,36) = 12 = 2^2\cdot 3$ not a power of $2$.
This part of the second sentence seems grammatically incorrect to me (a non-native English speaker). I would write
... because $\gcd(24,36) = 12 = 2^2\cdot 3$ is not a power of $2$.

Re: Problem 643

Posted: Sun Oct 05, 2025 11:56 am
by RobertStanforth
Derfellios wrote: Sat Oct 04, 2025 2:43 pm
... because $\gcd(24,36) = 12 = 2^2\cdot 3$ not a power of $2$.
This part of the second sentence seems grammatically incorrect to me (a non-native English speaker). I would write
... because $\gcd(24,36) = 12 = 2^2\cdot 3$ is not a power of $2$.
Thank you for pointing this out. I have corrected it, inserting the word "is" as you suggested.