#discrete-math

1 messages Β· Page 122 of 1

sleek swallow
#

I thought we shared something special. It seems not.

#

πŸ˜„

tranquil jewel
#

so if g o f is injective then g(f(x))= g(f(y)) right, so that means both the output are the same for f as well, well x = y I mean

stray reef
#

so if g o f is injective then g(f(x))= g(f(y)) right
no

#

the definition of $g \circ f$ being injective is as follows:

vital dewBOT
stray reef
#

$(\forall a_1, a_2 \in A)[(g \circ f)(a_1) = (g \circ f)(a_2) \to a_1 = a_2]$

vital dewBOT
stray reef
#

A here is, of course, the domain of g . f

tranquil jewel
#

Mhm

stray reef
#

don't "mhm" me. i'm trying to point out that you left out crucial details

#

anyway w/e

#

you need to show that f is injective

#

that is, for any two points a_1, a_2 ∈ A, if f(a_1) = f(a_2), then a_1 = a_2.

#

you know how to prove if-then statements, right?

#

there's almost like a template. a standard opening line to write at the beginning of the proof of a statement of this form

#

or rather, you'd first write the standard opening line for the proof of a "for all" statement

tranquil jewel
#

Yea I think

lyric pumice
#

@fossil pewter Hi. Is the condition for an ith box applied to all boxes or a single box?

fossil pewter
#

All boxes like first box should have atleast 1 ball
And 5th box should have atleast 5 balls

lyric pumice
#

Alright.

weary tiger
#

since it can use all letters and letters can repeat its 7^7?

uneven mirage
#

Let a[k] = 3k+2. Find the sum a[1] + a[2] + ... + a[200]. is the answer to this 60700? im not sure if im getting it correct

weary tiger
uneven mirage
#

@weary tiger ty what site is that?

weary tiger
#

i just searched for a summation calculator

uneven mirage
#

awesome tysm

near prawn
#

@weary tiger if letters can be repeated then yea

weary tiger
#

if it cant be repeated then i'd just use the permutation formula?

weary tiger
#

is this right?

#

2 * 7 * 7 * 7 * 7 * 5
since there are 2 vowels, and 5 consonants?

near prawn
#

if repetition is allowed then yea

weary tiger
#

thanks!

#

actually idek if they can be repeating

#

i might have read the directions wrong lmao

sleek swallow
#

@uneven mirage There is a nice way to determine the general formula for that sum:

$\sum_{k=1}^{n} (3k+2) = \sum_{k=1}^{n} 3k + \sum_{k=1}^{n} 2 = 3 \sum_{k=1}^{n} k + 2n = \frac{3n(n+1)}{2}+2n$

vital dewBOT
sleek swallow
#

Don't memorize it, of course. Just understand the general principles.

#

@weary tiger From what I can see, your string should make use of all 7 letters listed in the set. Furthermore, it should begin with a vowel and end with a consonant. The set of vowels in that given set is just {a,e}. Repetition is not allowed because you have to use all 7 letters.

weary tiger
#

can someone help with this, it seems like im doing it wrong

stray reef
#

you aren't. these terms really do grow that massive

weary tiger
#

Oh okay, Tyvm

outer perch
#

In how many ways is it possible to partition a set of 2n elements, into n sets of 2 elements?

tacit grove
#

hey i'm a psych grad so my knowledge reg. math doesn't go much further than stats, but i have a friend who sent me an equation with no context and i've worked out that it's discrete math and now i'm here. Anyone mind pointing me in the right direction as to how i should go about learning how to solve this? ❀️

#

that's all i've got to work with

#

plz show me how i can use logical reasoning to solve that

#

^sry just seen your next msg

#

right

#

right

#

i'm here btw just writing this down as you explain ❀️

#

so far yes just re-reading and organising my notes

stray reef
#

{} not []

#

\ not /

#

also the elements in a set need not be numbers (even if in this particular problem they are)

#

anyway

#

A \ B can be informally described as "everything that's in A but not in B"

#

which i think is a better description than "like a list minus"

tacit grove
#

thankyou

near prawn
#

@outer perch did u figure it out

outer perch
#

not yet but i think i'm omw

near prawn
#

what do you have atm

stray reef
#

||(2n)!/(2^n n!), no?||

near prawn
#

yea

outer perch
#

Yeah no idea, care to explain what is each term?

near prawn
#

theres several ways of doing this

#

first we can arrange all 2n items in a row

#

how many ways can we do that in?

outer perch
#

2n!

#

?

near prawn
#

yea

#

now imagine theres imaginary lines separating the 2n items into groups of 2

#

those are your subsets

#

but since the order of each of the 2 items within a subset dont matter we have to divide that out

#

and the position of each subset in the row also doesnt matter so we also divide that out

outer perch
#

2^n is each subset ?

#

no

#

ok i got it

#

i can't get this and it's the second week of the semester i'm gonna cry

#

thanks btw

near prawn
#

you could also pick a random element and pick its partner in 2n-1 wyas

#

pick another element and pick its partner in 2n-3 ways.... so on

#

so its (2n-1)(2n-3)(2n-5).....5 * 3 *1

#

which is the same

#

@outer perchwait so did u get it or na

outer perch
#

Yes

lyric pumice
#

@fossil pewter Hello. There is no simple formula for the problem whose answer you seek.

weary tiger
#

The oracle has spoken.

lyric pumice
#

The result involves counting ordered sets by summing products of binomial coefficients over integer compositions where the size of each part is restricted depending upon its position.

#

@fossil pewter

fossil pewter
#

Indeed I realized the answer would be really nasty because for a simple case like R different balls in N boxes without empty boxes already gives us a hefty series.
Thank you for trying @lyric pumice

near prawn
#

cant you use inclusion exclusion?

lyric pumice
#

@near prawn I'm not sure.

#

@fossil pewter @fossil pewter It appears that there may be a general formula using the principle of inclusion-exclusion, but then it must be very complex.

#

I can attempt a derivation.

fossil pewter
#

I would not recommend lol

lyric pumice
#

It would be a worthwhile pursuit.

near prawn
#

i dont think its that bad

#

its just long

uneven mirage
#

A recursive sequence is given by the following rules:
a0 = 1, a1 = 2, an = an-1 + 2an-2 + 1 for n>1
Evaluate a2, a3 and a4.

can someone check my answer i believe it is
a2 = 5
a3= 10
a4= 21

stray reef
#

$a_n = a_{n-1} + 2a_{n-2}+1$?

vital dewBOT
uneven mirage
#

or is it a2=3, a3=6, a4=11 ?

stray reef
#

no, you had it right the first time around, assuming my transcription of your recursive thing was correct

uneven mirage
#

@stray reef ty

weary tiger
#

I want to show that $2^{n+1} is O(2^{n}).$. I started with $2^{n+1} \leq{2^{n} + 2^{n}}$

vital dewBOT
weary tiger
#

how can i continue from here

pale epoch
#

what's your definition of O(2^n)

weary tiger
#

Its the big O notation

#

Algorithmic complexity in other words

#

I have to show that |f(x)| <= C|g(x)| forall x > k

#

where g(x) is 2^n and f(x) = 2^n+1

#

Can i do $2^{n+1} \leq{2^{n} + 2^{n}}\leq{2^{n}(1+1)}\leq{2^{n}*2}$

vital dewBOT
pale epoch
#

yes, all of those can also be = signs

weary tiger
#

oh right, tyvm

weary tiger
#

can someone explain what happens in step 3?

#

where does the squared go?

pale epoch
#

factored out

#

(k+1) is common term to both summands

weary tiger
#

oh

#

i totally missed that

#

tyvm

#

i dont understand this one either, in step 3

near prawn
#

they just collected like terms?

weary tiger
#

pog ty

weary tiger
#

if im using warshall's algorithm to compute all the paths between towns, i.e. town a b c d e f, and i want to find all the distinct pairs that have a path containing 3 distinct streets is that matrix 3 of warshall's algorithm i.e. 3 possible intermediates?

#

in this case that matrix seems to match the transitive closure im not sure if thats right considering the path (a, b) is in the relation so it doesnt have intermediates

#

also how do i do warshall's algo by hand

azure lichen
#

it’s a pretty tedious algorithm to do by hand (yay O(nΒ³))

#

but uh, you give each node a number (or letter I guess, as you did)

#

then you make a table with a row and a column for each node

#

put a 0 on the main diagonal, a 1 between any neighbors and ∞ anywhere else

#

then you make a new table, which now allows β€œa” as an intermediate node

#

for each cell (x,y), check which of these is smaller: the entry in the same cell on the previous table, or the entry (x,a) plus the entry (a,y)

#

repeat that until you run out of things to add

#

obviously you can shortcut things (e.g. 0s, 1s and 2s will never be improved so you only have to check things with a 3 or higher)

#

but it’s tedious af anyway

weary tiger
#

dam

#

and what about that first part of my question, how do i determine from matrix 3 of warshall the ones that have 3 distinct towns in their path

#

Hey guys! I've been trying to wrap my head around a problem involving 7 digit numbers, as I'm preparing for my discrete math final exam

#

The problem asks: how many 8-digit arrangements can you have, with each digit ranging from 0-9, such that the sum of all digits in each arrangement equals to 16?

#

Any help would be greatly appreciated!

near prawn
#

you can turn this into an equation maybe

weary tiger
#

@neon thorn so in a way, manipulate it using inclusion exclusion?

#

@near prawn the concept described by disc?

near prawn
#

erm no

#

I dont think inclusion exclusion is the way to go, sounds tedious

#

what I meant was writing the digits as
x1+x2+x3+.....x8=16 where 0<=xi<=9

#

and then finding the number of sols of that

#

hm

weary tiger
#

Would that not take a while to solve, given the sheer amount of params?

near prawn
#

finding the number of integer solutions to that equation is straightforward

weary tiger
#

Oh sorry, was directing that at Lemon

near prawn
#

it's the same as the number of eays of distributing 16 identical objects into 8 distinct boxes

#

with those conditions applied

weary tiger
#

How come would they be identical?

#

Yeah, 16 has multiple ways it can be broken down no?

near prawn
#

its identical cuz u can just imagine the 16 as 16 identical 1s and group them into boxes

#

where each box is a variable

sour arrow
#

Oh this is stars and bars, isn't it?

near prawn
#

yea

#

I think this works for this question

sour arrow
#

Oh wait, no it doesn't since no number can be 10 or higher

#

You can always just get rid of those cases, I suppose

near prawn
#

yea I said with conditions 0<=xi<=9

sour arrow
#

The number of ways to write n as an ordered sum of r numbers is:
(n+r-1)Cr

#

That's a common form we use a lot, it's worth remembering. That being said, I just had to look it up. I'm feeling very slow today.

#

Actually, you can't use 10 or higher, can you?

near prawn
#

no cuz it says 8 digit arrangements

sour arrow
#

So it's just 23C8 right?

#

I'm having a slow brain day D:

#

Wait no you can't have a 0 as the leading digit, can you?

weary tiger
#

It says you're allowed to

#

@sour arrow

sour arrow
#

Oh cool so yeah that's the answer in my "expert" opinion. @near prawn Am I doing a dumb?

weary tiger
#

0 as a leading digit is included

near prawn
#

erm

#

pretty sure inclusion exclusion is involved here

#

cuz of the upper bounds

#

that answer over counts

#

but it's fine cuz a max if 1 digit can be >9

weary tiger
#

So we have to somehow eliminate digits larger than 9?

sour arrow
#

Oh fk yes you can have those. We have to count the cases with a 10, ect

weary tiger
#

Oof, how would that work? Because I haven't worked much with something of the sort rip

sour arrow
#

Luckily we can do that pretty easy. Let's say there's a 10 in the number. The other 7 digits then must sum to 6

#

How many ways can 7 digits sum to 6?

weary tiger
#

A heck ton

#

Hmm, lemme see

#

Or am I wrong?

#

Wait big dumb

#

My brain's not working xD

sour arrow
#

Yeah everybody has a day off today it seems lol

#

The number of ways to write n as an ordered sum of r numbers is:
(n+r-1)Cr

weary tiger
#

Oh right

sour arrow
#

In this case, to use 7 numbers to sum to 6:
(6 + 7 - 1)C7

weary tiger
#

12C7

sour arrow
#

So 792 ways

#

But I'm leaving something out. There's 8 different places that 10 could have appeared. So it's actually 8 times that many.

#

These steps make sense?

weary tiger
#

Ohhhh

#

Right right

#

Right, so we subtract 8*792 from 23C8 to get the total amount of combinations excluding ones with 10

sour arrow
#

Exactly, you've got the idea!

weary tiger
#

And we repeat this with every number greater than 9 that is smaller or equal to 16

sour arrow
#

Yeah it's a bit of work at this point, but I don't see an easier way

weary tiger
#

mmm

#

If this question comes up in my final, or something similar

#

I'm so doomed xD

sour arrow
#

It's worth knowing the stars and bars method in general. It handles combinations with repetition

weary tiger
#

Mhm

#

So, just to be clear

#

I'm looking at my textbook

#

And the principle is described as

#

The formula in the box

#

Is that the specific formula we're using?

#

Because (n+r-1)C(r) doesn't follow that format

sour arrow
#

The number of ways to put n similar balls into r distinct bins is (n+r-1)Cr

weary tiger
#

So it's a different concept?

sour arrow
#

Your book says
(k + n - 1)Ck

#

Same formula

#

So think of it this way:
You have 16 balls and 8 bins. How many ways to put them in?

weary tiger
#

(16+8-1)C8

sour arrow
#

The bins end up being the digits of your number, and the balls ensure they sum to 16

weary tiger
#

Ahhh

sour arrow
#

Which is why this also describes the number of ways to take r numbers that sum to n

weary tiger
#

I see, thanks!

#

:D

sour arrow
#

Cool cool, glad it makes sense. I was having trouble with it like 10 minutes ago lol

weary tiger
#

Yeah, I'm in a long car ride and my head can only take so much as well hahaha

weary tiger
#

how can i use a transitive closure to determine this: "show all pairs of distinct towns that have a path containing three distinct streets"

weary tiger
#

also how am i supposed to draw big hesse diagrams? i have a relation with like 30 relations and the set upon which the relation is is a powerset containing 16 elements i cant draw it neatly what kind of shape do i draw

weary tiger
#

also also (sorry for all the questions just answer any of them) how do i show the equivalence class for this relation {(x, y) | xy >= 0, x and y are integers} currently I have something like {a element of integers | a >= 0}

weary tiger
#

is this right

#

7 choose 4

#

yes

#

Hello

#

If I suppose 3 | (n^3 - n)

#

Does 3 divide n^3 - n + 3n^2 + 3n

#

Nvm, just typing it out I realized that every term is a factor of 3

near prawn
#

nice

dry patrol
#

Alrihgt I have a question about Regular expressions

#

I have to create a regular expression with those three conditions

static creek
#

i forgot the mathy/CSy notation for regexs, but in practical applications, this regex works:

[Aa-z](\-?[a-zA-Z]+)*
weary tiger
#

how do i show the equivalence class for this relation {(x, y) | xy >= 0, x and y are integers} currently I have something like {a element of integers | a >= 0}

sour arrow
#

x is related to y only if xy is positive. That only happens if x and y are both positive OR if x and y are both negative.

#

@weary tiger

#

Those are your two classes. All positives are related to eachother, and all negatives are related to eachother.

weary tiger
#

how do i write that im confused about notation

sour arrow
#

Depends on what your teacher wants. I just wrote it above in English

weary tiger
#

he wants like a set builder thingy probably

#

"algebraic"

#

english definitely wont be right

sour arrow
#

Oh fk I missed something. Everything is related to 0, and so this is not transitive and not an equivalence relation.

weary tiger
#

huh?

#

but like if xy >= 0 and yz >= 0 then shouldnt xz >= 0

sour arrow
#

Not if y = 0

weary tiger
#

ohh

#

if x were 1 and z were -1 and y were 0

#

it wouldnt work

#

dam ok

sour arrow
#

Exactly, that. If the question said > and not β‰₯ that would fix it

weary tiger
#

ok let me hit you with the real hard one though

#

im like 99% sure this one is an equivalence relation

#

{(a, b) | a and b were born in the same year, a and b are students in the US}

#

how are the equivalence classes written

sour arrow
#

Is that an "and" or an "or"

weary tiger
#

such that?

#

which thing

#

(a, b) such that a and b were in the same year and a and b are students in the US

#

its an and

sour arrow
#

Gotchya, good

#

Yes this is an equivalence relation

#

"or" would fail transitivity

weary tiger
#

gotchaa

#

yeah its an and

#

so then the classes

#

how's that written

#

like [a] = {x | x was born in the same year as a AND is a student in US}?

sour arrow
#

@weary tiger
Wait, what's the set that this relation is on? Is it the set of all students? Then this is not an equivalence relation, because non-us students aren't related to themselves

weary tiger
#

thats all i was given

#

'{(a, b) | a and b were born in the same year, a and b are students in the US}'

#

my teacher rushes through shit so fast

#

maybe the second part is the set

#

so the set of all US students?

#

and then they're related via birthyear i suppose

#

this homework is so poorly written

sour arrow
#

If it is the set of all US students, then it is an equivalence relation. But yeah you'd need to know the set that this relation is on

weary tiger
#

lets assume us students

#

i just need to "show the equivalence classes"

sour arrow
#

Well, two students are in the same class if they were born in the same year

weary tiger
#

but how is that written im just not getting the

#

notation

#

equivalence classes are sets right?

#

so how would that be written in set builder notation

#

would i just copy the condition

#

[a] = {x is a student in the US | x ~ a}

#

[b] = {x is a student in the US | x ~ b}?

sour arrow
#

Yeah that's essentially it

#

And will always be it

weary tiger
#

alrighty

#

im just gonna put that down and move on

#

my teacher is absolutely trash

#

thanks for your help sorry if i sound stupid

sour arrow
#

Lol no, you clearly get the ideas

weary tiger
#

i like to think so

#

some of this stuff is pretty interesting if i were actually learning it correctly

#

can you help me with another question while you're here?

#

its about transitive closure/warshall algorithm

sour arrow
#

Yes, all of the best structure stuff uses equivalence relations. Get this down and you'll be doing some cool quotient stuff

weary tiger
#

basically im given this set {A, B, C, D, E, F} and im asked to find the pairs of distinct towns that have a path containing three distinct streets

#

so im assuming one of the matrices of warshall tells me that information

#

since there'd be 6 and each one is another intermediate step or something

#

like no intermediates, 1 intermediate,....

#

but i dont get how to read it because matrix 3 has a path that is a direct path so clearly does not have 3 nodes in between

#

because its uh

#

cumulative or whatever

#

it builds from the last matrix

#

let me just tell you the relation maybe we can bullshit this and just let it directly

#

{(A, B), (A, C), (B, D), (C, B), (D, C), (D, F), (E, C), (E, F)}

#

my answer is that only (A, F) has a path containing three distinct streets

#

once i drew out the directed graph of that relation and traced my finger along each thing that seemed to be the only one

#

A->C->B->D->F

#

(A, C), (C, B), (B, D), (D, F)

sour arrow
#

What on earth is the question? Lol

weary tiger
#

ikr

#

jesus man this homework

#

and he has this one question where im expected to draw a hesse diagram with 16 elements and like 40 fucking relations

#

and i am "absolutely not allowed to have any extra space besides the designated area" which is microscopic

sour arrow
#

That's a bit intense but doable

#

Oh

weary tiger
#

yep

#

so if you take streets to mean edges

#

then i think (A, F) is the only one with three distinct streets between A and F

#

well i guess thats 4 actually...

#

ugh

#

so then A->B->D->F

#

thats three streets (A, B), (B, D), (D, F)

#

isnt there a way to use warshalls algo to figure this out?

#

i mean that's what its doing right its building all of the paths with no intermediates, then all of the paths with 1, ....?

weary tiger
#

am i on the right path?

#

this seems really long

#

,w rotate

#

,rotate

vital dewBOT
weary tiger
#

to reiterate, am i on the right path? this seems long

burnt acorn
#

Hello, I'm new here. I was just working through a problem and I think I have the answer but I'm looking for another opinion

burnt acorn
stray reef
#

what's the original problem

burnt acorn
#

The picture

stray reef
#

and also why did you doublepost

#

don't do that

burnt acorn
#

Um sorry I'll delete the other one, I just didn't know which channel to ask in

stray reef
#

anyway

#

uh

#

all the picture contains is an expression

#

what are you asked to do with it

burnt acorn
#

The textbook says to "compute each expression"

stray reef
#

can you take a pic of the textbook where it lists the problem

#

so that we don't have to keep playing broken telephone

burnt acorn
#

Yes no problem.

stray reef
#

o_O

#

jeez that is some weird phrasing

burnt acorn
#

So the form is says to use for these types of problems is n!/n!(n-r)!

stray reef
#

i can tell you for sure that this doesn't equal $\frac{1}{(n-k+1)!} - (n-k+1)!$ though

vital dewBOT
burnt acorn
#

yeah, and that is why i think it is 1/0

stray reef
#

it's not

#

what does the answer key say? n(n-1)(n-2)...(n-k+2)?

burnt acorn
#

this particular problem is not in the answer key, sorry.

stray reef
#

it's weird how you're asked to ""compute"" this and not, say, "simplify" or "rewrite w/o factorials"

burnt acorn
#

Yeah, let me show you another snip, you don't mind do you?

#

This is how I came up with n! / (n-k+1)!(n!-(n-k+1)!), with that wouldn't the n! in the numerator and denominator cancel, since we are technically multiplying these expressions?

stray reef
#

n! / (n-k+1)!(n!-(n-k+1)!),
bad

burnt acorn
#

What do you mean "bad"? Isn't that the form it should be in to continue working it?

stray reef
#

it's just bullshit, is what i'm saying

novel quartz
#

Hey anyone active in here I think I have a fairly simple question

stray reef
novel quartz
#

Okay its about pascal encoding,
would the length part of the string be the number of bytes or characters?

stray reef
#

uhh

#

what

novel quartz
#

oh wrong place maybe

weary tiger
#

Hello @weary tiger

fiery pivot
#

Hmm

#

Sounds interesting

#

I"ll have a think

weary tiger
#

Why ping?? PanGPingRee

#

@Prealgebra

weary tiger
#

Am I right if I say

#

(3x)/2 + 1 is O(x) with C=4 and k=0.4

stray reef
#

seems so?

weary tiger
#

how could i remove the transitive relations from a binary matrix?

stray reef
weary tiger
#

ok i think i figured it out

#

you use the square of the binary matrix and if there's a corresponding non-zero value you set the value to 0

#

im tasked with drawing the hesse diagram for {(a, b) | a subset of b and a and b are subsets of {1, 2, 3, 4}}

#

so then i calculated the binary matrix relation from the powerset given that a is a subset of b, then i remove all of the reflexive relations (just zero out the diagonal), and finally i remove the transitive relations by finding the square of the matrix and if the i-th row and j-th column are non-zero in both the square of the matrix and the matrix itself then the value is set to 0

#

and now FINALLY i can draw the stupid diagram which is going to be a disgusting web of 16 nodes

#

and im a horrible artist

#

so now my question to all of you is how do i draw a 16 node directed graph? i dont get how to organize these graphs so they're clean

#

do i use some sort of 16-gon shape or something?

#

i realize now that there's a pattern here where the relation will always be to all sets with exactly 1 more element :/

#

all that work

#

Why is n^(1/10) big O of (log2(n))

#

if I plot both, the log function is an upper bound on the exponent function

hardy viper
#

nah n^1/10 gets bigger eventually

weary tiger
#

when?

#

log is in base 2

hardy viper
#

to convince yourself n^c always beats log, try to think about how they increase at really big numbers

#

like from 2^100 to 2^101, log increases by 1

#

but n^1/10 gets multiplied by (2^100)^(1/10)=1024 nvm it gets multiplied by 2^1/10, close enough

weary tiger
#

Ahh I see, thank you

weary tiger
#

Hey guys, I'm having a hard time following the explanation given by this practice test

#

The following questions involve preparing lunches for your 4 kids using 6 different types of fruit (apples, oranges, bananas, kiwis, pears and mangoes).

#

Why is it that we have 5 * 4 permutations when we pick 3 apples?

#

oh wait

#

Now that I think about it, I just figured it out hahaha

#

big brain

near prawn
#

np

weary tiger
#

would anyone mind helping me with this

#

i dont understand the reccurance relation a_n found

#

where does 2^(n-2) come from

weary tiger
#

$(n \geq 1) $

vital dewBOT
charred cargo
#

can someone help me proving by contradiction that there is no largest rational number

faint narwhal
#

What have you tried?

sleek swallow
#

@charred cargo

charred cargo
#

I assume that there is

#

that would mean that if T is the largest rational number then it would be greater than x/y and x and y can be any number

sleek swallow
#

$y \neq 0$ and $T \geq \frac{x}{y}$ for all rationals $\frac{x}{y}$

vital dewBOT
sleek swallow
#

Go on

charred cargo
#

i dunno what to do from here

#

am i supposed to divide by something

sleek swallow
#

Well, consider this

#

Is T+1 rational?

charred cargo
#

yes?

sleek swallow
#

And is T+1 > T?

charred cargo
#

hmmm

#

simple

#

ok

#

i get it

#

wait

#

but thats not proof by contradiction

sleek swallow
#

Yes. So, by your hypothesis, $T \geq T+1$. That's a contradiction.

vital dewBOT
sleek swallow
#

Understand?

charred cargo
#

yes

#

but dont go

#

i have just a few more questions

sleek swallow
#

The idea is that T+1 is rational, so $T \geq T+1$, which is exactly your assumption. But that's a contradiction, since T < T+1

vital dewBOT
sleek swallow
#

Ffs

#

Then, it remains to be proven that T+1 is actually rational. This is a relatively simple thing to do and I'll let you do that on your own.

#

@charred cargo Sure, ask away. I'll answer if I have time lol

charred cargo
#

one sec

#

alright

#

so since im only just now getting past the first one

#

ill post the question

#

then try to solve it then when i get stuck you can pitch in

#

thank you

#

"Using the method of proof by contradiction, prove that if a
product of two positive real numbers is greater than 1,000,000, then at least
one of the numbers is greater than 1000."

sleek swallow
#

Okay.

charred cargo
#

wait

#

let me try to explain it

sleek swallow
#

Actually, let me give you a bit more to deal with.

#

Consider the product of two positive real numbers $r_1 r_2$. Let that product be greater than a number $m$. Then, prove that at least one of the numbers is greater than $\sqrt{m}$.

#

^Prove this instead.

charred cargo
#

no

#

im doing homework

#

i have to finish this

sleek swallow
#

It's the same problem

charred cargo
#

but i can atleast learn

vital dewBOT
sleek swallow
#

But alright, explain what you have

charred cargo
#

ok so the statement is if (a+b > 1000000) then one of the numbers is greater than 1000

sleek swallow
#

product of two positive real numbers

charred cargo
#

the contradiction would be that if (a+b > 1000000) then none or both of the numbers is greater than 1000

#

right?

sleek swallow
#

No! You're being asked to show that $ab > 1000000 \implies a > 1000 \lor b > 1000$

vital dewBOT
sleek swallow
#

product of two positive real numbers
You used a+b

charred cargo
#

oh

#

the contradiction would be that if (a*b > 1000000) then none or both of the numbers is greater than 1000

sleek swallow
#

You're asserting that at least one of the numbers is greater than 1000. That's the assertion being made by the question. So, you begin by assuming that neither is greater than 1000

#

That's the start of your proof by contradiction

charred cargo
#

if (a*b > 1000000) then (a < 1000 and b < 1000)

sleek swallow
#

?

charred cargo
#

neither a or b is greater than 1000

#

thats what you said

sleek swallow
#

Okay. I'm going to spell this out for you. Make sure you tell me if you're not understanding anything:

Let $a,b \in \bR$. $a \cdot b > 1000000 \implies [a > 1000 \lor b > 1000]$.

So, you assume that $a<1000$ and $b < 1000$.

vital dewBOT
sleek swallow
#

What do you do from there?

charred cargo
#

is that not what i just did

#

(a < 1000 and b < 1000)

amber hill
#

What? Is this proof by contradiction or?

sleek swallow
#

if (a*b > 1000000) then (a < 1000 and b < 1000)
This is what you wrote. It changes the entire assertion being made. Typically, we don't change the implication when we use proofs by contradiction.

#

Yes, this is a proof by contradiction.

#

Anyways, kozzmic, continue.

amber hill
#

Where is the problem btw?

sleek swallow
#

Scroll up.

amber hill
#

\sqrt{m}?

sleek swallow
#

"Using the method of proof by contradiction, prove that if a
product of two positive real numbers is greater than 1,000,000, then at least
one of the numbers is greater than 1000."

amber hill
#

Are you looking for a solution?

sleek swallow
#

Kozzmic is attempting the question.

charred cargo
#

ok

#

i get it

#

one sec

sleek swallow
#

Okay.

#

Delete that, fourier.

#

Wait for them to show their proof.

amber hill
#

How do I delete the bot's input?

sleek swallow
#

Click the red bin icon

amber hill
#

Umm okay, so you were not looking for a solution?

charred cargo
#

wouldnt i just input something less than 1000

#

then test it

sleek swallow
#

Kozzmic is the one who's showing their proof to me. So, we're waiting for them to show it.

#

Kozzmic, that doesn't prove it generally.

amber hill
#

okay, lol.

sleek swallow
#

Sure, if you try all of them, then that would definitely prove it. But there's a faster way to do it that doesn't involve trying all of them.

amber hill
#

you tutoring him?

sleek swallow
#

No. Just assisting with the problem.

amber hill
#

Ah, I see.

#

Got any unsolved problems(on the server)?

sleek swallow
#

Generally, we don't give out answers in this server. For me, I write full proofs only as an illustration for someone getting into proofs.

charred cargo
#

uhh

#

how do i explain this

sleek swallow
#

You've assumed that a<1000 and b<1000

#

What can you say about the products of those two numbers?

charred cargo
#

i could show that 1000 * 1000

#

is 1000000

#

so any a or b less than that cant get that high

#

i think i said that wrong

sleek swallow
#

In other words

charred cargo
#

do you get what im trying to say

sleek swallow
#

ab < 1000000

#

Is that what you're trying to get at?

charred cargo
#

yes

sleek swallow
#

Do you see why that's a problem?

charred cargo
#

yes

#

it contradicts

sleek swallow
#

Do you see why ab<1000000 is a contradiction?

#

Good

#

So you've proven the result

#

And what I was trying to get at earlier is that there's a more general result here:

$ab > m \implies [a > \sqrt{m} \lor b > \sqrt{m}]$

vital dewBOT
charred cargo
#

ive got another question

#

just give me a sec to write

#

i'll ping you if you are willing

sleek swallow
#

Sure.

charred cargo
#

@sleek swallow

#

u there

#

what does this mean

#

f : R+ οΏ½β†’ RR>2

#

nooo

#

where did you goo

sleek swallow
#

??

#

What's RR?

charred cargo
#

wait

#

all positive real numbers

sleek swallow
#

That's just a function that maps the elements of one set to the other set. Both sets, in this case, have been specified.

#

$\bR_{R > 2} = {x \in \bR: x > 2}$

vital dewBOT
charred cargo
#

I dont get what the one one te right

#

oh

sleek swallow
#

I mean, I assume that that's what it means. It seems like a reasonable assumption. I've not seen that notation being used in the books that I use.

charred cargo
#

I dont understand how that would relate to the equation though

#

i can prove that the equation is one to one using a horizontal line test on the graph

sleek swallow
#

Well, note that $\sqrt{x}$ is only defined when $x \geq 0$. Furthermore:

$\sqrt{x} > 0$

$2+\sqrt{x} >2$

vital dewBOT
sleek swallow
#

Now, keep in mind, you're considering only the positive real numbers. 0 is not a positive real number, which is why $\sqrt{x} > 0$.

vital dewBOT
amber hill
#

Since domain is positive real numbers, the corresponding range is unique for given FE, and for range= codomain.

#

so, bijective.

charred cargo
#

so basically i just have to prove that the function is bijective

sleek swallow
#

Lmao that is precisely the question.

#

You're being asked to show that it is injective and surjective. In doing so, you can show that it's bijective.

charred cargo
#

k i thought all that R stuff was extra steps

#

i can use the horizontal line test

sleek swallow
#

That 'R stuff' is important.

charred cargo
#

or is there a more discrete math way to do this?

sleek swallow
#

? Discrete math way?

amber hill
#

Wait, which level problem is this?

sleek swallow
#

There's an analytical way to do this, certainly

charred cargo
#

i feel like horizontal line test is not the way im supposed to do it

#

could you give me a hint as to what the analytical way is?

sleek swallow
#

You're not wrong. It's the geometric way of seeing why it might be true but it does not constitute a proof

#

Well, what're the definitions of injectivity and surjectivity?

amber hill
#

I truly wish I had teacher like @sleek swallow .

sleek swallow
#

Let $f:A \to B$ be a function between two sets $A$ and $B$. Then, it is injective iff:

$f(x) = f(y) \implies x = y$

Of course, $x,y \in A$. Then, it is surjective iff:

$f(A) = B$.

vital dewBOT
sleek swallow
#

Lol why

charred cargo
#

one sec

sleek swallow
#

Sure.

charred cargo
#

@sleek swallow thank you for all your help

#

i'll continue tomorrow

#

now i must rest

sleek swallow
#

You're welcome. Rest well.

fiery pivot
#

@weary tiger I figured out your problem

#

It's actually kinda not hard

#

But it took me going to sleep to figure it out

#

Wait hmm

#

Nevermind I did a silly

#

Clearly need to wake up more :?

#

It works for some cases but

#

Maybe other cases are possible

#

Ok there are definitely at least some other cases

#

Wait nvm

#

No they aren't

#

Ok

#

It does work

#

I didn't do a silly

#

Hint 1: ||for which number of vertices can such a graph exist?||

#

Hint 2: ||Apply an arbitrary starting point and direction to the hamiltonian cycle||

weary tiger
#

Could someone help why is this O(9n) ?

#

I tried to put "f(n) = 9n" in my calculator to see if they ever meet but didn't find anything

stray reef
#

you mean O(9**^**n)?

weary tiger
#

Ah jeez I misread the textbook

#

Yea O(9^n)

#

why do we drop the 2n and 3n for just n ?

#

same thing as 3n is O(n) right ?

fluid zealot
#

for all sufficiently large values ofΒ x, the absolute value ofΒ f(x) is at most a positive constant multiple ofΒ g(x). That is,Β f(x)Β =Β O(g(x)) if and only if there exists a positive real numberΒ MΒ and a real numberΒ x_0Β such that
|f(x)|≀Mg(x) ,βˆ€xβ‰₯x_0

weary tiger
#

so 3n is O(n) because with M=4, 5 n is greater than 3n

#

why is log(n^2) big O of log(n)

#

I can't put a M infront of log(n) that would make it greater than n^2 ?

azure lichen
#

log(nΒ²) = 2log(n)

weary tiger
#

Ah, basics

#

Got it, thanks

near prawn
#

dont multipost

weary tiger
reef thistle
#

You are talking about the second question?

#

@weary tiger

weary tiger
#

the first one

primal sluice
#

Isn't "binary numbers" the same set as natural numbers*? If so, then "rationals", "reals", "integers" should contain binary numbers, while natural number is the only (non-strictly) subset of it.

*assuming "natural numbers" is meant to include zero, but even if it doesn't the answers above wouldn't change

stray reef
#

wtf is a "binary number" in this context

reef thistle
#

Maybe it's just 0 and 1

short wyvern
#

What would be an example of an element of $\bQ^{3} set?$
Can I just say it’s a 3D point with each of its coords in Q?

stray reef
#

bad tex

vital dewBOT
stray reef
#

still bad tex

short wyvern
#

:/

stray reef
#

but yes Q^3 is just the set of all ordered triples of rational numbers

#

for example, (1/2, 1/3, 1/4)

short wyvern
#

So there is no trick behind such a question? It seemed odd and out of place among all the other questions in the hw

stray reef
#

what's the exact wording of the question

short wyvern
#

State an example of a Q3 element

stray reef
#

that's it?

#

all you were asked for was an element of Q^3? no other requirements?

#

do you have a pic of the question

short wyvern
#

Ye

#

It’s in Russian tho

stray reef
#

well you're in luck

#

i'm a russian native

short wyvern
#

One sec πŸ˜‚

stray reef
#

Π° ΠΊΠ°ΠΊΠΈΠ΅ Π΅Ρ‰Π΅ Ρ‚Π°ΠΌ ΠΏΡƒΠ½ΠΊΡ‚Ρ‹, Ρ€Π°Π΄ΠΈ интСрСса?

#

Ρ‚Π°ΠΊ-Ρ‚ΠΎ Π΄Π°, Q^3 - это мноТСство Ρ‚ΠΎΡ‡Π΅ΠΊ Π² Ρ‚Ρ€Π΅Ρ…ΠΌΠ΅Ρ€Π½ΠΎΠΌ пространствС с Ρ€Π°Ρ†ΠΈΠΎΠ½Π°Π»ΡŒΠ½Ρ‹ΠΌΠΈ ΠΊΠΎΠΎΡ€Π΄ΠΈΠ½Π°Ρ‚Π°ΠΌΠΈ, Ρ‚ΡƒΡ‚ Π½ΠΈΠΊΠ°ΠΊΠΈΡ… странностСй Π½Π΅Ρ‚

short wyvern
stray reef
#

Π°Π³Π°, Π²ΠΈΠΆΡƒ

short wyvern
#

ΠŸΡ€ΠΎΡΡ‚ΠΎ Π±Ρ‹Π» нСбольшой Π·Π°Π²Π°Π» с Π΄Ρ€ΡƒΠ³ΠΈΠΌΠΈ ΠΏΡ€Π΅Π΄ΠΌΠ΅Ρ‚Π°ΠΌΠΈ ΠΈ Π½Π΅ΠΌΠ½ΠΎΠ³ΠΎ Π²Ρ‹ΠΏΠ°Π» ΠΈΠ· дискры

#

ΠŸΡ‹Ρ‚Π°ΡŽΡΡŒ Ρ€Π°Π·ΠΎΠ±Ρ€Π°Ρ‚ΡŒΡΡ

steel parcel
#

Hello, I was wondering if someone could assist me in completing this practice problem? I have a test friday and im trying to cover some problems in my textbook for assistance. I'm kind of behind in my class because of personal issues.

obtuse lance
#

show how much you can do on your own

steel parcel
#

not much, I had surgery recently so ive been behind in my classes, and with the coronavirus outbreak, I can't exactly go see my professor or even go to my campus library. I just want to understand but because my resources are limited I can't. That's why I came here, so I could understand. I'm not asking anyone to be like "Gimme the answers" just a small explanation is what I want. I've tried looking at the textbook's explanations too, I just don't get it.

lyric pumice
#

@steel parcel Can you identify a subset?

steel parcel
#

I got it, i had to ask my friend. thanks. And yeah.

sleek swallow
#

What have you tried?

#

Do you know what $\bZ \cross \bZ$ means?

vital dewBOT
sleek swallow
#

$\bZ \cross \bZ = {(x,y) | x \in \bZ \land y \in \bZ }$

vital dewBOT
sleek swallow
#

So, your function is mapping an integer to each ordered pair in $\bZ \cross \bZ$

vital dewBOT
sleek swallow
#

Do you understand me so far?

#

@weary tiger

#

Okay

#

Now, you want to try and show that the function is not injective

#

So what do you have to do?

#

No. That's not a counterexample.

#

The given function is injective iff:

$f(x_1,y_1) = f(x_2,y_2) \implies (x_1,y_1) = (x_2,y_2)$

vital dewBOT
sleek swallow
#

Now, consider $x_1 = y_1 = 2$ and $x_2 = y_2 = 3$

vital dewBOT
sleek swallow
#

Can you see why this is a counterexample?

#

Yeap. At the very least, it was an alternate name for injectivity in the text I used. Hence, I'm following that.

#

Well, if it wasn't a counterexample, then the assertion would be that (2,2) = (3,3). By a theorem on ordered pairs, that would imply that 2 = 3

#

Yes

#

Understand?

#

You can generate any number of counterexamples.

#

Well, the ordered pairs (1,1) and (2,2) would certainly form counterexamples.

#

It would be a counterexample. So, (1,1) and (3,3) are counterexamples.

#

Yes. You're trying to find two ordered pairs $A$ and $B$ such that:

$f(A) = f(B) \implies A = B$

Is false. So, you need two ordered pairs to be able to do that.

vital dewBOT
weary tiger
#

do you know what onto means?

sleek swallow
#

What does it mean

weary tiger
#

hint: xΒ²>=0 for all x in Z

sleek swallow
#

State the definition

#

No

#

A negative integer will be a counterexample since there are no integers x and y such that x^2+y^2 = negative integer

#

No! Suppose that we have a function between two sets $f:A \to B$. Then, $f$ is onto or surjective iff for all $b \in B$, there exists an $a \in A$ such that f(a) = b.

vital dewBOT
sleek swallow
#

So, in this case, you need to find an integer z for which there does not exist any integer values of x & y so that f(x,y) = z

#

You need to find an integer. Not ordered pairs.

#

No.

#

I'm starting to think that you do not understand what surjectivity is or what the question i asking of you.

#

So, go and read up on that first before attempting the question.

#

No!

#

First of all, it's:

$f(1,-2) = 1^2+(-2)^2 = 5$

vital dewBOT
sleek swallow
#

Secondly, that's not a counterexample because 5 is an integer

#

I'm going to reiterate this slowly.

Let $A$ and $B$ be sets. Then, let $f:A \to B$ be a function. Now, f is said to be onto or surjective iff for all $b \in B$, there exists an $a \in A$ such that $f(a) = b$.

vital dewBOT
sleek swallow
#

Now, translate that to your problem.

$f:\bZ \cross \bZ \to \bZ$ is surjective iff for all $c \in Z$, there exists an $(a,b) \in \bZ \cross \bZ$ such that $f(a,b) = c$.

vital dewBOT
sleek swallow
#

Now, $f(x,y) = x^2+y^2$. So, let $c = -1$. Then, we can see that $x^2+y^2 = -1$ has no solutions in the integers.

vital dewBOT
sleek swallow
#

You are not listening to me

#

Why are you not listening to me?

weary tiger
#

a counterexample to surjectivity is in the codomain not on the domain, so in this case its not an ordered pair but an integer..

sleek swallow
#

What does it mean for the relation to be reflexive?

weary tiger
#

a relation is not a function (in general)

#

no that is wrong

#

xRy doesn't have to be true for all x and y in T

#

No.

#

do you know what a relation is?

#

that's not a proper definition tho

sleek swallow
#

That's not a definition at all

#

@weary tiger Go and review what a relation is first. Then, come back with questions.

#

Giving a 10 minute lecture on what it is is going to be useless.

weary tiger
#

Hey guys! Does anyone know how to program truth tables in c++?

#

Could you elaborate?

#

I need to program a truth table based off of how many propositions and premises I'm given.

#

So like for $P\implies Q$ you have to enumerate all the possible truth values?

vital dewBOT
weary tiger
#

Yeah, so.. Say I'm given an argument that says..
p and q, therefore p. I need to print a table that checks if it's valid.

#

So I'm moreso proving if a logical inference is valid.

#

Would sound like a recursive algorithm to me

#

So in FOL you have 3 elementary connectives

#

My professor gave me a hint saying that I would have to convert to binary.

#

Does he mean encode true or false in binary?

#

So 1 for true and 0 for false

#

Yes

#

Say I have 2 propositions, the amount of columns I would have for my truth table is 2^2, which is 4, right?

#

Dunno, in C++ you have true and false as bool types so idt that's needed

#

Right

#

All combinations

#

Yeah, I need to print out all combinations and all I know is that I need a dynamic 2D array

#

and that I need to convert numbers to binary.

#

Binary is not a hint but rather a requirement?

#

I did ask if I should use bools but she said that binary is more efficient?

#

Wtf they are literally the same

#

The compiler optimizes for bools

#

Uses the least space

#

And there is even special types for bools like vectors

#

That are optimised

#

Anyways, where are you stuck on your assignment?

#

Yeah, idk. We all asked if we should use bools but she said that binary would be easier for us.

#

We're all not advanced, btw.

#

Ah alright I suppose uint8_t would also suffice

#

I just don't know how to print out all the variations for each of the propositions. She gave us a code snippet if you'd like to see?

#

Sure

#

How do I do the little code box again?

#

`

#

This is the code that converts something to binary, I believe:
while(c > 0) { b[i] = c%2; i--; c = c/2; }

#

Wait why would you turn a number into binary if you are talking about propositions?

#

Are you using gΓΆdel's method?

#

For example, c would be 101 which equals 5.

#

and it would decrease depending on how many rows I need to print out

#

if that makes sense

#

But this code turns a number into its binary representation

#

c is a number and then its binary representation is stored in b

#

I think I remember her saying that it's the remainder that we need

#

so if c is 5 then my first element in the array would be 1

#

In what contex would this be used in a truth table?

#

Where would you have numbers greater than 1?

#

To print out combinations.

#

There wouldn't be numbers greater than one since we're only taking the remainders I believe

#

Right but you are turning something into a binary number

#

So do you want to store a collumn of a truth table as one number and then turn it upon use into a binary number to save space?

#

Yes!

#

Ahh

#

So this optimisation would probably come in later in the game

#

First you'd need to build the other things around that truth table I suppose

stray reef
#

no

#

no you're both missing elements that should be there and including ones that shouldn't

weary tiger
#

Equivalence classes are distinct sets

stray reef
#

disjoint

weary tiger
#

Yeah

#

What I meant πŸ˜…

#

If that is a correct equivalence class, do you think this is the answer to the question?

stray reef
#

no, this is still missing a ton of relations

weary tiger
#

Right and that

#

Symmetry

stray reef
#

well for one, do you really need to do that

weary tiger
#

Is that really what the question asks of you?

#

It just asks you to list distinct equivalence classes

#

There is a shorthand notation, no?

#

No those are numbers not equivalence classes

#

Did you mean representatives of equivalence classes?

fresh flame
#

Correct me if I'm wrong, but isn't $a \equiv b$ (mod $n$) the same thing as $b \equiv a$ (mod $n$), as in the two are interchangeable?

vital dewBOT
weary tiger
#

Yes those are the equivalent statements

#

Becaue the relation is symmetrical

fresh flame
#

That's what I thought

#

just wasn't sure because I couldn't find a theorem supporting it

weary tiger
#

@weary tiger let me ask you this way: how did your course define equivalence classes?

#

@fresh flame that's typically shown when the question comes up if the divisibility relation is an equivalence relation

#

Right so do equivalence classes contain pairs?

#

In your case

#

Did you not say it consists of elements related to 0?

#

Say you have a set $A$ with an equivalence relation $\sim$ on it and an element $a$ then the equivalence class is defined as $[a]_{\sim} := { b\in A | a \sim b }$

vital dewBOT
weary tiger
#

How many distinct such sets can you find?

#

In this case $a\sim b :\iff 4|(a-b)$

vital dewBOT
weary tiger
#

Why do you believe that it is 6?

#

Do you mean by 16,14,.. the equivalence classes, so $[16]_{\sim}$?

vital dewBOT
weary tiger
#

16-12 = 4 which is divisible by 4 therefore 4|(16-12) and 16~12 which means these two are not in disjoint equivalence classes

#

?

#

That should be it, though quite complicated written

#

So what you are looking at is the numbers mod 4

#

There is a simple way of finding the solution

#

$\bZ /(m) = {[0]\sim, [1]\sim, \dots , [m-1]_\sim}$

vital dewBOT
weary tiger
#

Where m is your modulo which is 4 in this case

#

So since your numbers exclude 0 you can exclude [0] from there

#

So you have [1] and [2]

#

As your solution

#

You could validate this yourself by looking at the remainder and how it works for values less than 4

#

And then how it works for values greater than 4

#

Those are the same

#

The same equivalence classes can be written with different reprisentatives

#

Uh oh I think I missed something

#

0 would obviously be equivalent to 4

#

So [1],[2],[3], [4]

#

Right we start counting from 0 to m-1=3 so there must be 4 equivalence classes

#

Sorry I did a mental oopsie there

#

Those are the properties of a equivalence relation so yes

#

It does look correct even though the abuse of notation

weary tiger
#

Can you formulate an inverse function?

fallen tinsel
#

i was thinking yes but not sure since it wasnt in an equation fomr

#

form

weary tiger
#

So let $f(x)=(y_1,y_2) = (x, 2x)$ then $f^{-1} (f(x)) = x \implies f^{-1} ((y_1, y_2)) = x$ and how can we reach that? $2x-x=x$ therefore $f^{-1} ((y_1,y_2))=y_2-y_1$. Meaning $f^{-1} (f(x)) = 2x-x = x$ for all $x\in \bR$

vital dewBOT
weary tiger
#

@fallen tinsel

#

This is always a unique solution for any x so this function is injective and surjective

fallen tinsel
#

thank you

weary tiger
#

Hi, I am trying to prove that if G is a Hamiltonian graph, then L(G) is also Hamiltonian, and need a bit of help with how to go about it

weary tiger
#

if you need to make 4 teams of 15 people out of 60, then what is the number of combinations possible?

#

I figured I'd go about it like 60C15x45C15x30C15x15C15

#

which adds up to 60!/(15!)⁴

#

but the key provided says 60!/4!(15!)⁴

#

why the 4! in the denominator?

faint narwhal
#

what does 4! usually represent?

weary tiger
#

the only thing i could think of is if it were perms and the 4 teams were undiscernable, then I'd divide the factorial answer by 4!

faint narwhal
#

are the four teams undiscernable?

weary tiger
#

yes

#

but it's combinations tho...

faint narwhal
#

What do you mean by that?

weary tiger
#

what do i mean by which part?

#

okay, chances are idk what i am talking about

#

yeah, that's what i am not understanding either

orchid pawn
#

repetitions

weary tiger
#

but doesn't it represent repetitions in permutations only?

faint narwhal
#

sure

#

but like you said, the four terms are undiscernable here

#

if we pick the 15 people for the first team

#

its the same as if we had picked the same 15 people for the last team

weary tiger
#

yes, i understand that bit, Disc

#

and i understand that one too, number-person

orchid pawn
#

@weary tiger see your framework of choosing the teams

#

it's inherently counting the same kind of teams multiple times

weary tiger
#

i didn't know that you'd have to divide the answer by a factorial even in the cases of permutations

#

okay, let me think about it

orchid pawn
#

dump the idea of "doing this when that"

#

and take a logical approach instead

#

do whatever is needed wherever it's required, as long as you can back it up

weary tiger
#

yeah, that's what i am gonna do and re evaluate the problem

#

imma get back when i am done doing that

orchid pawn
#

alright

#

just think about how your "algorithm" to choose the teams works

#

you'll see the problem

weary tiger
#

okay, let me present a dummed down version of the problem. if i have 6 things and i need to make 3 teams of 2 things. then first imma pick any 2 things with 6C2. then 4 left. 2 more, 4C2. 2 left. 2C2. And then multiply em. and shouldn't that be the end of it?

#

why shouldn't it be the end of it?

#

disc, i am not sure i follow you, friend

faint narwhal
#

Okay, let's call them ABCDEF, the six things

#

For our first team, let's choose AB, second team will be CD, last team will be EF

#

Okay that's one way to choose the teams

weary tiger
#

okay

faint narwhal
#

Now, let's do another way

#

let's choose CD for the first team, then choose AB for teh second team, then choose EF again for the last team

weary tiger
#

well they're both the same teams

faint narwhal
#

The way you've counted it, you've counted these two as different ways to choose

weary tiger
#

well, have i? let me think

#

ah yes!

#

i have

#

oh yeah, it's all coming together now

#

thanks, people

faint narwhal
#

This should say that exactly 3 of the digits are 1's

#

but you have to choose which 3 of the digits to forcibly make into 1's

potent vortex
#

So I'm looking at my teachers slides for a topic I missed one day but I'm having trouble understanding why this is true

#

How does the answer in the induction step solve the problem as to whether the relation and the closed form solution are the same?

#

To me it's just spitting out the the original formula but with a 'K' substituted for n?

#

Oh wait I see now. The recurrence formula was tacked on to the closed form

weary tiger
#

Is the "- n" outside of the summation ?

sleek swallow
#

Looks like it

weary tiger
#

What should I do at this point ? I'm not sure I did it correctly

potent vortex
#

Will a 4 variable truth table always have 16 rows or will it be less if it can be split into two separate truth tables before bringing together?

weary tiger
#

why split ?

potent vortex
#

Live if it's ( P v Q) v (R ^ S)

weary tiger
#

I haven't seen truth tables being split, not sure what you'd gain from it

potent vortex
#

Would it be logical to do left and right halves separate like that? Or just go for the 16 row table?

weary tiger
#

you're probably going to mix yourself up

#

if you simplify to just 2 variables and try to split that

#

for example p -> 0 and 1

#

q would have to be 1 and 0

#

like you'd have to maintain an order that covers all possibilities over 2 seperate tables

#

For what it's worth (I've only taken 1 discrete math class) I'd go for 16

#

Hi, can someone tell me how i should continue this?

#

Four subsets of E*

#

I have never seen something so annoying as this course

#

I mean the logic is there but the way to express it in terms

#

Its limiting

#

This course limits my logic

west hedge
#

you're trying to show that E x F is empty if and only if E is empty or F is empty?

weary tiger
#

Yea

west hedge
#

ok

#

were you able to show one of the implications? or neither?

weary tiger
#

What do u mean?

west hedge
#

you need to prove (1) if E is empty or F is empty, then E x F is empty and (2) if E x F is empty, then E is empty or F is empty

#

are you stuck on a particular one of these, or both?

weary tiger
#

Theres two steps for these?

west hedge
#

well, the double arrow you wrote means P -> Q and Q -> P

weary tiger
#

This is the example of thr dr gave us in class

#

But the one i am trying to prove has an = in it which changes a few things

west hedge
#

let's just take it easy and prove one direction at a time
it looks like you started to prove that if E x F is empty, then E is empty or F is empty so let's prove this

#

do you have an idea of how to show this?

weary tiger
#

No

west hedge
#

ok, well I think it will be easier to think about if you consider the contrapositive

#

are you familiar with that?

weary tiger
#

The bar part?

west hedge
#

contrapositive as in, not Q -> not P instead of the equivalent statement P -> Q

weary tiger
#

Yea

west hedge
#

the contrapositive of if E x F is empty, then E is empty or F is empty is if E and F are both non-empty, then E x F is non-empty

#

do you agree?

weary tiger
#

Yes

west hedge
#

ok, and you know that these are equivalent right?

weary tiger
#

Ye

west hedge
#

ok good
the second one is easier to work with
can you try proving it?

weary tiger
#

So we dont add xy to prove it

#

Just like that?

#

The exercise is about cartesian product

#

I think maybe we need to use xy in it like the example

#

Or is it not necessary?

west hedge
#

yes, you should consider elements of the sets in question

#

you need to find one pair (x,y) in E x F

#

in order to show that E x F is non-empty

weary tiger
#

Let me try putting it in steps one sec

west hedge
#

if E and F are both non-empty, then E x F is non-empty

#

we are trying to prove this

weary tiger
#

oh

#

Like this?

#

oh behind the f should be y

#

so its x - y

#

i made it double x by mistake

west hedge
#

ok you used the assumption that E is non-empty and F is non-empty to find x in E and y in F
this is good

#

but I don't see you finding an element of E x F