, such that (i) is a prime number of type ; (ii) there is a (positive) prime number and nonnegative integer , such that
(1) Find all positive integersfirst of all, my progress during the mock for this problem (i spent like 1.5hrs) was like RLLY BAD lmao. all i had was even and odd. but anyway lemme spoil to u what i failed to realise:
i COMPLETELY didnt think of that rip T-T. but if u're not blind like me, u could then rewrite the equation as
now naturally, what would be nice is if we could find/force a factor for LHS. well, the first part of LHS might suggest forcing a factor of , but we'll need this to divide the second part of LHS (i.e. ) as well. and indeed, if we take , this works! furthermore, and are clearly coprime, so
but notice that implies is a QR mod , so by fermat's christmas theorem, but this is clearly a contradiction by the first condition in the problem statement! so we must have is even.
yay now my 1.5hrs of work is fruitful here lol rip. by taking mod in the original equation, we find that
plugging this back into our original equation, we have that
then assuming , taking mod 8 gives
which we can verify is a contradiction by recalling that . finally, we check to show that the solutions are
where is a prime of the form . ✨
positive integers such that .
(2) Find allmy thought process was smth like this: first, there's a factorial, which means i can easily make it divisible by stuff, so e.g. convenient for taking mods. also, the coeff of is 3, so it's kinda natural to just try mod 3 and assume , which unfortunately doesnt give much since (the problem is gg if it was like 29 tho, cuz 2 is not a QR mod 3.) okay but then RHS is so this instantly makes me think of the QR trick. and since mod 3 is natural like i mentioned, i basically added 2 on both sides to force LHS div by 3, and also because i can easily do stuff with the legendre symbol for -2. okay so what we hv now is
so in an ideal world, i would hope that if i had some odd prime dividing then i can conclude smth abt and pray that doesn't satisfy it (so it would imply ). e.g. if i must hv that would be great. butttt unfortunately...
so isn't a contradiction, and i pretty much just left it at that :(
okay now this next part is after i spoiled a bit of the sol to myself hehe: basically the idea of using QR trick is right, but what i missed is another factor of LHS that i can force. notice that
i was so fixated on the 3 that i didnt even think abt lol, and that's a pretty key step. so let's assume so that divides and now we can sort of apply a similar thing, where we consider any odd prime dividing ... waait.. but what if is even (which is generally less ideal when applying QR trick)... BUT, notice that
and is always odd yayyy. so we'll just take that factor instead. cool, so again, by our work earlier, any odd prime dividing must satisfy but notice that
which means it's impossible for all of its prime factors to be , so we have our desired contradiction! this means that and we can just verify which i won't show here, but the only solution is ✨
alternatively, if u still wanted to use the factor, here's how it'd go
case 1: the ideal case where is odd
again, all of it's prime factors are so but plugging this into our equation, it means that which is a contradiction.
case 2: the less ideal case where is even (which also means is even)
case 2.1:
notice that thus, now, considering the factor then by our previous work, which is clearly false. (notice how we still end up considering an odd factor.)
case 2.2:
we get that so and we arrive at a contradiction similar to the above case.