#help-28
1 messages · Page 284 of 1
is the butler lying
G whether T or F both gives you C F, thus B F
but C was telling the truth in the first one'
"C = F" was found when in the case that B is T
so no longer valid unless shown now
but if B is F then C must be F right?
cuz of the first one
if you are familiar with "proof by contradiction",
you assumed B
ended up with C and not C which is false
thus assumption is false
not B, i.e. Butler lies
false can imply true
yeah
oh
(C, G) is not (T,T), (G, H) is not (F, F)
G: T-> C:F
G: F -> H:T ->C :F
give some time for sean 😭
I'm not, I'm following sean's pace
well we have to go supposing more truth values now
looking at C being involved in a lot of statements
mainly "h implies not C"
this would be more constraining if C was true
because then h would have to be false
can i do this using rules of inference
only a false thing can imply a false thing
not b is a premise
but i cant apply modus ponens
kay now we have
b implies c
not c or not g
g or h
h implies not c
alright
b is F
once b is F, the first statement is useless btw
try C is T first
I want to go by instincts
ok
(you wont be there in the exam hall)
alright if not C is T then what can i say abt h
0 -> 1 and 1 -> 1 both are true
its useless
now what should be my next step
well statements 1, 2 and 4 are now irrelevant when C is F
i could assume h = T
so the only statement left is "H or G"
you just said it
got it
.
that means C is F
no???
when i plug h = T i get c = F
"When C is F, then everything works. That means C must be F"
ohk
you haven't seen what happens in the other case, you can't assume it doesn't work without seeing it
b = F, c = F
are you talking abt c
yes
what other case?
This is what you reasoned
yeah
I'm saying that's not a good reasoning
well, C is T
how
oh so i assume c is t
All I'm saying is you've shown C = F is possible
to show that it's the only way
you must show C = T is impossible
that, you haven't done yet
you started off well
couldnt conclude anything
wdym
ok if c is T
you haven't tried "c is T"
kay now we have
b implies c
not c or not g
g or h
h implies not c
0 implies 1
true
0 or not g is true only if g is false
g or h is true if h is true
h implies not c is true for h = false
is that a contradiction
yes
just specify "only if h is true" here
what abt the rest
and G or H, we don't know
kay now we have
b implies c
not c or not g
g or h
h implies not c
what
once you have that B, C are both false
1, 2 and 4 become useless
we've discussed so before
so only "G or H" is left to determine anything about G and H
no, "G or H" is still a constraint
it's just not enough of a constraint to properly find both
the propositions work for all values of g and h, provided that they satisfy 2 and 4
recall what's the truth table of G or H
okay
provided they satisfy 3...
2 and 4 are irrelevant now
provided the satisfy 3
give me the truth values of G and H that work
yes, those are the 3 possibilities
well there was some hiccup in transforming the written statements into logic statements
lmao
"they can't both ..." means not(... and ...)
and so don't bring up Xor unless explicitely stated "exactly one of them ..."
alright
well so butler and the cook are liars and the others one we cant determine
at the start of this problem i assumed b = T and found a contradiction
what if i dont find the contradiction
can i conclude that my assumption was correct?
your assumption is plausible, not "correct"
your assumption only becomes correct when you find out the alternative is impossible
so you have to look at what happens when you assume the opposite at some point
I think you can get faster. By not questioning yourself. And set up straightforward to do what you are determined to do. When you halt and question yourself “is this step correct” it might break your train of thought
Have confidence. As long as you don’t assume things unnecessary, only follow the basic conditions you don’t have room to make error
Closed by @neon yoke
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Can we have more than one knight in these questions?
Cuz if the three people must be unique then 31. has no solution
no we can't
"…You know that one of these people is a knight, one is a knave, and one is a spy."
what do you mean ?
a knave can never say i am not the spy
"when there is no unique solution, list all possible solutions or state that there are no solutions."
that is true
so there aren't any 👍
Closed by @neon yoke
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
$lim {x\to 0} \frac{\ln(x+e^{-x})}{x\cdot \ln(1+2x)}$
Professor Edward C. Hawthorne
l'hopitals?
Taylor mac laurin?
er
$\ln(1+x+e^{-x}-1)$
Professor Edward C. Hawthorne
$\ln(1+t)$
Professor Edward C. Hawthorne
$t-t^2/2=x+e^{-x}-1-(x+e^{-x}-1)^{2}/2$
you could just differentiate
Professor Edward C. Hawthorne
Professor Edward C. Hawthorne
its gonna be a painful calculation anyway I think
$f'_N=(1-e^{-x})/(x+e^{-x})$
Professor Edward C. Hawthorne
Can try to use log(1+u)/u -> 1 as u -> 0 for both u = 2x and u = x + exp(-x) -1
Professor Edward C. Hawthorne
$1-e^{-x}/4x$
Professor Edward C. Hawthorne
$e^{-x}/4 lim = 1/4$
Professor Edward C. Hawthorne
,w $lim {x\to 0} \frac{\ln(x+e^{-x})}{x\cdot \ln(1+2x)}$
Closed by @sturdy vine
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Hi, i need a little help on how to solve this, taking a practice test and i just dont really have a clear idea on how to do this, thank you!
Hi
Hi
Only one straight line passes through two points, right?
yeah
would it be -6, -3?
Ok this Is x , and y?
3, -3?
Yes!
So you have to find a straight line that passes through the points (-6,3) and (-3,-3), do you know how to do it?
not really sorry
y=mx+c
ah
So what do you know from the graph and seeing y=mx+c? What are you missing?
sorry if im wrong but would it be m and c?
?
Ok
You know that a straight line passes through the point (-6,3)
So y=mx+c -> 3=m(-6)+c
mhm
You know that the other straight line passes through the point (-3,-3)
So y=mx+c -> -3=m(-3)+c
Clear?
yes
Now placing these 2 in a linear system, you find m and c that simultaneously respect the 2 equations (because only one straight line passes between 2 points)
Clear ? Do you know how to do it?
i think i kinda get it
Hi
Hi
Need help?
If it is clear you will replace the unknowns m and c in the general equation y=mx+c, do the same for the other 2 remaining ones
sure, sorry im pretty slow 😭
for the graph itself, what is the difference between the bold point and the one that isnt fully shaded in?
That the filled blue dot also accepts as input the x on which it is located, the non-filled one does not
As you can see on the right where the intervals are written
oh i see, thank you!
i believe i was able to get an idea on how to work this thank you so much for your help
👍
.close
Closed by @zenith osprey
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
i was wondering if we had a function u(x) is this allowed?
im assuming its differentiable as well
Whats star
complex conjugate
this seems very wrong
z* is not differentiable for example
complex differentiable
ok
im looking at this so i just thought we could swap it around
What is f?
they defined it as a complex-valued function
is x real
yes
i think you should use the derivative wrt x because of this
It is allowed if u is complex valued function of real variable. And for any n-th ddrivative it also holds as long it is differentiable enough
ok ty
ty nyx and universe as well
You should try showing why it holds
i just needed this result to solve something related to this
ok thanks all
.close
Closed by @frosty gyro
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
How do I solve this cubic?
3x³+5x²+4x+5=5
👀
q = 2(5)²-9(3)(5)(4)+27(3)²(5) / 27(3)³
NO
notice the 5(s) cancel out
sure, but there's a better method here
so you have to solve 3x^3+5x^2+4x=0
which you should be able to
Closed by @lime rover
Use .reopen if this was a mistake.
😭 , I had given an alternate method
Lol
indeed. but they chose to ignore you. just move on
you have a 5 on both sides
subtract those off and you have the exact same cubic as in your other help channel
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Would this be a valid proof of correctness? I've never proven an algorithm's correctness before.
\begin{proof}[Proof of the Correctness of Algorithm 1]
We will go by induction on $n$. Naturally, if $n = 1$, then the maximum is $a_1$ and we are done.
Now suppose that $max$ is the maximal value in $\{a_1, \dots a_k\}$. If $a_{k+1} > max$, then $a_{k+1}$ is the maximal element in $\{a_1, \dots a_{k+1}\}$; otherwise, $a_{k+1} \leq max$, and $max$ is the maximal element in this set. In the first case, the code sets $max := a_{k+1}$, so $max$ is the maximal value in the set; otherwise, the code keeps $max$ as is, so $max$ remains the maximal value in the set.
We can continue this process up to $k = n$ and we have $max$ is the maximum value in the set $\{a_1, \dots, a_n\}$.
\end{proof}
Coolempire2026
It looks fine. You should probably state the induction hypothesis more precisely
yes, this seems fine. what you are effectively doing is proving an invariant about the algorithm: in every iteration of the algorithm, max stores the maximum value among the elements in the subset {a_1, ..., a_k}
then clearly the algorithm terminates so by virtue of the invariant, it returns the max
it's relatively clear here but it may not be so obvious for recursive algorithms, for example
It's obvious to me because I can see it but proving it I don't know how I would
well the algorithm is simply doing a single pass through the list and then returning the max
so it "clearly" terminates
Closed by @quartz flare
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
in ques d, should we take exclusive or?
no, thats part e's job
oh god not the either discourse
but yes, garlic is right, it's unlikely that d and e are asking the exact same question phrased slightly differently, so likely inclusive or is desired
in this ques we take exclusive right?
It'll be probably best to ask your teacher
One one hand, "either" mildly suggests exclusivity. On the other hand, inclusive is usally the default unless explicitly stated otherwise
If I had to guess, I'd choose inclusive, but it's just a poorly worded question
Inclusion exclusion, |A union B|=|A|+|B|-|A intersects B|
this is confusing though, because the wording in 48 is the same as the wording in 22. d), and the wording in 22. d) suggests an inclusive OR while e) suggests an exclusive OR
so there's some kind of wording precedent here
That's exactly what makes me think that it's meant inclusively
not what was asked
I meant, i don’t know we should say, take inclusion, or take exclusion. That’s result is called inclusive-exclusive principle, so together
i would read that as inclusive or
What was asked is whether it wants you to count strings which beign with 00 or end with 111 or both, or whether it wants you to count strings which begin with 00 or end with 111, but not both
i think it didnt refer to IE principle
Oh 48.
I think with precedent it's very likely inclusive OR, OP.
Is there a difference between what either means in math and in daily English?
in 48, we should take both also right?
48 reads as inclusive OR to most of us, yes, because of 22. d) and e)
So A-B union B-A and A union B. What is math version what is daily version…?
note that the wording is similar to 22. d), while 22. e) is unmistakably exclusive OR
this may be a question for another channel, friend
that reads to me as if the author is consciously separating inclusive and exclusive OR
I think it’s A union B, right? Because his teacher in 22 asked both d and e. And e means A-B union B-A, so d better mean A union B
these can both be clarified as exclusive by saying "but not both", and as inclusive by saying "or both"
A xor B xor both
in daily enlgish, "either-or" implies exclusivity, but in math usually the implication is less strong if present at all
btw these are the questions from rosen's discrete mathematics book
Yeah, pretty much all of us agreed that it's most likely meant inclusively (A union B)
Oh
no wonder
Yes in context it must be A U B
is there any good solution book that i can refer to?
wdym by "solution book"
solution manual
well, I suppose you could try finding one online
I'm not aware if one exists though
Try searching with "filetype:pdf"
adding that to the search query will only find results which are pdfs (which is the most common format for such manuals)
be aware that pdfs can sometimes be dangerous and so make sure the sources are somewhat trustworthy
or, try searching in, well... the good places
I won't elaborate further - I presume you know what I mean.
Closed by @rancid helm
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
for b), I could only come up with eigenvectors (1,1,1,0,0,...), ... or more generally the ones where 3 consecutive terms are the same e.g.
a_{3k} = a_{3k+1} = a_{3k+2}
which is orthogonal and can be normalized but not really sure how to determine other possible eignevectors (and then determine if theres a hilbert basis)
If it can help, I'm sure you've well noticed that the transformation works on groups of 3 coordinates (3k, 3k+1 and 3k+2)
Think about what happens to a much simpler transformation:
The one that only takes in (a_0,a_1,a_2) and outputs (a_2,a_0,a_1)
So a linear transformation from C³ to C³
@ancient zinc Has your question been resolved?
checking for eigenvals/vecs
yeah some kind of cyclic permutation
.close
Closed by @ancient zinc
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
its a root in a root in a root....
yeah
I can also say that a_n+1^2 > 2
does that help with anything here
We are subtracting 2 from it
you can square-root both sides of an inequality if both sides are positive
well think of it this way
are u familiar with newton sums
lets assume for contradiction, maybe
for quadratic
that a_n+1 > 2
okay
right, because if that was true the problem explodes
the question is about a_n tho
a_n < 2
lets assume a_n >= 2
its the same thing
it's asking you to prove something for general n
does this imply anything about a_n-1
using this
im not sure
well no?
a_n only has a_n+1
in its formula
well
you can shift it over by one
since a_n = a_n+1 ^ 2 -2
then you know that a_n-1 = a_n ^2 -2
right
because this relationship just relates any two consecutive elements of the sequence
the n and n+1 are sort of placeholder
you could replace them with n-1 and n
or 2n and 2n+1
or 49n + 338 and 49n + 339 (i don't know why you'd do either of these though)
ok
so
?
still unsure, can you clarify
let's say at some point a_n did actually go over 2 and a_n >= 2
given that a_{n-1} = a_n^2 - 2, what does this mean about a_{n-1}
this is true
but im not sure if they know induction
Base case n=1 is true
yeah
so induction is thew way
for "prove for all positive integers n" questions induction should be one of the first things you try
$a_k < 2$
$2 + a_k < 4$
it works unreasonably well
a handsome russian dude
!noans
The purpose of this server is to help you learn; please don't ask for direct answers. Ask for guidance, explanations, or feedback instead.

What do you do now?
It's not an answer bruh
How do you get k+1 here
i use the definition of a_k+1
I am getting a_k+1 ^ 2 < 4
Right
after doing the k+1 step
can I square both sides to get 2
or do i have to take care of the sign as well
square root probably works better
Yeah, take sqrt of both sides
be a bit careful with square rooting an inequality
what do you get when you sqrt both sides of this
a_k+1 < 2
a_k+1 < 2 and a_k+1 > -2?
well so what do i do with the -2
tbh not much
like
i think you know pretty well that a_k+1 is never actually going to be < 1
but
Well I do have a_k+1 < 2 always, cuz it is an AND clause
$\sqrt{2 + a_k} < \sqrt{4}$
so a_k+1 < 2 always
a handsome russian dude
it being -1 or something doesn't break anything
so proved?
yep
so like
yeah
proved
cool
now move on to c
I am getting the difference of squares = 2
using the definition
Same thing. Prove for n=1, assume true for k. Prove for k+1
is induction the only way
for most questions involving "prove for all integers"
induction works
unreasonably well
especially when you have a really easy way to relate one case with the one right before it
which is the case here, you can kind of turn off your brain a bit
alternatively
i think you can probably get away with not using induction here
c is kind of a non-statement
you should expand the RHS
and see what you end up getting
when you simplify
I used the recursive definition to plug in a_n+1^2 = 2+a_n
With that I get -(a_n^2 - a_n -2)
I should prolly faftorize this
-(a_n-2)(a_n+1)
alright
solved
yeah
ty guys
the hint does a lot
Well I can say that for a_n+1 - a_n > 0,
a_n+1 ^ 2 - a_n ^ 2 > 0 is also true
Then I can use (c) to get (2-a_n)(1+a_n) > 0
Which leads to
a_n < 2 or a_n < -1
Now from (b) I get that a_n < 2 so this clause is always true, (cuz of the OR)
So the sequence is strictly inceasing
you should be a bit careful with the last step
if a_n < -1 you actually end up getting that (2-a_n)(1+a_n) < 0
but this is an easy fix
because you know a_n is always > 0 because square roots are positive
I got a_n >-1 mb
cuz it is (1+a_n) > 0
@icy hemlock Now how can I prove convergence and find the limit using these results?
(e)
Well I have that the sequence is strictly increasing
i think i can help here but shall read hold on
so i dont feel comfortable answering with something possibly wrong
i will just watch
Well I have to find an upper bound for this sequence
You finished b
Yes, using induction
wait so the asnwer is 2
the upper bound is 2
well you gotta look at the whole picture, sometimes zooming out and taking a break helps out
And you finished c, thus it’s monotonically increasing
Any continuous f, f preserves limits
i.e. lim f(a_n)=f(lim a_n)
Now plug in
f(x)=sqrt(x+2)
Yeah
why does lim a_n = lim a_n+1
Definition
of what
limit
Any ε>0 there exists Ν>0 such that any n>=N, |a_n -L|<ε
Is the definition of lim a_n =L
Any ε>0, let M=N+1, any n+1>=M, |a_n+1 -L|<ε. Thus lim a_n+1 =L
alright
may i ask.. what the issue here..
Idk, he halted
limit or the prove thing?
He is at this stage, combine with lim a_n+1=lim a_n
I completed (e)
its L = 2
Yeah
use hint perhaps 
Well, you use AM-GM or calculus for a.
Yeah
minima of a one variable function!
Why is replacing a_n with x okay?
a_n is a positive real number
could I have done that in this part too?
a_n is in the domain
a_n+1 = f (a_n)
we're showing that one part of the recursion has a certain minima, so a_{n+1} would have it as well
inf f on (0, infty)<=inf of f on {a_n: n}
oh i did not know the criteria for proving convergence was this simple
interesting, i thought it was more complicated
anyway sorry
can i also do root(2+x) in here?
and then prove that it is always < 2? (for part b)
eh, not really, sqrt(2+x) on its own doesn't have a maxima
Well in that case, you don't need any calculus
for x a positive real
There induction works well.
yea i did it using induction but why cant i do the same here
You could try, but AM-GM or calculus here is rather a lot easier.
its just convenience here, induction is usually just a one-size-fits-all route
Alright, I got 0.5x + 3/2x decreasing from 0 to root 3 and increasing from root 3 to inf
how do I use this for the sequence?
Minimum is root 3
Yeah
^
I proved that it is strictly decreasing. Also we have that a_n >= root 3
Now can we say that the limit of this sequence is root 3?
By calculation it’s sqrt(3)
Though when doing these exercises, probably it requires you not to omit steps
calculation?
I just used part a and b to infer that limit = sqrt(3)
Okay, whatever works. As long as your steps are valid
There are some fancier theorems to conclude this as well in this case, for example sqrt(3) is a fixed point of f(x)=1/2(x+3/x).
Banach fixed-point theorem seems to be an overkill. taking limits both sides like a normal student is fine already I think
I did not take limit on both side
You have to have some kind of steps anyway. If not taking limit both sides, what did you do
well if lower bound = root 3 and function is decreasing
the limit = root 3
It’s false

sqrt(3) is a lower bound, not inf
sqrt(3)+1+1/n decreases, and have sqrt(3) as a lower bound
well I got L = L/2 + 3/2L
After applying limits on both sides
i can get L = root 3 from this
Yeah that’s what people usually do
@neon yoke Has your question been resolved?
Closed by @neon yoke
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Hi, how can I prove this using contradiction?
If x!=y then wither x>y or x<y right
But idk what to do w this info
Can I have a small hint
what is the power ?
I should state x,y>0
you can do something like that
Alr I’ll have a go
I suspect the strategy is to suppose x and y are different
and then use that x^n-y^n=0
factorise...use what you know...prove it's impossible. But need to know the formula of x^n-y^n as a product
No idea what the factorisation of this is icl
Is it common?
In real anal
x^n = y^n and x,y > 0
The latter term cannot be zero since x,y > 0. Hence x - y = 0.
Yes, that one...
think so.
Oh 😞 no way I was getting that lol
Yes. The latter term is just a geometric progression.
There's one for sums too, but afaik it needs the exponents to be odd to work (or something like that).
Then that leads us to a contradiction if x!=y
There are other ways too. This isn't the only one.
Closed by @brisk minnow
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
.close
Closed by @tame cradle
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
lets say we define N=p1.p2.p3.....ps-1 + ---- a sum of product of s-1 primes my friend wants to prove whether N-1 can be divisible by b^2 where b has atleast one prime p1,p2 ,p3 ... etc as its factor
if N-1 was divisible by b^2, what else would it be divisible by? (look at the ps)
yeah, one of the primes
N-1 is p1 * p2 * ... * ps - 2
so this has to be divisible by one of the primes
can you see sth from here?
Can e.g.
5 * 3 * 7 * 11 - 2 be divisible by 7?
(without calculating it)
its product of s-1 primes
i can understand this that sum is of s terms so s-1 terms would have p1 in denom and two would have 1/p1^@
oh shit hello no used modulus
lmao
distribute
-2mod7
oh shi
yeah, sure
but man hey lets not get excited here we have (1 term -1) mod p1 here
p | kp + a iff p | a
yes
wait wdym?
look i understand but what about term which does not have p1
eg
p2.p3...ps-1mod p1
oh wait, i mightve misunderstood the question
understand you are right s-1 terms would become 0 mod p1
would about sth term and -1 mod p1
:.
:>
(p2....ps-1) mod p1 - 1 mod p1
wait
i got it
oh i understand the question
(p2...ps-1) is always odd
and - 1 would be eveb
so even cannot be divided by odd
wait
are we right bro
?
so the s-1 terms are -(s-1) (mod p) in total, is that right?
because each one is -1 mod p
oh god
you meant p1.p2.p3.....p_(s-1)
yes
okay now i get it
yes
i thought it was (p1.p2....) - 1
oh
lmao
no no
look we would remain with (p2.....ps-1 - 1) mod p1
this is an even number
:>
:>
:>
say it
so its not divisible by p
:>
i still dont get the question tho
sum of product of s-1 primes
what does this mean
it means p1.p2.....ps-2 + p2.......ps-1 + -----
sum of s terms where each term is a product of s-1 primes
:>
oh so you always leave out 1 prime?
so there are s-1 terms?
he wants to show this is not divisible by an odd number b if any prime is a factor
:>
what if one of the primes is 2?
it could still be provable, just maybe not so easily
it wouldnt be an even number
is it about b^2 or b itslef?
what
why
s-2 terms are 0 mod p1
last term - 1
oh and even number mod p can also be 0
mod p1
14 mod 7 is 0
hell fuck
i forgot
lmao i feel sorry for him
i laughed at my friend
after which he got angry and then now i realise
why he was so troubled
even can also be divided by odd

how can we prove any idea
and is it about odd number b or b^2?
so if you choose p1 = 2, p2 = 3, p3 = 5, it doesnt work
oh
2*3 - 1 is divisible by 5 (choose p1 = 5, p2 = 2, p3 = 3)
it just doesnt seem like it could work
CØSMOS
Take any product of any primes - 1. Imagine if we were able to prove that this isn't divisible by any other prime p1 (then it couldnt be divisible by any prime at all)
it literally has to be divisible by one of them
proof by contradiction?
okay
lets us say
if its divisible by b
then we can say the p1.p2.p3.... last - 1 term is 0 mod p1
or its kp1+1
now
can a product of odd terms be kp1 + 1?
aah yes if k is even
fuck
i dont even understand what you're saying lol
well yes
But the p1 is completely independent of the last term
and the last term has to be divisible by some prime
and that prime cant be p2, p3, ..., ps-1
so it has to be divisible by some other prime
so if you choose p1 to be that prime, you get a counterexample
look
so i can literally choose any possible last term, and i'll be able to construct a counterexample by choosing appropriate p1
(p1.p2.... should be kp1+1 where k is even
bruh
ok
then any conditions do we have lmao
when this would be not div
look we can say one thing
any condition you can possibly make will involve p1
lets say each prime is
2k+x1 form
2^s-1(k+x1/2)(k+x2/2)... can we think of something like this maybe
we can distribute mod
most of that stuff will be fractions
(2^s-1)mod p1 (k+x1) mod p1 .... and so on
you cant mod fractions
no
i dont think that modular fractions combine with normal fractions this nicely
look
it would be
mostly odd/2
now we have gcd(2,p1)=1
we can maybe try of
some shit
wait the hell
wait wait
we can
one sec
i dont understand what kind of condition do you expect to get... give me any primes p2, p3, ..., p_(s-1) and ill always find a counterexample p1
ur friends conjecture is wrong
present him with few counterexample
for extra magic points, let him choose the primes p2, p3, p4...
ill show u how it works
give me some primes
any small primes you want, i wont do big prime stuff
okay, say the primes are 7, 11, 13
,calc 71113-1
Result:
1000
look
(p2.p3......ps1) mod p1 - 1 mod p1
now
this means
we would get at last
kp1+1 mod p1 - 1 mod p1
so this needs checking by prime p1
:>
@grave elm
can we but prove for b^2
an odd square is off the form 4m+1
prove that it cant be divisible by b^2?
yes
nope, we cant
still false
3*7*11 - 1 = 1000, choose b = 5. Then b^2 = 25 and it is divisible by that
finding any pattern in this would probably get you fields medal
lmao
it would be a pretty significant pattern in primes
lmao
the actual lmao
lmao
my friend lmao
lmao
lemme tell him this
one sec
lmao
he is sad man
bro went to sleep
the conjecture is false, it works only if p2 p3 p4 ... ps-1 - 1 has no square factors
Closed by @tame cradle
Use .reopen if this was a mistake.
Send your question here to claim the channel.
Remember:
• Ask your math question in a clear, concise manner.
• Show your work, and if possible, explain where you are stuck.
• Do not immediately ping people or roles. After 15 minutes, feel free to ping <@&286206848099549185> once.
• Type the command .close to free the channel when you're done.
• Be polite and have a nice day!
Read #❓how-to-get-help for further information on how to ask a good question, and about conduct in the question channels.
Back with my book again for feedback
\begin{proof}[Proof of Correctness of Algorithm 4]
We will use induction on $n$ and denote the input sequence $\{a_1, a_2, \dots, a_n\}$ as $\{a\}$.
If $n = 2$, then the outer \textbf{for} loop is executed once, executing the inner \textbf{for} loop once, which checks if $a_1 > a_2$ and interchanges them if so. Thus, if $a_1 > a_2$, the algorithm yields the sequence $\{a_2, a_1\}$, and if not (i.e., $a_1 \leq a_2$), the algorithm yields $\{a_1, a_2\}$. In both cases, these are in increasing order.
Now suppose that for $n = k$, Algorithm 4 yields $\{a\}$ in ascending order, and let $n = k+1$.
The difference between execution when $n = k+1$ and when $n=k$ is one extra iteration of the outer \textbf{for} loop, and one extra comparison in the inner \textbf{for} loop.
In the inner \textbf{for} loop, the extra comparison of $a_k$ and $a_{k+1}$ places the greater as the $k+1$th element of the sequence (as shown in the $n = 2$ base case above).
At each iteration, then, the last two elements remain correctly ordered, and the first $k$ elements remain ordered because the algorithm yields the correct answer in the $n = k$ case.
Finally, in the last iteration of the outer \textbf{for} loop, when $i = k$, the inner \textbf{for} loop runs from $j = 1$ to $n - i = (k+1) - k = 1$, so only elements $a_1$ and $a_2$ are compared. As shown in the base case, these end up in the correct order.
Therefore, after the final iteration, all elements end in the correct (increasing) order, and so Algorithm 4 always produces the correct output.
\end{proof}
Added a line
Coolempire2026
Thank you 🙂
1 divided by 0 equals Infinity
Yes 😆 I probably would have a lot more trouble writing a proof for a more efficient algorithm, so I'm just doing the simple ones to get the hang of it
coolemplud
layla 💃
how's your channel going 
too hard for me to follow at this point
your channel basically can't die now
it can be killed at any time by many people
it can't be closed basically
that's what you think
?
little do you know...
?

?

you might consider sleighla's status

👀 what does that have to do with anything
anyways, i think this proof is good enough
you read my status and it did not help with verifying your proof?
shocking really
That's good 👍 half the battle is making something valid 😂 now I just need comments on techniques/choices
I assume there's some more standard way to approach a proof like this
i don't mind if arr.sort() comes in

arr.sort() just magically appeared on everyones computers, good thing it works
std::sort(arr.begin(), arr.end(), [](T a, T b) {
// some lambda function that returns a fucking boolean
});
oof your code has an std, better get that checked out
i think youre over compkicating this because once you finish the first iteration of the outer for loop, it reduces to the induction hypothesis
💀
@quartz flare Has your question been resolved?
@quartz flare Has your question been resolved?
usually you look at invariants
i have a hard time following your proof because of the formatting, but the main thing to show here is that n-1 iterations are actually enough
i think with boba sort you have that the top part of the array is sorted after each iteration
this is not quite right
the first k elements remain ordered because the algorithm yields the correct answer in the n = k case.
That statement does not follow. Bubble sort on k+1 elements is not equivalent to Bubble sort on the first k elements, and then do extra comparison with a_{k+1}..
The current time for coolempire93 is 12:08 AM (EST) on Thu, 01/01/2026.
I knew you would have interesting things to say
happy new year coolemplud
I didn't want to ping you but I did check your time 😂

happy new youear!