#discrete-math
1 messages ยท Page 98 of 1
Kaori, this book is better https://infinitedescent.xyz/
Yeah it's onto, I don't know how limits work but yeah graph says it is
@mossy palm let me try that book
Prove $\frac{1}{n}$ where $n \in \mathbb{Z}$ has a decimal expansion of period at most $n-1$
Itadakimasu!:
Any help? I tried letting the expansion be $a_1 a_2.. a_m$ but had no idea where to go from therre
Itadakimasu!:
Hmm...
Why is there a periodic expansion in the first place?
(Yeah, I know, just pushing @hasty cargo to the answer.)
Errr, I guess it's rational?..
Why should it repeat with a certain period?
(actually there's a preperiod iirc, but let's ignore that first)
Hmm uh, one doesn't the number doesn't divide nicely into 1? As in it's not a factor of 10
I'm not sure urrr
(and I think the question wants us to ignore the preperiod)
But yeah I included the preperiod thing earlier as well but it wasn't helping much ^
Oh okay
Wait I meant for the not a factor of 10 as in
Yeah^
Why should it repeat instead of just going on some non-repeating pattern?
Think about how you calculate the decimal expansion.
The decimal is an infinite sum?
How do you calculate the decimal expansion of 1/n?
You take 1 divide by n
...and?
So, you do long division, right?
yeah
Because eventually we're going to divide by the same n everytime?
Oh
Wait I think I know
Or I don't actually nevermind jsfh jskhf
I thought it was something like
We divide by the same n
And since n doesn't divide into that
We have to increase that remainder by a factor of 10
And n won't divide into that either
So, we have a sequence of remainders.
Yep
And you claim that eventually those remainders would be the same
Yes
As in, eventually, there would be a remainder that you definitely seen before earlier in the sequence
But not every sequence eventually has a number you seen earlier.
Yeah
Like 1, 2, 3, 4, 5, 6... or the prime numbers 2, 3, 5, 7, 11, 13
Oh
What is it about the remainders that force them to repeat some number?
The remainders are integers?
Well, but the positive numbers are integers, so are the prime numbers.
The dividend doesn't divide into the remainders?
youre really taking the scenic route
So what does that tell you about the remainders?
When factored they don't contain the dividend?
Okay wait not factored urrr
They can't be divided unless multiplied by 10
Wait
no hsdlfkjh sdjkfh
Hmm, try dividing 3 by 103.
Like 3/103, not the other way around.
Oh
3 divide by 103
Urrr
3 is not big enough
So we gotta make it 300
Uhh then we divide 300 by 103 so we get 2 remainder 94
What stops the sequence of remainders from just not repeating a number?
element, gonna be honest
I have no clue where youre going with this
What happens if a positive integer sequence does not repeat any number?
It's non rational
no, talk about the sequence
Talk about what sort of values you would expect to see in the sequence
anyone mind telling me what the original q was
But you see, 3 1 4 1 5 repeated the 1
Prove $\frac{1}{n}$ where $n \in \mathbb{Z}$ has a decimal expansion of period at most $n-1$
@stray reef
Itadakimasu!:
uh huh
@reef thistle Yeah it repeated but 1 that's just a coincidence right or..?
But as long as the sequence of remainders repeat a value, it becomes periodic?

I almost read 14 factorial
yeah 3 14 15 26 53 58 97 93 23 84 62 64 33 83 27 95 02 88 41 97 repeats 97.
i can't tell what this is even about anymore
but it's not next to the other 1
Well we can have numbers larger than 9 that repeat
so we have 0.101010..
Or 0.123123123
1/7
0 with remainder 1
10 -> 1 with remainder 3
30 -> 4 with remainder 2
20 -> 2 with remainder 6
60 -> 8 with remainder 4
40 -> 5 with remainder 5
50 -> 7 with remainder 1
10 -> 1 with remainder 3 (remainder repeated here)
I'm talking about the sequence of remainders here
Yeah it goes in a cycle?..
Why must there be a cycle?
just consider the group (Z/nZ)^*. Each element has finite order, and the group is finite
I think
Let's not drag group theory into this
..sure
@naive saffron that doesn't matter
oh ok
Well, one part of that matters
There must be a cycle because uhh there are only so many remainders you can get when dividing by n
Specifically
n-1 remainders
holy shit
yeah
And then you are done
H IOPFhdsajkl fhsdjklhf
congrats!
IH JDSG AJh
OH MYU GOD
IM CRYING
THANK YOU
Not gonna lie I was close to fainting halfway through
yeah I really wanted you to try to discover by yourself
Yeah okay I get it thank you so much :>
nice application of pigeonhole principle! alternatively you could use the fact that if somthing has a period of k, then its denom is of the form 10^k - 1, and then use eulers theorem to show this is always possible for some k< n for 1/n
(not necessarily in lowest form)
(except if we have 2s or 5s, but those divide 10^k which can be dealt with)
and yeah that
Guys, are anti/non/asymmetric same?
Our professor has said that they're same even after we showed her explanation on stackoverflow
they are three different things
non-symmetric: not satsifying the definition of symmetric
asymmetric: if a R b then NOT b R a
antisymmetric: if a R b and b R a then a = b
and your professor really should be fired
asymmetric and non-symmetric looks same
So, on the set {1, 2, 3} a non-symmetric relation can be 1R2, 2R1, 1R3.
the empty relation is not non-symmetric but it is asymmetric
as it is both symmetric and asymmetric
but it is the only example
@cerulean ore no
would you say that "not everyone smokes" and "nobody smokes" are the same statement?
Nope.
Let A be any set and R is relation on set A then R is called symmetric Relation iff (x,y) belongs to R => (y,x) belongs to R such that x,y belongs to A.
Is there any example which is non-symmetric but not asymmetric?
no
then how did the word came?
which word
non-symmetric i.e. not satisfying the conditions
it just means not symmetric
to be fair i don't think it is used in literature
i only ever see symmetric and antisymmetric relations, because they are most important
Is an identity relation always antisymmetric?
what's an identity relation
Let A be a non-empty set, for every a belongs A we have aRa then that relation is called identity relation on set A i.e. R = {(a,a): a belongs A}
if all the elements of the relation are of the form (a,a), then yes
yes
Thank you for helping out!
This group is surely going to be the reason behind me passing my exams.
Is an identity relation always antisymmetric?
you mean equality?
@stray reef Equality relation?
Yep
Can a set contain the empty set as an element (not only as a subset)
I can ask that a bit differently: is {{}} equal to {} ?
no. its a set containing an element(namely {}) so it is not the empty set
a set can contain the empty set as an element
the set containing no elements is the empty set {}
the set containing the empty set has an element, {{}}
it has empty as an element
yeah its strange at first
It's easier to think of sets as boxes. A box can contain an empty box.
anyone know what the notation 2^โ
means?
is it like the power set of the null set or something
the set of all functions โ -> {0,1}
but yeah it's also the powerset of the null set
like the set of all functions that map to 0 and 1?
sorry im kind of confused what that means
isnt the power set of the null set just the null set
The set of all functions with domain the null set and codomain {0,1}
no
No,
$\mathcal P (\varnothing) = { \varnothing}$
ah okay right
if a functions domain is the null set how does it map values to the codomain?
since it wouldnt have any values in its domain
do you have any good readings on that? ive been kind of confused by everything im seeing online
well a function can also be considered as a set right
like a function $f: X \to Y$ is a subset of $X \times Y$
yeah
so if you're looking for the functions $f: \varnothing \to {0,1}$, then you are looking for the subsets of $\varnothing \times {0,1} = \varnothing$ which satisfy the property that functions must satisfy
there's only one subset of {}, and that is {}
and sure enough, this vacuously satisfies the properties of a function
doesnt our definition of a function mean that {0, 1} have to be a subset of โ
?
why
since the codomain has to be a subset of the cartesian product of the domain and codomain
unless im interpreting Y is a subset of X * Y wrong
He's saying that a function is a subset of X * Y
so then Y is the set of ordered pairs for mappings between the domain and codomain?
No Y is your codomain
oh okay
so f is a subset of X*Y
i see
okay this makes sense now thank you so much
hi guys id like to discuss tamari lattices
i am part of a widespread campaign to spread ideas surrounding tamari lattices to destroy the PEMDAS vs BODMAS debate
basically conceptualizing sets of non-associative things
and the pemdas vs bodmas debate is like asking whether a cis isomer or trans isomer of any kind is inherently better
and uh
how's that going to help
and most importantly
what're you gonna accomplish with that
showing people a cool as heck graph and simultaneously stop arguing in favor of visualizing pemdas AND bodmas as tools to be used whenever appropriate
which in explicit math terms
will not be a lot
?
visualizing pemdas AND bodmas as tools to be used whenever appropriate
don't get this
does anyone ever even do that
anyways i don't really have the time to try it out but i wanna see if there are any cool patterns that arise when you compute all possible orders of operations
for some popular formulas and stuff
Ok
contradiction
i understand i have to create a proof by contradiction by setting (2/3)^(1/5) equal to p/q with some relatively prime p, q
so that i can evaluate to 2q^5 = 3p^5 but im not quite sure what to do after
Come up with some contradiction, play around with it
$x^5 = 2/3$ doesn't have a rational solution
Blitzkrieg:
i have the big dumb and can't do basic logic
shouldn't this truth table evaluate to T, F, F, F
v is or
so if p or q is true p V q is true
i pray for my next quiz.
easy way to remember is and looks like a capital A
also if you know sets the notations very similar except curved
@weary tiger wouldnt you have to prove that too though
i think its something to do with 2 dividing p^5 cant find out what though
The only possible rational roots are
ยฑ1, ยฑ2, ยฑ1/3, ยฑ2/3
None of them are roots, which you can just show, so the polynomial has no rational roots
p has to be even since 2 is a prime
You can also use that $\sqrt[k]{n}$ is rational if and only if $n$ is a power of $k$
Blitzkrieg:
n, k natural
@minor radish okay, then what do you know about q being even or odd
you'd have to multiply by 3 first though
thats what im stuck on
oh wait nvm
since 2 is raised to the power of 5 q has to be even
and then what can you say
theres a contradiction since p and q have to be relatively prime
omg thank u so much
power of 5
ohh right
Wait, how do you know that $q^k \mid p^k$
Zopherus:
(a mod c) = (b mod c) implies (a^d mod c) = (b^d mod c) right
multiply by q^k both sides
@minor radish yes, this is why it's called a congruence
or is it the other way 
btw. This is a bit redundant, just write $a \equiv b \mod{c}$
Blitzkrieg:
etc.
I usually do I just don't remember latex commands lol
use demorgans laws and distributive properties
$\neg(P\land{Q}) \Leftrightarrow (\neg{P}\lor \neg{Q})$
Melon Husk:
you mean this ?
That is demorgans law yes
Where should I apply it ?
Melon Husk:
Melon Husk:
Q: Each user on a computer system has a password, which is six to eight characters long, where
each character is an uppercase letter or a digit. Each password must contain at least one digit.
How many possible passwords are there?
My first stab at it (which is wrong)
$10(26+10)^5 + 10(26+10)^6+10(26+10)^7$
The correct answer is $36^6 - 26^6 + 36^7 - 26^7 + 36^8 - 26^8$
Which makes total sense to me, you filter out any results that don't have a number in them.
I'm just confused because in my head, my way also makes sense (to me) but is obviously wrong. Can anyone point out what I have worked out instead of the correct answer?
Nokk:
@fathom knoll @weary tiger
i don't get proposition logic still
lol
like how the hell do you construct truth tables and use it to solve logic puzzles and circuit gates

i don't see how the solution ties in with propsitional logic
@steel valve what's the truth table you tried constructing?
also @trim oak did you figure it out?
i thought a truth table applies here
because it was introduced in the previous section
introduction to proposition logic
it does
you would form a table for p, q, (p and ~q) ^ (~p and q)
and use that to figure it out
given the addition that q is the statement by person A
So how can one find a reccurence relation on the n-digit quatenary {0,1,2,3} sequences with an even amount of 1s?
Any videos or something that can hint me in the right direction
hmm
let Q(n) be the amount of n-digit quaternary strings with an even number of ones
then 4^n - Q(n) is the amount of n-digit strings with an ODD number of ones
clearly Q(0) = 1 and Q(1) = 3
now
okay ig it'll help to make up some ad-hoc names
if a string has an even number of ones, i'll call it even-unit; otherwise i'll call it odd-unit.
so we can construct an even-unit string of length n from strings of length n-1 like so:
- take an even-unit string of length n-1, and append something other than a 1 to it (3 possibilities)
- take an odd-unit string of length n-1, and append a 1 to it (1 possibility)
so we get
Q(n) = 3Q(n-1) + 1(4^n - Q(n-1))
Q(n) = 2Q(n-1) + 4^n
Do you know any videos on the topic?
no
Well thanks :)
@summer dragon You could look at things called dynamical programming
It's essentially an algorithms technique that does this kind of stuff
I think you mean dynamic programming
The main idea is memoising the solutions to smaller subproblems
Its 4^(n-1) right ๐ค
idk, does it satisfy the recurrence?
Q(n) = 3Q(n-1) + 1(4^(n-1) - Q(n-1)) btw
so Q(n) = 2Q(n-1) + 4^(n-1)
definitely bigger than 4^(n-1)
||Q(0)=1
Q(1)=3
Q(2)=10
Q(3)=36
(4^n)/2+2^(n-1)||
No
thanks appreciate the quick response
"For the router to support the new address
space it is necessary that the latest software release
be installed"
q= router supports the new address
r= latest software is installed
i represented this sentence like this:
q then r
but the book says it's supposed to be reversed: r then q
that doesn't make any sense to me because for q to be true in the first place, r has to be true as well.
if r is false then q would not be able to over write the correct intent.
(r and not p) == not ((not r) or p) == not (if r then p)
Discrete Mathematics and It's Applications by Rosen, good choice
Hey guys
Find all roots to the equation :
x squared = 71 (mod 77)
Can anyone help out a bro?
@gray agate for this small modulus, there's not really a better option than just trying everything
Or you just factorise
And then work it out from two smaller moduluses
But then Idk what to do
Can you continue from there
Just try things
If you factorize, your new moduli are just 7 and 11
It's easy to just square everything and see if that gives you a solution
Or you can be a mad bro and notice that 77+77+71=225
Thatโs not finding all the roots to the equation
If you can actually read the question and solve it like it should be then thatโd be great
That does find all the roots to the equation in fact
Iโm looking for all the roots
You just don't really understand what he's trying to say or how this problem works
How many roots do you think there can be
Idk Iโm trying to ask you but Iโve got the solution I just donโt know how to work it out
Can you??
We're just going to guide you through the question
If you consider primes, there are only 2 solutions
Not do it for you
Can you guide me with what I do after I get two moduli factorials
What did you get?
Iโll tell you @reef thistle ,
I got two primes, so: 7 and 11.
Therefore:
x^2 = 1 (mod 7)
And x^2 = 5 (mod 11)
yeah, that looks good
Ok continue
Not sure what to do next bud
I need to find the two roots of the first equation and the two roots of the second equation
How do I do that?
Maybe @faint narwhal can help?
Can you solve the first one?
No I need help
How many possible values are there for x?
You just have to sit down and think
Element thanks for helping me lol
Ummm 7 possible values and 11 possible values
Is that right
You have 7 values to test for the first equation and 11 values to test for the second equation
yep
It's not like x^2+2x+1=0, where you have every possible real number to test.
(for x)
So I need to find four roots, they say itโs 1, 6, 4, 7. How does that make sense?
1 and 6 for first equation and 4 and 7 for the second
Well, now we combine the roots
But HOW do I get the roots
You only have 7 values to test
So square them and if they equal the equation then itโs valid?
yeah, that's all
check if it satisfies, that's all
(of course there are methods where the prime involved is really large, but let's not go there today)
"It's easy to just square everything and see if that gives you a solution"
I did say this ten minutes ago
Yeah but you decided to prove it to yourself not like element did and actually helped me get to it
For further reading where the prime is really large: https://en.wikipedia.org/wiki/TonelliโShanks_algorithm
Thanks element I think this is what I need to deal with however
They are now asking me to obtain 4 solutions from each of the pair
Okay there are 4 possibilities, right?
Right
(1 mod 7, 4 mod 11), (6 mod 7, 4 mod 11), (1 mod 7, 7 mod 11), (6 mod 7, 7 mod 11)
Can you find x (mod 77) satisfying each of them?
(separately)
Well what theyโre saying is to then write the gcd (7,11) = 1 as a combination of 7 and 11. Then, by trial and error, we have 1 = 2 * 11 + (-3) * 7
Well, you can get that by the extended euclidean algorithm
basically you do euclidean algorithm, but you keep track of coefficients
Mind my abuse of notation here.
gcd(7, 11)=gcd(7, 11-7=4)=gcd(7-4=3=7*2-11, 11-7=4)=gcd(7-4=3=7*2-11, 11-7-(7*2-11)=4-3=1), so 11-7-(7*2-11)=2*11-3*7=1.
So, what you want to do next is notice that to make a number that is 1 mod 7 and 4 mod 11, we just need to add the number which is 1 mod 7, 0 mod 11 with 0 mod 7 4 mod 11.
So, now we have 2 "simpler" problems.
How do we find 1 mod 7, 0 mod 11?
1 = 2 * 11 + (-3) * 7
So what this means is
2 * 11 is 1 mod 7. Note that it is also 0 mod 11.
Likewise, 0 mod 7, 4 mod 11:
1 = 2 * 11 + (-3) * 7
(-3) * 7 is 1 mod 11 and 0 mod 7. Multiplying by 4, we get (-3) * 7 * 4 is 4 mod 11 and (still) 0 mod 7
Understand this?
How about you show me how you understand it by doing another case?
Yep so youโve done one case?
almost done
just a bit of cleaning up to do
(which if you understand what's going on, you can figure it out)
@gray agate so, did you understand it?
sure.
So the first 4 roots are the solutions 1,6,4,7. How do we get four pairs out of these roots?
Secondly, after we do the gcd(7,11) = 1 and get the answer 1=2* 11 + (-3)* 7
And then, somehow with one of the pair, we need to use CRT to get the final solution to one out of four cases.
You get where Iโm stuck?
Well, what I did was effect Chinese Remainder Theorem
but being a bit more clear on what's going on
Yeah CRT = Chinese remainder theorem
Earlier I mentioned that the 4 roots are (1 mod 7, 4 mod 11), (6 mod 7, 4 mod 11), (1 mod 7, 7 mod 11), (6 mod 7, 7 mod 11)
That you have?
Howโd you get that?
Sorry if Iโm missing out on something obvious
They just seem to appear
Outta nowhere for me
The only 4 roots are 1,6,4,7, how do you get 4 pairs out of them
I may have to DM you this later , I added you.
Loving the help so far though ๐๐ฝ๐๐ฝ
1 and 6 are roots to the first equation
x^2 = 1 mod (7)
and 4 and 7 are roots to the second equation
So, that's just all possibilities
Can someone help me with this
Let p and q be (not necessarily different) prime numbers. Find all solutions to diophantine equation px + qy = pq.
gcd(p, q)|pq
so this is enough
just to write this
if there is no numbers specified
just primes
i mean is this formal solution
ax+by = c, we proceed by checking if gcd(a, b)|c
if p = q
x+y = p
then solutions are given by
x = t
y = p-t
yes but i am interested in solution whitout inserting numbers
if p != q
ok
hm i will think about it
thanks
u = p/gcd(p, q)
v = q/gcd(p, q)
if those are different primes then that's just p and q
general solution is ((2+k)q, -(k+1)p)
or you can shift k a bit
((1+k)q, -kp)
looks nicer
for any k integer ((1+k)q, -kp) is a solution, and those are only solutions
ok thanks
no it's not the same
but sets are the same
ok
ok
is the whole explaination connected
if i add up what you have told me line by line
maybe
hmm
the explaination details
I guess
ok
level is something like high school or higher
it wouldn't be hard to teach a high schooler about linear Diophantine equations, but does anybody do that? 
in my case no
here you go
Are ยฌโx (C(x) ^ B(x)) and โx ยฌ(C(x) ^ B(x)) equal?
yup
Damn how do you type those
I have a keyboard fitted especially for propositional logic and quantifiers, utf8 compliant
Search it up
just l a t e x
$\neg ~ \forall x (C(x) ~ \land ~ B(x)) \text{ and }\exists x ~ \neg(C(x)~\land ~B(x))$
hegel:
Whoever:
no double u
There is no domain/range given for the function
so, should I directly find the inverse?
you should assume the domain to be the largest subset of the number line possible
that is to say, in this case, it'd be (-โ, 8/3) โช (8/3, +โ)
however irrelevant that might be
Noted.
For proving it to be reflexive:
Let x โ N
Since, R = {(x,y): x โ N and x-y is divisible by 5}
=> (x,x) โ R because (x-x) = 0 which is divisible by 5
Therefore, R is a reflexive relation on N.
What else do you think would work?
Let A denotes divisibility by 5 and B denotes divisibility by 9 then,
Integers neither divisible by 5 nor by 9 = 1000 - n(A) - n(B) + n(A intersection B)
Why not use R\{8/3} 
R doesn't have the line not good enuff
n(A) = 1000/5 = 200
n(B) = 1000/9 = 111
n(A intersection B) = > not divisible by 9 and not by 5 => not divisible by 45
=> n(A intersection B) = 1000/45 = 22
Is this way correct?
A intersect B should be both divisible by 9 and 5
oh yes, that's a mistake.
n(A) = n(A-B) + n(A intersection B)
=> n(A-B) = n(A) - n(A intersection B)
that's it?
n(A intersection B) is actually divisible by 9 and 5 both, so, 1000-n(A intersection B) would be not divisible by both
= 1000 - 200 - 111 + 22 Should work for first part
if your function is given by a formula, assume the domain to be the largest subset of R on which the formula is defined, and the codomain to be R, unless otherwise stated
the domain as it happens is R itself for both of these
x^3 - 3x = x(x+1)(x+1), since the function is 0 at 3 points therefore, the function is not one-one. Right?
x^3 - 3x is not equal to x(x+1)(x+1).
Sorry!
Going to take break after solving the last question
but, since it has 3 roots therefore, it is not one-one, right?
well, DOES it have three roots?
If R is a partial-order relation on set S
=> R is anti-symmetric
Since, R is anti-symmetric.
=> for every x,y โ S, (x,y) โ R and (y,x) โ S such that x = y
Since, (x,y) โ R therefore, (y,x) โ R^-1
Since, (y,x) โ R therefore, (x,y) โ R^-1
=> (y,x) and (x,y) โ R^-1 such that x=y
Therefore, R is anti-symmetric.
x^3 - 3x = x (x^2 - 3) = x(x+sqrt(3))(x-sqrt(3)), yes it does?
bad wording
in each line, either the "since" or the "therefore" will have to go
also idk why you put commas after each "since"
this entire proof sounds like an attempt to conform to some sort of rigid format
In Prim's algorithm, if the edge with the least weight creates a cycle, do I choose the immediate next one, or do I go back to the previous node and choose the immediate next there? I'm kind of confused.
prim's algorithm we grow the minimum spanning tree from a source
I know
I'm trying to remember what I learnt
oh
so, we keep a priority queue of points where we store the minimum edge needed to reach that point from our visited points
when the edge with the least weight creates a cycle, just move to the next edge in the priority queue
Yeah sure
@stray reef actually, I was trying to be concise.
wasn't a very good attempt honestly
1st question, part a
Uploading ;-;
What do you guys think? Did I solve it correctly?
the $\cap$ should be $\land$
Ann:
and no, you should've written $(A \land \neg B) \rightarrow \neg (C \land D)$
Ann:
it may be the case that the butler did not do it nor did he return to his hotel room
(i.e. not C and not D)
while your thing fails that
Ohhh
I have noted that capped mistake.
So, (A and ~B) should be the or of all three, right?
He did it and didn't go or he didn't do it and go or he didn't go and he didn't do it
you can do that but it's way simpler to just say NOT(he did it AND went back)
lol
I really didn't see it until she wrote that
I don't understand how to solve this
first thing: do you think it's true or not
true? Give a proof.
false? Give a counterexample
I don't think so? My understanding of the first condition is that if two sets in the collection share elements the two sets referred to are actually the same set, and the second condition is that if two sets share elements, such as S_1 and S_2, then S_1 is equal to S_2
Okay, give a counter example
So the collection of sets {S_i, i in I} where I = {1,2}, S_1 = {1}, S_2 = {1} can't exist with the first condition but can with the second?
I don't know if that even makes sense
So, I had an exam of DM today, I have scored full.
congrats
Thank you very much! You guys should come to India and teach us.
Not everyone is good at speaking English overhere but, most of them understand it.
In reputed colleges you can expect them to know English.
Huh interesting
We really need good teachers, unfortunately teaching has become a source of employment only. One who doesn't gets into a company joins teaching.
You guys have a passion as no one joins a study group that too on discord.
A good idea to discuss math here then
\
i don't get how those two F's dissappear somehow
can you group the F's together using associative laws because they both share "or" to negate each other?
that's what it seems like to me
@steel valve
That's not negation law? Basically, A OR F = A
๐คฆ alright thanks
So there's this variation of the Tower of Hanoi problem. And the solution given by the writers is the following.
Which makes sense, but I've written down a different one and I was wondering if it is correct. In the handwritten solution I have, it says that you need 2n-2 moves for the discs (all of them, expect the base), 2 times. Plus the 2 base discs. So it expresses it in this weird notation:
T[2n]=2T[2n-2]+2
The brackets are indexes. Which also makes, sense, I guess? Not sure, I need your opinion.
Your's is basically the same
It's just a bit awkward because your relation T is only defined at the even numbers
I've also taken a note that T0 is 2. Would that be correct? It doesn't make sense to me.
I mean
Hard to say, the n = 0 case doesn't really make sense, so just plugging it into a formula might give you some weird number
Well the book says T0=0 for the normal Hanoi problem, so I wouldn't change that. It's just that I use it later to calculate the closed-form expression.
I have no clue what you're saying
Is it my English or the math? ๐
the first
Long story short is that I need T0 to finish this exercise and I'm not sure about its value.
It seems dumb if they specifically ask for that
The n = 0 case does not make sense in the context of the problem
You know what a closed-form expression is, right?
I'm asking because terminology might be different in English.
yes
Well, in order to calculate it, I need to specify T0.
With the method I'm using, at least.
I'm not sure how that could be the case
Why you couldn't start at T1, or maybe T2 in your case
Well, I do start at T1, but the recurrence relation has n-1 ๐
So I need a value that makes sense for T0.
Then start at T2
Actually, T2. Because I work with T[2n]. So, for n=1 I'd need to find the moves for 2 discs. So, 2 moves, I guess? T2=2.
Yeah, it's weird. I might be going with the writer's solution.
The writer and your solutions are the exactly same
just substitute 2n for n everywhere
My solution was T[2n]=2T[2n-2]+2. If I do that to the writer's solution I'd get A[2n]=2A[2n-1]+2, no?
Yeah sorry, just divide everything by 2
Yeap, that's it. Thanks for your time and help!
A map fromย \mathbb{N} \to \mathbb{Q}NโQย can be described simply by a list of rational numbers. If this list contains each rational number at least once, we can remove repeats to obtain a bijectionย \mathbb{N} \to \mathbb{Q}NโQ.
For a rational numberย \frac abbaโย (in lowest terms), callย |a| + |b|โฃaโฃ+โฃbโฃย itsย height. There are finitely many rational numbers of each height. Hence, if we list all the rationals of height 1, then the rationals of height 2, then the rationals of height 3, etc., we will obtain the desired list of rationals.
Thus, we concludeย \mathbb{Q}Qย is countable.
but height 1 will be infinite and so will height 2 and so on
bad paste
ah right
my bad
I forgot that we are taking absolute values
lol
can anyone help me with equations
What I want to know is, how I do prove ยฌp โก something with (pฮq)
we good bois, i figured it out
you just sub in logical values for p, q
How do I prove that the number of elements in the set {ฮต,a,b,c,....z}^n is equal to (26^(n+1)โ1)/25? Where epsilon is the empty string.
What does that even mean
in terms of string concatenation rather than the cartesian product
e.g. epsilon + a = a, because epsilon is an empty string
I'm uh, not sure that's true? Like the final counting result
For 1, it's not an integer so
How do I prove that two expressions are NOT logically equivalent without a truth table?
Like, with equivalent proofs I just rearrange the expressions on each side until they equal one another, but how do I know where to stop with two expressions that are inequivalent?
well, for truth table
you can stop when you have T for one expression but F for the other expression
in fact, you can just state the assignment where they are not the same
@faint narwhal are you sure $\frac{26^{n+1} - 1}{25}$ is ever not an integer for $n \in \bbN$?
Ann:
Yeah no I'm dumb
Thank you guys for helping! I have scored full in first test.
This is the part that I've to cover now
Which book should I follow now?
idk but send your university a book about kerning
cursed
Lol
Would guys please recommend now?
As I can't study from the shitty reference book that is being used in our University.
That answers it^
Do you guys agree with what I have for work?
Not sure if I should write 1/x such that x is of rational numbers set (Q)
or keep what I have: x is of an integer set
${ \tfrac1x : x \in \bbQ, x \geq 1}$ would not describe the same set as ${1, \tfrac12, \tfrac13, ...}$.
Ann:
Do you think it's because of the first value, 1?
what are you talking about
it's impossible for a number to be an integer and yet not be rational
all integers are rational
no, i'm talking about the fact that ${ \tfrac1x : x \in \bbQ, x \geq 1}$ contains things you don't want it to contain
Ann:
I see
while replacing the Z with Q would make it WRONG
@faint narwhal
Do you know any good book that I can follow for this? (Unit 2)
For the first unit I followed "How to prove by Velleman" it was amazing.
Think that was my recommendation
The book I used for this stuff was Applied Combinatorics by Trotter
It definitely has the first part of what you're looking for
I loved your recommendation, I am thinking about to buy the hard copy of it but, it is too expensive
For the second part, you'll want a book on abstract algebra. Maybe Pinter's book
Yeah that's the pain. I'd buy all the books if they weren't so expensive
It got me into proofs that even if the questions are not from set, relations I still try to solve them
Seriously, Computer Science to Maths?
With time I've also developed so much interest in Mathematics.
Yeah I did a ton of competition math in middle school/early high school
Then got super interested in cs for late high school and applied to college with cs as my major
But that book along with some early math classes really convinced me to do math
So, you're doing graduation in Math?
Yep
hey guyz
How does one say in logic (symbolic )form
I bought a lottery ticket and may have won a million dollars
Let p and q be the propositions p: I bought a lottery ticket this week. q: I won the million dollar jackpot.
Also how do u express these proposition as biconditional
I think a is infinite, but finite in some cases, b. is infinite, and c is finite rather than infinite
Does anyone agree with my answers or think otherwise? This question has me confused
Any help appreciated
Q^c for example
@loud ingot you are only correct on b
A^c must be finite, for it is only the empty set, no? @stray reef
no
jbc A is infinite doesn't mean A=U
like let U = N and let A be the set of all even numbers
you just said odd numbers don't exist @weary tiger
@stray reef so a and c should both be infinite then?
ok wait
you said "infinite, but finite in some cases" for (a)
that's confusing but it is technically correct
(c) can be both finite and infinite
Could you explain why for c? Just so Iโm clear @stray reef
no it can't, U is infinite and AUB has A as a subset
@loud ingot do you want an example of A \cap B finite or A \cap B infinite
letโs try infinite @stray reef
@stray reef while weโre at it, what would finite look like?
A = the set of even integers, B = the set of odd integers
i invite you to determine what the intersection of these might be
no, just because a set is finite doesn't mean it's empty
you can get finite sets of any cardinality this way
but if you're talking about my example specifically, then yes, my example is the empty set.
I'm taking intro to discrete maths and came across this problem in my textbook. how do you solve it? i tried expanding algebraically
You can do it by expanding algebraically
you should be able to write a_12 in terms of a_1 and a_0
You know a_12 and a_0
just solve for a_1
@faint narwhal so
that seems like a lot of algebraic rearrangement to do by hand
is there a numerical method to kinda bruteforce this
Heโs my tutor weโre both stuck โน๏ธ
I'm saying it's theoretically possible to do, I'm not saying it's the nicest way
sure, sure
but is there a subject i can study up on in particular to be able to solve it more elegantly
Do you know a nicer way
Okay, it's actually not too bad to brute force
However, you should go the other way
Just let a_1 = x
and brute force your way up
so a_2 = 4x + 4
yeah, i reexpressed as a_1 = expression
Then a_3 = 36x + 36 + 6x = 42x + 36
i got up to having it expressed in terms of a_5
Every single term is just going to be linear in x, shouldn't be too bad
and decided that maybe what i was doing was a little unorthodox
This is probably the nicest way
alright. it seems like something i can generalize into a python function without recursion
It's doable by hand in like 5 minutes
or with tail calls at the worst
yeah, but the prof will want it done in python
thanks for insight
@faint narwhal ah i figured out a method to describe it algorithmically due to your noting that it stays linear to x
thank you
or rather linear to a_1
not if you don't post your question
okayy
so
i cant seem to figure out
how to solve the Recursive Staircase Problem
i can figure out how many ways there is to solving it
but not how each way solves it
yeah
it can only go 1 or 2 steps at a time
but what i need now is each step
so for 4 it would be
1,1,1,1 - 1,2,1 - 2,2- 2,1,1 -1,1,2-
but i dont know how to get that
:/
@weary tiger hi
Hi
can someone help me
with these
for 8, i did n!/(n-r)! and n^r but im not exactly sure
heyo
looks okay
Does anyone know what would be a good example for this
A - B =/= B - A
I found this one trickier than I though
Yeah. I tried seeing how different set values of A and B might affect it, but theyโll be the same no matter what I realized. I thought of saying โlet A be the set of all even integersโ and B would be for all odd integers, but then they would equal out to an empty set. Thatโs as far as I managed to get
well for one thing, it looks like the problem wants you to choose A and B to be subsets of {1, 2, 3, ... , 9}
maybe try an example where at least one of the two sides isn't empty?
and another thing, if A is the set of even integers and B is the set of odd integers, what is A - B?
A - B would then be an empty set?
can you tell me what it means for x to be in A - B?
What would x be? Not following srry
I mean the definition
A - B is a set, to define it you need to say what it mean for an element x to belong to it
So for x to be in A - B, it would be saying: the compliment of B, where B is the set of all odd integers. Therefore, x would need to be odd integers
Is that right?
let me save us some time
x in A - B means x is in A and x is not in B
if B is odd integers, then x in A - B means x is even and x is not odd
compare that with what you just said
Yeah probably just read it wrong then
can you think of any even numbers that are not odd?
2, 4, 6, 8 and so on?
Yes
we agreed
x in A - B means x is even and x is not odd
you just gave me a whole list of even numbers that are not odd
therefor....
you basically just said A - B contains 2, 4, 6, 8 but you also claim that A - B is empty
Alright yeah I see. So B - A would contain 1, 3, 5, 9
Nope, due to odds and even integers
right
of course you can use the subsets of even and odd integers of {1, 2, 3, ... , 9} in the actual problem, since it wants subsets of U
I see. So when I write this, and just to make sure Iโm correct
A - B
Iโm saying that this is the compliment of B, and that Iโm looking for values of subset A that share with subset B
Right?
you can refer to it as the complement of B (in A) yes
but A - B is not what you said in the second part of that sentence
the elements shared by A and B make up the intersection not the complement
A - B consists of the elements of A that are not shared by B
I see now
๐
can (2a)!/a! be simplified?
kind of, not really
Would it be more readable if I left it like this?
Yes
Okay then, I won't dwell on it. Thanks.
What?
Is it not?
I don't even know what you're trying to say
Yeah sure that's right
Does this have a known closed form expression? Google or Wolfram alpha aren't helping me.
Yes I am, why? Is it an absurd or a ridiculous question?
it is, think about the question for a second
Oh you probably mean it's a stupid one.
Did you realize why
I'm not quite sure. Maybe there is no such thing as convergent products?
Even if there were, would this converge
I see, so how would this affect my answer?
New to that topic @weary tiger
@weary tiger so I know how to find A x B for that specific question, but Iโm not sure how cardinality, or power of a set would alter the question
Ok, so is this question, A x B, any different from this one, | A x B |
Please keep in mind Iโm very new to discrete math
Ok, so how would find 2. (a) in the pic above
Yep
Hm so cardinality is basically the number of elements in a sec
Set*
So am I finding A x B, then finding the number of elements in the result @craggy sail ?
Alright, but would my way of approaching this problem be correct^^?
Yes

