last day (15 days later) » 

11:09 AM
Hi
 
 
1 hour later…
12:30 PM
Ho
 
How are you ?
 
Not bad.
 
12:48 PM
Good to hear.
 
And you?
 
Im ok, a bit tired from all the studies, but ok.
 
Tired is normal.
 
Hehe
Soon exams time
Maybe the last one for me ^^
Well it wont be the last one because im thinking of continuing to study
but last one in the degree
Familiar with socket programming?
 
Not at all.
 
12:57 PM
It seems nice. but a bit weird O_o
the thing with the "big eindian" and "small eindian"
why couldn't the network guys and the hardware guys agree on the same way of representing numbers ^^
 
The hardware guys couldn't.
 
What do you mean?
 
There used to be big-endian and little-endian hardware.
 
Ah , really? i read in the presentation that the difference is between the network and hardware
 
As far as desktop computers are concerned, I think nowadays little-endian is nearly universal, but some big-endian hardware still exists.
Anyway, since there used to be different hardware, doing it "just like the hardware does" for communication wasn't possible.
So one choice was made for the communication protocol, and at each end the software was responsible to convert to host order (if necessary).
So we have htonl and friends.
 
1:03 PM
lol, i think you can teach socket programming.
do you have a position at a university? like a professor?
 
No. It's a long time since I've seen a university from the inside.
 
That's amazing.
 
 
7 hours later…
7:42 PM
@DanielFischer can you help me out with a question?
 
Depends on the question.
 
^^
i dont think it does
 
$v_p(k)$ is defined to be $n \in \Bbb N \cup \{0\}$ s.t $p \ ^ {n}$ divides $k$ but $p \ ^ {n+1}$ doesnt
@DanielFischer i meant that there is no question you can't solve
 
There are plenty.
 
7:54 PM
only the open ones. and that's because you haven't took a look at them ;)
now i want to prove that if $v_2(a-b) = n$ then $v_2(a \ ^ {2} - b \ ^ {2}) = n+1$ . i showed that $2 \ ^{ n+1} $ divides $a \ ^{ 2} - b\ ^ {2}$ so $v_2(a\ ^ {2} - b \ ^ {2})\ge n+1$
 
That's not unconditionally true. Write $a^2 - b^2 = (a-b)(a+b)$, and think about what $v_2(a-b) = n$ implies about $v_2(a+b)$.
 
what do you mean? i need to prove it
wait i forgot to say $n\ge 2$
 
Ah ha!
 
:)
so i did showed that $2 \ ^{ n+1}$ divides this product
 
Yes, but without further assumptions, it can be that $v_p(a^2 - b^2) > n+1$.
 
8:01 PM
$a+b = a-b +2b$
@DanielFischer that's for the equality?
 
@Liad That's helpful for the whole problem of how $v_p(a-b)$ and $v_p(a^2 - b^2)$ are related.
 
this gives me that $2$ divides $a+b$
because a-b and 2b can be divided by 2
 
Yes. And under what conditions is it divisible by $4$, by $8$, …?
 
only if b does
 
Not quite. Since we're assuming $a \equiv b \pmod{4}$, $a+b$ is divisible by $4$ if $b$ is even. It can be divisible by higher powers of $2$ if - what?
 
8:11 PM
if a-b does and b does , doesnt it?
 
Consider $a = 14$ and $b = 2$.
 
you are asking about a+b right?
 
$b = a - l 2 \ ^{n}$
so $a+b = 2a - l 2 \ ^ {n}$
so the sum is divisible by higher powers of 2 if a does
right?
 
Both play a part in it.
 
8:21 PM
Proof by contradiction wont work?
i tried assuming $2 \ ^ {n+2}$ divides the product, couldn't continue..
 
And unless you impose a certain restriction to $a$ and $b$, $v_2(a+b)$ can be as large as you want when $v_2(a-b) = n \geqslant 2$.
 
well i got that $2$ divides $(a-2 \ ^ {n-1}l)l$
(if i assume $2 \ ^ {n+2} $ divides the product)
so that means that $2$ divides $l$ or 2 divides $a-2 \ ^{ n-1}l$
but $2$ cant divide $l$
because $v_2(a-b) = n$
 
You're thinking too complicated. Look at the example above, $a = 14, b = 2$, and see what happens there.
 
$v_2(a-b) = 2$
$v_2(a+b) =4$
 
$a + b = 16 = 2^4$
 
8:30 PM
^^
i can blame the beer i just drank
for that mistake
 
Now take for example $a = 252$ and $b = 4$.
 
$v_2(a+b) = 8$
$v_2(a-b) = 3$
 
Right. Do you see that you can have $v_2(a+b)$ arbitrarily large?
 
yes i can see that
 
Okay. So what can prevent that?
 
8:33 PM
Hmm
maybe to pick a,b that are close to each other?
 
Not really. $130$ and $126$ are as close together as can be for $v_2(a-b) = 2$.
Look at $a+b = (a-b) + 2b$. What do you know about $v_p(x+y)$ in terms of $v_p(x)$ and $v_p(y)$?
 
why would we want to prevent $v_2(a+b)$ to be large?
by p you mean 2 or arbitrary p?
 
@Liad Arbitrary $p$. Here we're interested in $p = 2$, but the principle is general.
@Liad Isn't the aim to have $v_2(a^2 - b^2) = v_2(a-b) + 1$ if $v_2(a-b) \geqslant 2$ - and some further condition?
 
its the aim (no further condition)
 
And $v_2(a^2 - b^2) = v_2(a-b) + v_2(a+b)$.
 
8:39 PM
the next question is to show it for arbirary $p $ and the condition is $v_p(a-b)\ge1$
 
@Liad Well, then you've seen counterexamples. Somebody forgot the additional condition needed.
 
@DanielFischer where is this come from? its not in the exercise
 
@Liad Generally, $v_p(x\cdot y) = v_p(x) + v_p(y)$.
(follows from unique factorisation)
 
so they forgot to say that $v_2(a+b) = 1$ !?
 
Well, indirectly. Stating it in that form would make the exercise rather pointless.
 
8:43 PM
didnt you say that without this condition this exercise is not true?
$a=14 , b=2$
$v_2(a-b) = 2$
$v_2(a \ ^ {2} - b \ ^ {2}) = v_2(192) = 6$
so they are wrong
 
Considering the next exercise - which also requires the analogous condition - is there maybe a general restriction that $a,b$ aren't divisible by $p$?
 
Ahhhhhhhhhhhhhhhh
i did not read that
yes there is that condition.... it was stated before the exercise
didnt read it :/
sorry..
 
Okay. So we have two odd numbers congruent modulo $4$. Deduce that their sum is not divisible by $4$.
 
yea now it works.
cant believe i missed that condition
shouldn't drink and do math ^^
 
Old saying, "Don't drink and derive".
 
8:52 PM
hehe nice
 
For general $p$, it's probably $v_p(a^p - b^p) = v_p(a-b) + 1$?
 
yes and this time $v_p(a-b) \ge 1$
$p \ne 2$
 
I suggest you don't do that by factoring $a^p - b^p = (a-b)(\dotsc)$, rather write $a = b + k\cdot p^n$ where $p \nmid k$, and use the binomial theorem.
 
the $b \ ^ {p} $ will cancel that's for sure
^^
i will work it out tomorrow. hopefully because i have this c++ exercise that i must start too
thanks again
Good night
 
Laila tovah
 
9:03 PM
tov
are you from israel?
 
No, never left Europe.
 
so how did you know i speak Hebrew ? O_o
your name is an israeli name btw :)
 
@Liad I didn't know, just an educated guess based on some language idiosyncrasies.
And it's a Hebrew name, but I haven't really spoken Yiddish since my zeyde died.
 
Yiddish is not Hebrew
zeyde is grandfather?
 
Yes. And of course it's not Hebrew, but it has a number of Hebrew words. For obvious reasons.
 
9:12 PM
Are you from Germany?
 
Yes, at least in part.
 
Poland?
 
and the Netherlands, France.
 
or what you mean by "in part"?
 
Where various of my ancestors came from.
 
9:15 PM
I meant if you living right now in Germany ^^
 
I do.
 
Cool
 
Well, France has much nicer mountains. And better cheese.
 
Are you close to France?
 
No :(
 
9:19 PM
I never been to France but from family/friends heard they got good taste of food
 
Yes, indeed.
 
And that they are not so nice
^^
 
That's not my experience. But I guess that depends on where you are.
And also on whether you speak French.
 
Yea i heard that they dont like to interact in English
They can act like they dont understand what you're saying
 
Yes, but if you mix in even a bit of French, showing that you try, their English becomes much better.
 
9:24 PM
lol
btw are you religion?
 
No, second to third generation atheist.
 
cool.
this tradition kept by your family? ^^
 
I wouldn't call it a tradition. It's just what is.
 
i have to go to sleep. see you tomorrow
 
'night
 

last day (15 days later) »