text stringlengths 1 2.12k | source dict |
|---|---|
For the problem at hand, we want $$f(10) = 18,272.$$
-
That's strange, f(2)=7. But as Mark Eichenlaub says, it should be 6. I think you made a mistake somewhere. – Lopsy Feb 13 '12 at 21:52
The roots should be $1\pm\sqrt3$, and $f(10)$ is considerably smaller; a hasty calculation made it $18272$. @Lopsy means that your formula for $f(n)$ gives $f(2)=7$. – Brian M. Scott Feb 13 '12 at 21:55
Right, but your final equation with the radicals gives 7. I think I figured out what happened: the roots of that quadratic are 1+sqrt(3) and 1-sqrt(3), not 2+sqrt(3) and 2-sqrt(3) as you claim. – Lopsy Feb 13 '12 at 21:56
Thanks for everyone's keen eyes. I believe I've caught all the errors now. – Austin Mohr Feb 13 '12 at 22:16
Now it’s good. I’d add just one comment: $10$ is a small enough number that in this case it’s easier just to use the recurrence than it is to find the general solution. – Brian M. Scott Feb 13 '12 at 22:18
Hint: use recursion.
You know that the first note in the Bauber bird's song is either $1$ or $2$ seconds long. In the first case, the remainder of the song is $9$ seconds long; in the second case, the remainder of the song is $8$ seconds long.
Therefore, the number of $10$-second songs equals twice (remember, the last note can be low or high) the number of $9$-second songs plus the number of $8$-second songs. Can you see how to solve the problem from here?
Also, note that it's generally a bad idea to encourage "looking for things to do with the numbers in the problem" like you said you did with your first try, $\binom{10}{2}*\binom{10}{2}$. Although formula-hunting does have its uses (esp. when doing dimensional analysis, where it's essential), if you're going to try to find a formula first, it's a good idea to check the answer for small cases (like $1$ second, $2$ seconds, etc) and then extrapolate off of that than trying to guess formulae blind.
-
Here is a non-recursive solution. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936068886642,
"lm_q1q2_score": 0.8651627103068998,
"lm_q2_score": 0.8791467643431001,
"openwebmath_perplexity": 442.31854803940143,
"openwebmath_score": 0.8497444987297058,
"tags": null,
"url": "http://math.stackexchange.com/questions/109032/singing-bird-problem?answertab=oldest"
} |
-
Here is a non-recursive solution.
Suppose there are $a$ 1s songs and $b$ 2s songs, so $a + 2b = 10$. The total number of songs is $10 - b$.
We can count the number of such songs by first ignoring pitch and counting the ways the 1s and 2s songs can be ordered, then multiplying by $2^{a+b}$.
There are $a+1$ gaps between the $a$ 1s songs, so we want to know how many ways $b$ 2s songs can fit into $a+1$ gaps. This is $\binom{a+b}{b} = \binom{10-b}{b}$, as shown by Akash Kumar in this answer.
So we want
$$\sum_{b=0}^{5} 2^{10 - b}\dbinom{10 - b}{b} = 18,272$$
-
But you can’t break the ten-second interval into $2$-second chunks, because a $2$-second note can overlap chunks. – Brian M. Scott Feb 13 '12 at 21:59
@BrianM.Scott Yes, you're right, thanks. Tried a new answer. – Mark Eichenlaub Feb 13 '12 at 23:04 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936068886642,
"lm_q1q2_score": 0.8651627103068998,
"lm_q2_score": 0.8791467643431001,
"openwebmath_perplexity": 442.31854803940143,
"openwebmath_score": 0.8497444987297058,
"tags": null,
"url": "http://math.stackexchange.com/questions/109032/singing-bird-problem?answertab=oldest"
} |
# Units and Nilpotents
If $ua = au$, where $u$ is a unit and $a$ is a nilpotent, show that $u+a$ is a unit.
I've been working on this problem for an hour that I tried to construct an element $x \in R$ such that $x(u+a) = 1 = (u+a)x$. After tried several elements and manipulated $ua = au$, I still couldn't find any clue. Can anybody give me a hint?
• Dear Shannon, Try the case $u = 1$ first. Regards, – Matt E Mar 14 '12 at 2:23
• See also here for the commutative case. – Gone Aug 6 '17 at 15:21
If $u=1$, then you could do it via the identity $$(1+a)(1-a+a^2-a^3+\cdots + (-1)^{n}a^n) = 1 + (-1)^{n}a^{n+1}$$ by selecting $n$ large enough.
If $uv=vu=1$, does $a$ commute with $v$? Is $va$ nilpotent?
• I had tried your way before I asked. But I used u+a instead of 1+a. I was stuck cause I couldnt conclude 1. Here, 1+a is a special case of u+a, do you have to prove u+a? – Shannon Mar 14 '12 at 2:51
• @Shannon: That's what my last paragraph is about. Multiply $u+a$ by $v$; then you get $1+(va)$... is $va$ nilpotent? – Arturo Magidin Mar 14 '12 at 2:56
• oh, I see. I will work on it. Thank you so much. – Shannon Mar 14 '12 at 3:10
• This identity can be heuristically arrived at, and the whole problem approached directly, by using the infinite series expansion of $1/(1-x)$ with, to start, $x = -a$. Since $a$ is nilpotent, the series reduces to a perfectly acceptable polynomial. Rewriting $1/(u+a)$ into the above form is a simple exercise in high school algebra but leads to the the need to verify the (easy) questions Arturo raises. – Derek Elkins left SE Jan 21 '16 at 4:01
Let $v$ be the inverse of $u$, and suppose $a^2=0$. Note that $$(u+a)\cdot v(1-va)=(1+va)(1-va)=1-v^2a^2=1-0=1.$$ See if you can generalize this.
• The way you constructed the element is wonderful. I've never thought about this way. Can I ask where did this idea come from? – Shannon Mar 14 '12 at 2:55 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363725435202,
"lm_q1q2_score": 0.8651362729434258,
"lm_q2_score": 0.8774767794716264,
"openwebmath_perplexity": 116.75499703387,
"openwebmath_score": 0.9653903841972351,
"tags": null,
"url": "https://math.stackexchange.com/questions/119904/units-and-nilpotents"
} |
Here's a rather different argument. First, suppose that $R$ is commutative. Suppose $u+a$ is not a unit. Then it is contained in some maximal ideal $M\subset R$. Since $a$ is nilpotent, $a\in M$ (since $R/M$ is a field, and any nilpotent element of a field is $0$). Thus $u=(u+a)-a\in M$ as well. But $u$ is a unit, so it can't be in any maximal ideal, and this is a contradiction.
If you don't know that $R$ is commutative, let $S\subseteq R$ be the subring generated by $a$, $u$, and $u^{-1}$. Then $S$ is commutative: the only thing that isn't immediate is that $u^{-1}$ commutes with $a$, and this this can be proven as follows: $$u^{-1}a=u^{-1}auu^{-1}=u^{-1}uau^{-1}=au^{-1}.$$
The argument of the first paragraph now shows that $u+a$ is a unit in $S$, and hence also in $R$.
This argument may seem horribly nonconstructive, due to the use of a maximal ideal (and hence the axiom of choice) and proof by contradiction. However, it can be made to be constructive and gives an explicit inverse for $u+a$ in terms of an inverse for $u$ and and an $n$ such that $a^n=0$.
First, we observe that all that is actually required of the ideal $M$ is that it is a proper ideal which contains $u+a$ and all nilpotent elements of $R$. So we may replace $M$ with the ideal $(u+a)+N$ where $N$ is the nilradical of $R$, and use the fact that if $I=(u+a)$ is a proper ideal in a commutative ring then $I+N$ is still a proper ideal. This is because $R/(I+N)$ is the quotient of $R/I$ by the image of $N$, which is contained in the nilradical of $R/I$. If $I$ is a proper ideal, then $R/I$ is a nonzero ring, so its nilradical is a proper ideal, so $R/(I+N)$ is a nonzero ring and $I+N$ is a proper ideal. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363725435202,
"lm_q1q2_score": 0.8651362729434258,
"lm_q2_score": 0.8774767794716264,
"openwebmath_perplexity": 116.75499703387,
"openwebmath_score": 0.9653903841972351,
"tags": null,
"url": "https://math.stackexchange.com/questions/119904/units-and-nilpotents"
} |
Next, we recast this argument as a direct proof instead of a proof by contradiction. Letting $I=(u+a)$, we observe that $I+N$ is not a proper ideal since $u=(u+a)-a\in I+N$ and $u$ is a unit. That is, a nilpotent element (namely $a$) is a unit in the ring $R/I$, which means $R/I$ is the zero ring, which means $I=R$, which means $u+a$ is a unit.
Finally, we chase through the explicit equations witnessing the statements above. Letting $v=u^{-1}$, we know that $v((u+a)-a)=1$ so $$-va=1-v(u+a),$$ witnessing that $a$ is a unit mod $u+a$ (with inverse $-v$). But $a$ is nilpotent, so $a^n=0$ for some $n$, and thus $0$ is also a unit mod $u+a$. We see this explicitly by raising our previous equation to the $n$th power: $$0=(-v)^na^n=(1-v(u+a))^n=1-nv(u+a)+\binom{n}{2}v^2(u+a)^2+\dots+(-v)^n(u+a)^n,$$ where every term after the first on the right-hand side is divisible by $u+a$. Factoring out this $u+a$, we find that $$1=(u+a)\left(nv-\binom{n}{2}v^2(u+a)+\dots-(-v)^n(u+a)^{n-1}\right)$$ and so $$-\sum_{k=1}^n \binom{n}{k}(-v)^k(u+a)^{k-1}= nv-\binom{n}{2}v^2(u+a)+\dots-(-v)^n(u+a)^{n-1}$$ is an inverse of $u+a$.
The fact that this complicated formula is hidden in the one-paragraph conceptual argument given at the start of this answer is a nice example of how powerful and convenient the abstract machinery of ring theory can be.
Note that since $$u$$ is a unit and
$$ua = au, \tag 1$$
we may write
$$a = u^{-1}au, \tag 2$$
and thus
$$au^{-1} = u^{-1}a; \tag 3$$
also, since $$a$$ is nilpotent there is some $$0 < n \in \Bbb N$$ such that
$$a^n = 0, \tag 4$$
and thus
$$(u^{-1}a)^n = (au^{-1})^n = a^n (u^{-1})^n = (0) (u^{-1})^n = 0; \tag 5$$
we observe that
$$u + a = u(1 + u^{-1}a), \tag 6$$
and that, by virtue of (5), | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363725435202,
"lm_q1q2_score": 0.8651362729434258,
"lm_q2_score": 0.8774767794716264,
"openwebmath_perplexity": 116.75499703387,
"openwebmath_score": 0.9653903841972351,
"tags": null,
"url": "https://math.stackexchange.com/questions/119904/units-and-nilpotents"
} |
we observe that
$$u + a = u(1 + u^{-1}a), \tag 6$$
and that, by virtue of (5),
$$(1 + u^{-1}a) \displaystyle \sum_0^{n - 1} (-u^{-1}a)^k = \sum_0^{n - 1} (-u^{-1}a)^k + u^{-1}a\sum_0^{n - 1} (-u^{-1}a)^k$$ $$= \displaystyle \sum_0^{n - 1} (-1)^k(u^{-1}a)^k + \sum_0^{n - 1} (-1)^k(u^{-1}a)^{k + 1}$$ $$= 1 + \displaystyle \sum_1^{n - 1} (-1)^k (u^{-1}a)^k + \sum_0^{n - 2} (-1)^k(u^{-1}a)^{k + 1} + (-1)^{n - 1}(-u^{-1}a)^n$$ $$= 1 + \displaystyle \sum_1^{n - 1} (-1)^k (u^{-1}a)^k + \sum_1^{n - 1} (-1)^{k - 1}(u^{-1}a)^k = 1 + \displaystyle \sum_1^{n - 1} ((-1)^k + (-1)^{k - 1})(u^{-1}a)^k = 1; \tag 7$$
this shows that
$$(1 + u^{-1}a)^{-1} = \displaystyle \sum_0^{n - 1} (-u^{-1}a)^k, \tag 8$$
and we have demonstrated an explicit inverse for $$1 + u^{-1}a$$. Thus, by (6),
$$(u + a)^{-1} = (u(1 + u^{-1}a))^{-1} = (1 + u^{-1}a)^{-1} u^{-1}, \tag 9$$
that is, $$u + a$$ is a unit.
Nota Bene: The result proved above has an application to this question, which asks to show that $$I - T$$ is invertible for any nilpotent linear operator $$T$$. Taking $$T = a$$ and $$I = u$$ in the above immediately yields the existence of $$(I - T)^{-1}$$. End of Note. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363725435202,
"lm_q1q2_score": 0.8651362729434258,
"lm_q2_score": 0.8774767794716264,
"openwebmath_perplexity": 116.75499703387,
"openwebmath_score": 0.9653903841972351,
"tags": null,
"url": "https://math.stackexchange.com/questions/119904/units-and-nilpotents"
} |
# Three tosses of the same coin: Conditional probability that the coin picked is unfair
There are two coins: one fair and one unfair. P(head | fair)=½ and P(head | unfair)=⅓ These two coins look identical.
You picked up a coin from these two, throw it 3 times and observed 1 head.
What is the probability that the coin you picked is the unfair coin?
The part that is throwing me off is three tosses with one resulting in a head. Below I calculated if a heads is observed, what would be the probability that it's an Unfair coin. But if I consider three tosses, I consider three possibilities that outcome space could be {HTT, THT,TTH} and to me, all three possibilities seem to require the same calculation, so using a tree, I calculated P(U|HTT) = P(U∩H∩T∩T)/P(H∩T∩T) as
Am I making a mistake in calculating below part? The result makes me feel weird for some reason and if I consider the three outcome possibilities in numerator and denominator, they cancel out so final result should be same as below but that implies that number of tosses has no affect - this is the part that is throwing me off so need help with 1) Verify the calculation 2) Does number of tosses have an effect? or is there another way to interpret repeated tosses without replacement?
I looked at this post that is very close to my question but the first and second tosses have a pre-defined outcome. Thanks again for your help.
P(U)P(H|U)P(T|U)P(T|U)/(P(U∩H∩T∩T)+P(F∩H∩T∩T))
P(U|HTT) = 1/2 * 1/3 * 2/3 * 2/3 /(1/2*1/3*2/3*2/3 + 1/2*1/2*1/2*1/2)
= 4/27 / (4/27 + 1/8)
= 32/59
This comes out to
Here is the simple one toss calculation:
P(F) = probability the coin is fair
P(U) = probability the coin is UNfair
P(H|F) = 1/2
P(H|U) = 1/3
To calculate Probability the coin is Unfair given a heads is observed, I can use bayes theorum as:
P(U|H) = P(U)*P(H|U)/ (P(U)*P(H|U) + P(F)*P(H|F)
= 1/2 * 1/3 / (1/2*1/3 + 1/2*1/2)
= 4/10
= 2/5
## Update: | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363700641143,
"lm_q1q2_score": 0.8651362660292674,
"lm_q2_score": 0.8774767746654976,
"openwebmath_perplexity": 322.5235814665366,
"openwebmath_score": 0.9114393591880798,
"tags": null,
"url": "https://math.stackexchange.com/questions/3509665/three-tosses-of-the-same-coin-conditional-probability-that-the-coin-picked-is-u"
} |
## Update:
I realized the mistake I was making in assuming that number of tosses doesn't matter. It's the order that doesn't matter in the calculation, not the number of tosses - even if there were 2 or 4 or any number of tosses with one Heads, there would be 2 or 4 or n possible combinations respectively, so counting them in numerator or denominator cancels out, so order doesn't matter. However, number of tosses do matter, if there were 4 tosses, the P(HTTT|U) would have additional factor of 2/3 to indicate additional Tails, so the numerator as well as denominator would change.
The part I am still not able to think intuitively about is how to explain that order doesn't matter. Algebraically, it cancels out from Num and Denom but can't think of an intuition behind it. Thanks for the long read.
P(H|U) = 1/3
P(H|F) = 1/2
Let A be the event where we observe 3 tosses with one head
P(U|A) = P(A,U) = p(U) * P(A|U)
-------- ---------------
P(A) P(A)
= 1/2 *[P(HTT|U)+P(THT|U)+P(TTH|U)]
------------------------------------
P(A, U) + P(A, F)
= 1/2 * [(1/3*2/3*2/3)*3]
------------------------------------
[1/2*(1/3*2/3*2/3)*3] + [1/2*(1/2*1/2*1/2)*3]
= 4/27
------------
(4/27 + 1/8)
= 4/27
-----------------
(32 + 27)/(27*8)
= 32
--
59 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363700641143,
"lm_q1q2_score": 0.8651362660292674,
"lm_q2_score": 0.8774767746654976,
"openwebmath_perplexity": 322.5235814665366,
"openwebmath_score": 0.9114393591880798,
"tags": null,
"url": "https://math.stackexchange.com/questions/3509665/three-tosses-of-the-same-coin-conditional-probability-that-the-coin-picked-is-u"
} |
= 4/27
------------
(4/27 + 1/8)
= 4/27
-----------------
(32 + 27)/(27*8)
= 32
--
59
Let's define a few random variables. Let $$U \sim \operatorname{Bernoulli}(\pi = 1/2)$$ represent the prior probability of selecting the unfair coin, where $$U = 1$$ means the coin is unfair, and $$U = 0$$ means the coin is fair. So $$\Pr[U = 1] = \Pr[U = 0] = 1/2$$. Next, define $$X \mid U \sim \operatorname{Binomial}(n = 3, p),$$ representing the number of heads obtained in three coin tosses. The probability of heads $$p$$ is a function of $$U$$: if $$U = 0$$, then $$p = 1/2$$, whereas if $$U = 1$$, then $$p = 1/3$$. So we can write this as $$p = \frac{1}{2} - \frac{1}{6}U = \frac{3-U}{6}.$$ Therefore, $$\Pr[X = 1 \mid U = u] = \binom{3}{1} \left( \frac{3-u}{6} \right)^1 \left( 1 - \frac{3-u}{6} \right)^2 = \frac{(3-u)(3+u)^2}{72},$$ and in particular, $$\Pr[X = 1 \mid U = 1] = \frac{4}{9}, \\ \Pr[X = 1 \mid U = 0] = \frac{3}{8}.$$ It follows from the law of total probability, $$\Pr[X = 1] = \Pr[X = 1 \mid U = 0]\Pr[U = 0] + \Pr[X = 1 \mid U = 1]\Pr[U = 1] = \frac{4}{9}\cdot \frac{1}{2} + \frac{3}{8} \cdot \frac{1}{2} = \frac{59}{144}.$$ Therefore, $$\Pr[U = 1 \mid X = 1] = \frac{\Pr[X = 1 \mid U = 1] \Pr[U = 1]}{\Pr[X = 1]} = \frac{2/9}{59/144} = \frac{32}{59}.$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363700641143,
"lm_q1q2_score": 0.8651362660292674,
"lm_q2_score": 0.8774767746654976,
"openwebmath_perplexity": 322.5235814665366,
"openwebmath_score": 0.9114393591880798,
"tags": null,
"url": "https://math.stackexchange.com/questions/3509665/three-tosses-of-the-same-coin-conditional-probability-that-the-coin-picked-is-u"
} |
# Perfect powers of successive naturals: Can you always reach a constant difference?
I was thinking about what happens if you take a sequence of consecutive squares, for example 1,4,9, 16. Taking the differences gives you another sequence, 7,5,3. And taking the differences between those numbers, you get 2,2--a constant. Through elementary first-semester algebra, you can easily verify that this works no matter where you start your series of squares. If you use 9801, 10000, 10201, you will get the same result--after the second round of subtraction, you'll end up with a final constant difference of 2. The same thing works for cubes with the final constant difference being 6, although an additional round of subtraction is needed, in turn requiring one more number in the original sequence. Similarly as with the squares, it's not difficult to show that it will work for any sequence of natural number cubes.
My question is this: Is there a more general principle at work here? Suppose I take a series of sequential naturals n, n+1, n+2, n+3,... , and raise them to any given positive integral power p. Can it then be shown that if I take the differences repeatedly, proceeding as above, that I will eventually reach a constant difference? And if so, does this principle have anything to do with "difference engine" computing? | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9937100978631076,
"lm_q1q2_score": 0.8651212951212555,
"lm_q2_score": 0.8705972667296309,
"openwebmath_perplexity": 131.55281187296083,
"openwebmath_score": 0.8983572125434875,
"tags": null,
"url": "https://math.stackexchange.com/questions/1345205/perfect-powers-of-successive-naturals-can-you-always-reach-a-constant-differenc"
} |
• Side note: The eventual constant difference is $p!$, where $p$ is the power. Jun 30 '15 at 23:40
• You should take a look at Faulhaber's formula. (Note that taking differences of the numbers $$S_p(n),\;\;S_p(n+1),\;\;\ldots,\;\;S_p(n+k),\;\;\ldots$$ produces the sequence $$n^p,\;\;(n+1)^p,\;\;\ldots,\;\;(n+k)^p,\;\;\ldots$$ and then you can continue taking differences from there.) Jun 30 '15 at 23:41
• Thanks for the answers and comments so far. And yes, a proof will definitely be in the works...not because the world needs it, but because I need to see it work for myself, as I did for the special cases ^2 and ^3. I do wish that when I was in school they had emphasized proofs instead of what seemed to me, at the time, merely a random grab-bag of disconnected rules and tricks. Jun 30 '15 at 23:46
Yes.
The first difference of a polynomial of degree $d$ is a polynomial of degree $d-1$.
By induction, the $m$-th difference of a polynomial of degree $d$, when $m \le d$, is a polynomial of degree $d-m$.
Setting $m = d$, the $d-th$ difference of a polynomial of degree $d$ is a constant, which is exactly what you discovered.
You next step is a proof.
If you start with the sequence of $n$-th powers, the $n$-th differences will all be $n!$.
For a function $f$ defined on the integers define $(\Delta f)(x)=f(x+1)-f(x)$. $\Delta$ is a linear operator on such functions: you can easily check that $\Delta\big(af(x)+bg(x)\big)=a\Delta f(x)+b\Delta g(x)$ for any such functions $f$ and $g$ and constants $a$ and $b$.
Now suppose that $\Delta^k(x^k)$ is the constant function $k!$ for each $k<n$. For any constant function $f$ the difference function $\Delta f$ is identically $0$, so $\Delta\big((\Delta^k(x^k)\big)=\Delta(k!)=0$ for each $k<n$, and it follows that $\Delta^m(x^k)=0$ whenever $k<n$ and $m>k$. In particular, $\Delta^{n-1}(x^k)=0$ for $k<n-1$. Thus, | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9937100978631076,
"lm_q1q2_score": 0.8651212951212555,
"lm_q2_score": 0.8705972667296309,
"openwebmath_perplexity": 131.55281187296083,
"openwebmath_score": 0.8983572125434875,
"tags": null,
"url": "https://math.stackexchange.com/questions/1345205/perfect-powers-of-successive-naturals-can-you-always-reach-a-constant-differenc"
} |
\begin{align*} \Delta^n(x^n)&=\Delta^{n-1}\big((x+1)^n-x^n\big)\\ &=\Delta^{n-1}\left(\sum_{k=0}^n\binom{n}kx^k-x^n\right)\\ &=\Delta^{n-1}\left(\sum_{k=0}^{n-1}\binom{n}kx^k\right)\\ &=\sum_{k=0}^{n-1}\binom{n}k\Delta^{n-1}(x^k)\\ &=\binom{n}{n-1}\Delta^{n-1}(x^{n-1})\\ &=n(n-1)!\\ &=n!\;, \end{align*}
and by induction $\Delta^n(x^n)=n!$ for all $n$. (You can easily check the basis step of the induction.)
These so-called forward differences are a special case of divided differences, after which Babbage’s Difference Engine was named.
Using the Binomial Theorem, we get $$(n+1)^k-n^k=\sum_{j=0}^{k-1}\binom{k}{j}n^j$$ So the difference of two consecutive $k^\text{th}$ powers is a $k-1$ degree polynomial with lead coefficient $\binom{k}{k-1}=k$. Thus, the difference of a degree $k$ polynomial with lead coefficient $c_k$ is a degree $k-1$ polynomial with a lead coefficient of $kc_k$.
Repeating this, we get that the $k^\text{th}$ repeated difference of $k^\text{th}$ powers (a degree $k$ polynomial with lead coefficient $1$) will be $k!$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9937100978631076,
"lm_q1q2_score": 0.8651212951212555,
"lm_q2_score": 0.8705972667296309,
"openwebmath_perplexity": 131.55281187296083,
"openwebmath_score": 0.8983572125434875,
"tags": null,
"url": "https://math.stackexchange.com/questions/1345205/perfect-powers-of-successive-naturals-can-you-always-reach-a-constant-differenc"
} |
# Does the set of differences of a Lebesgue measurable set contains elements of at most a certain length?
I want to show that if $E\subset \mathbb{R}^n$ is a Lebesgue measurable set where $\lambda(E)>0$, then $E-E=\{x-y:x,y\in E\}\supseteq\{z\in\mathbb{R}^n:|z|<\delta\}$ for some $\delta>0$, where $|z|=\sqrt{\sum_{i=1}^n z_i^2}$.
My approach is this. Take some $J$, a box in $\mathbb{R}^n$ with equal side lengths such that $\lambda(E\cap J)>3\lambda(J)/4$. Setting $\epsilon=3\lambda(J)/2$, take $x\in\mathbb{R}^n$ such that $|x|\leq\epsilon$. Then $E\cap J\subseteq J$ and $$((E\cap J)+x)\cup(E\cap J)\subseteq J\cup(J+x).$$
Since Lebesgue measure is translation invariant, it follows that $\lambda((E\cap J)+x)=\lambda(E\cap J)$, and so $((E\cap J)+x)\cap(E\cap J)\neq\emptyset$.
If it were empty, then $$2\lambda(E\cap J)=\lambda(((E\cap J)+x)\cup(E\cap J))\leq\lambda(J\cup(J+x))\leq 3\lambda(J)/2,$$ thus $\lambda(E\cap J)\leq 3\lambda(J)/4$, a contradiction.
Then $((E\cap J)+x)\cap (E\cap J)\neq\emptyset$, and so $x\in (E\cap J)-(E\cap J)\subseteq E-E$. Thus $E-E$ contains the box of $x$ such that $|x|\leq \epsilon$.
Is this valid? If not, can it be fixed? Many thanks. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587274108369,
"lm_q1q2_score": 0.8650662555613077,
"lm_q2_score": 0.8757870029950159,
"openwebmath_perplexity": 63.33100189666011,
"openwebmath_score": 0.9769882559776306,
"tags": null,
"url": "http://math.stackexchange.com/questions/84491/does-the-set-of-differences-of-a-lebesgue-measurable-set-contains-elements-of-at/104126"
} |
Is this valid? If not, can it be fixed? Many thanks.
-
I am suspicious about your first hypothesis : How can you take a box such that $\lambda(E \cap J) > 3 \lambda(J)/4$? I must say though, this is a very interesting question. – Patrick Da Silva Nov 22 '11 at 7:13
– gary Nov 22 '11 at 7:21
@PatrickDaSilva: $E$ has a subset $E'$ with positive and finite measure. There is an open set $U$ such that $E'\subseteq U$ and $\lambda(U)<\frac{4}{3}\lambda(E')$. Since $U$ is a countable union of nonoverlapping boxes, $U=\cup_k B_k$, it follows that $\sum_k\lambda(E'\cap B_k)>\sum_k\frac{3}{4}\lambda(B_k)$. Hence there exists $k$ such that $\lambda(E'\cap B_k)>\frac{3}{4}\lambda(B_k)$, and you can take $J=B_k$. – Jonas Meyer Nov 22 '11 at 7:25
You may want to have a look at this thread and also at this one as well as the links therein. – t.b. Nov 22 '11 at 8:09
I think this can be fixed if either OP justifies why this inequality holds, or just by taking a smaller epsilon. It might depend on $n$ though, but it seems to be just geometry at this point. I now accept that "this argument holds by the handwaving theorem". =P – Patrick Da Silva Jan 31 '12 at 5:07
This is answered here, I will just post another approach that can be useful.
Lemma. If $K$ is a compact subset of $\mathbb{R}^n$ with positive measure, then the set $$D:=\{x-y:x,y\in K\}$$ contains an open ball centered at the origin. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587274108369,
"lm_q1q2_score": 0.8650662555613077,
"lm_q2_score": 0.8757870029950159,
"openwebmath_perplexity": 63.33100189666011,
"openwebmath_score": 0.9769882559776306,
"tags": null,
"url": "http://math.stackexchange.com/questions/84491/does-the-set-of-differences-of-a-lebesgue-measurable-set-contains-elements-of-at/104126"
} |
Proof. Since $0\lt \lambda(K)\lt\infty$, there exist an open set $G$ in $\mathbb{R}^n$ such that $$K\subset G\text{ and } \lambda (G)\lt 2\lambda(K)$$ and as its complement $G^c:=\mathbb{R}^n\setminus G$ is closed and $K$ is compact, we have $$\delta:=d(K,G^c)\gt 0.$$ We claim that if $x\in\mathbb{R}^n$ with $||x||\lt\delta$ then $K+x\subseteq G$. If not, there exist a $y\in K$ s.t. $y+x\not\in G$ and then $$\delta=d(K,G^c)\leq ||y-(x+y)||=||x||,$$ which is an absurd if we assume that $||x||\lt\delta$ to begin with. Now $K+x\subseteq G$ and $K\subseteq G$, thus $(K+x)\cup K\subseteq G$. If $(K+x)\cap K=\emptyset$, then $$\lambda(G)\geq \lambda((K+x)\cup K)=\lambda(K+x)+\lambda(K)=2\lambda(K)$$ which contradicts the choice of $G$. So, for all $x\in B(0,\delta)$ we have $(K+x)\cap K\neq\emptyset$, therefore $B(0,\delta)\subset D$. QED
Theorem. Let $E\subseteq\mathbb{R}^d$. If if $E$ is measurable and $\lambda(E)\gt 0$ then the set $$E-E:=\{x-y:x,y\in E\}$$ contains an open ball centered at the origin.
Proof. Since $\mathbb{R}^d=\bigcup_{n\in\mathbb N}B(0,n)$ we have $$E=E\cap\mathbb{R}^d=\bigcup_{n\in\mathbb N}E\cap B(0,n),$$ then $$0\lt\lambda(E)\leq \sum_{n\in\mathbb{N}} \lambda(E\cap B(0,n))$$ and then, there exist a $n\in\mathbb{N}$ such that $\lambda(E\cap B(0,n))\gt 0$. Let $F=E\cap B(0,n)$. Thus $F\subseteq E$ is bounded and measurable, therefore there exist a closed set $K\subseteq F$ such that $$0\lt \frac{\lambda(F)}{2}\lt \lambda(K).$$ Notice that $K$ is closed and bounded, that means it is a compact set with positive measure. By the Lemma the set $K-K$ contains an open ball centered at the origin say $B$. Then $$B\subset K-K\subseteq E-E$$ as we wanted.
Note. The idea of proceed in this way is taken from Robert Bartle, I don't remember right now the book where this come from.
- | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587274108369,
"lm_q1q2_score": 0.8650662555613077,
"lm_q2_score": 0.8757870029950159,
"openwebmath_perplexity": 63.33100189666011,
"openwebmath_score": 0.9769882559776306,
"tags": null,
"url": "http://math.stackexchange.com/questions/84491/does-the-set-of-differences-of-a-lebesgue-measurable-set-contains-elements-of-at/104126"
} |
# Minimum values of the sequence $\{n\sqrt{2}\}$
I have been studying the sequence $$\{n\sqrt{2}\}$$ where $\{x\}:= x-\lfloor x\rfloor$ is the "fractional part" function. I am particularly interested in the values of $n$ for which $\{n\sqrt{2}\}$ has an extremely small value - that is, when $n\sqrt 2$ is extremely close to (but greater than) its nearest integer. Of course, for integer $n$, this always takes on values between (but never including) $0$ and $1$.
I have defined the sequence $M_n$ as follows:
• $M_1=1$
• $M_{n+1}$ is the smallest positive integer such that $\{M_{n+1}\sqrt 2\}\lt \{M_n\sqrt 2\}$
The first few terms of this sequence are $$1,3,5,17,29,99,169,...$$ And after a quick trip to the OEIS, I have found that this sequence is equal to OEIS entry A079496, as written in the comments. It also provides the recurrence $$a_0=a_1=1$$ $$a_{2n+1}=2a_{2n}-a_{2n-1}$$ $$a_{2n}=4a_{2n-1}-a_{2n-2}$$ How can I prove that the sequence $M_n$ satisfies this recurrence, using the definition I wrote for $M_n$?
Thanks!
EDIT: Here is the closed-form explicit formula for $a_n$, for anyone who wants to know: $$a_{2n}=\frac{(3+2\sqrt 2)^n+(3-2\sqrt 2)^n}{2}$$ $$a_{2n+1}=\frac{(1+\sqrt 2)(3+2\sqrt 2)^n-(1-\sqrt 2)(3-2\sqrt 2)^n}{2\sqrt 2}$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
• Have you taken a look to the references on the link you shared? I mean, the comment of Paul. D Hanna there says that this is exactly what you're looking for... – Alejandro Nasif Salum Dec 15 '17 at 23:54
• I mean... you want to know if this recurrence is valid for your sequence or you are sure of it and you are just trying to prove it? – Alejandro Nasif Salum Dec 15 '17 at 23:55
• Yeah, that confuses me as well. I'll add the closed form to the question, for anyone who is curious. – Franklin Pezzuti Dyer Dec 16 '17 at 0:02
• According to Kroneckers Approximation Theorem $\{n\sqrt{2}\}$ is dense in $[0,1]$. – rtybase Dec 16 '17 at 0:39
• This can be seen as two interleaved sequences with the recursion $q_n=6q_{n-1}-q_{n-2}$ – robjohn Dec 17 '17 at 1:30
Summary of solution : the originality of your question consists in its use of the floor function to round, when most of the classical results on continued fractions use the nearest integer function. The idea is to reduce the former to the latter.
Details : Let $M_n,a_n$ be as in the OP. Our goal is to show that
$$M_n=a_n \tag{1}$$
As a convenience, let us use the "normalized" number $\alpha=\sqrt{2}-1$ (which is in the unit interval) rather than $\sqrt{2}$ itself.
It will suffice to show :
$$\lbrace q\alpha \rbrace \geq \lbrace a_n\alpha \rbrace \textrm{ for } 0 \lt q \lt a_{n+1} \tag{2}$$
We will use a sequence closely related to the continued fraction expansion of $\alpha$, namely $g_n=\frac{(1+\sqrt{2})^n-(1-\sqrt{2})^n}{2\sqrt{2}}$. Note that $(g_n)$ satisfies $g_0=0,g_1=1$ and $g_{n+2}-2g_{n+1}+g_n=0$, so its values (after $g_1$) are positive integers. The following properties are easy to show by a direct computation or by induction :
$(i)$ $g_ng_{n+2}-g_{n+1}^2=(-1)^{n+1}$
$(ii)$ $a_n=g_n$ when $n$ is odd
$(iii)$ $a_n=g_{n+1}-g_n$ when $n$ is even
$(iv)$ $\frac{g_n-g_{n+1}\alpha}{g_{n+1}-g_{n+2}\alpha}=1-\sqrt{2}$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
$(iv)$ $\frac{g_n-g_{n+1}\alpha}{g_{n+1}-g_{n+2}\alpha}=1-\sqrt{2}$
$(v)$ $\frac{a_{n+2}\alpha -(g_{n+2}-g_{n+1})}{a_n\alpha -(g_n-g_{n-1})}=3-2\sqrt{2}$, when $n$ is even.
The following lemma is a very classic continued fraction inequality :
LEMMA. Let $p,q$ be integers with $0 \lt q \lt g_{n+2}$. Then $|p-q\alpha| \geq |g_n-g_{n+1}\alpha|$. Further, if $(p,q)\neq (g_n,g_{n+1})$, the inequality can be strenghtened to $|p-q\alpha| \geq |g_n-g_{n+1}\alpha|+|g_{n+1}-g_{n+2}\alpha|$.
Proof of lemma. By (i), the matrix $\left(\begin{matrix} g_n & g_{n+1} \\ g_{n+1} & g_{n+2} \end{matrix}\right)$ is unimodular. It follows that there are integers $u,v$ such that $p=g_n u+g_{n+1}v$ and $q=g_{n+1}u+g_{n+2}v$. I claim that $uv\leq 0$ ; otherwise, $g_{n+1}u$ and $g_{n+2}v$ would both be nonzero and have the same sign, forcing $|q| = |g_{n+1}u|+|g_{n+2}v| \geq |g_{n+2}|$ which is impossible. So $uv\leq 0$, and also
$$p-q\alpha= u(g_n-g_{n+1}\alpha) + v (g_{n+1}-g_{n+2}\alpha) \tag{3}$$
The numbers $u(g_n-g_{n+1}\alpha)$ and $v(g_{n+1}-g_{n+2}\alpha)$ have the same sign, so
$$|p-q\alpha|= |u(g_n-g_{n+1}\alpha)| + |v (g_{n+1}-g_{n+2}\alpha)| \tag{4}$$
Note that $u\neq 0$ because of $q=g_{n+1}u+g_{n+2}v$ and $|q|<g_{n+2}$. So $|u|\geq 1$ and the first inequality follows. If equality holds, we must have $|u|=1$ and $v=0$, from which we easily deduce $(p,q)=(g_n,g_{n+1})$. Suppose now that $(p,q)\neq (g_n,g_{n+1})$. If $|u|\geq 2$, then from (4) we deduce $|p-q\alpha| \geq 2|g_n-g_{n+1}\alpha|$. By (iv), the second inequality holds in this case.
Otherwise $u=1$ and from the reasoning above we have $v\neq 0$, so $|v|\geq 1$ and from (4) again we deduce $|p-q\alpha| \geq |g_n-g_{n+1}\alpha|+|g_{n+1}-g_{n+2}\alpha|$, which finishes the proof of the lemma. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
Let us now deduce (2) from the lemma. Suppose first that $n$ is odd. By $(ii)$, $\lbrace a_n\alpha \rbrace=\lbrace g_n\alpha \rbrace=g_{n+1}\alpha-g_n$ by lemma, (iv) and the fact that $g_{n+1}\alpha-g_n >0$. The lemma also shows that $\lbrace q \alpha \rbrace \geq \lbrace a_n \alpha \rbrace$ for $0 \lt q \lt g_{n+2}=a_{n+2}$, as wished.
Suppose now that $n$ is even. Using the lemma with $n-1$ in place of $n$, we have that for any $0 \lt q \lt g_{n+1}=a_{n+1}$ and $(p,q)\neq (g_{n-1},g_n)$, then $$\begin{array}{lcl} |p-q\alpha| &\geq& |g_{n-1}-g_{n}\alpha|+|g_{n}-g_{n+1}\alpha| \\ &=& g_{n-1}-g_{n}\alpha+g_{n+1}\alpha-g_n \\ &=& a_n\alpha -(g_n-g_{n-1}) \\ &=& \lbrace a_n \alpha \rbrace \textrm{ by } (v) \end{array}$$
This finishes the proof.
This is about Pell type equations. Absolutely complete detail would be a bit long. I have posted many times about solving $x^2 - n y^2 = T,$ where $T$ is some target number, and $n$ is positive not a square.
Your sequence is this: given positive integer $x,$ let $v = \lfloor x \sqrt 2 \rfloor.$ Your numbers will be $$2 x^2 - v^2 \in \{ 1,2 \}.$$
Furthermore, the ratios of consecutive terms are bounded: if $w$ is a number with worse $2 w^2 - w_0^2,$ where $w_0 = \lfloor w \sqrt 2 \rfloor,$ then there is one of your numbers $t$ with $t > w/(2 + \sqrt 2).$
Alright, the positive values of $2x^2 - y^2$ are $1,2,4,7,8,9, 14 \ldots$ where we are allowing common factors of $x,y.$
If $2x^2 - v^2 = 4,$ then both $x,v$ are even, we can take $t = x/2,$ and the fractional part of $t \sqrt 2$ is half the fractional part of $x \sqrt 2,$ meaning $x$ cannot be part of your $M$ sequence. Now that I think of it, the same applies to any number divisible by $4$ or by $9.$ As a result, if we calculated $2x^2 - v^2 = 7$ as a special case (we know how to find all representations) we could then continue with $2 x^2 - v^2 \geq 14.$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
It appears we need just the one special case. After this, we may take $$2 x^2 - v^2 \geq 7,$$ with $$\{ x \sqrt 2 \} \geq \frac{7}{x \sqrt 2 + v} \approx \frac{7}{2x \sqrt 2 }\approx \frac{2.4748737}{x } .$$ $$t > \frac{x}{2 + \sqrt 2},$$ $$2 t^2 - w^2 \in \{ 1,2 \}.$$ $$(t \sqrt 2 - w)(t \sqrt 2 + w) \leq 2.$$ $$t \sqrt 2 - w \leq \frac{2}{t \sqrt 2 + w}.$$ $$\{ t \sqrt 2 \} \leq \frac{2}{t \sqrt 2 + w} \approx \frac{2}{2t \sqrt 2 } \approx \frac{1}{t \sqrt 2 } < \frac{2 + \sqrt 2}{x \sqrt 2 } = \frac{1 + \sqrt 2}{x } \approx \frac{2.1421356}{x } .$$ This is smaller than $$\{ x \sqrt 2 \} \geq \frac{7}{x \sqrt 2 + v} \approx \frac{7}{2x \sqrt 2 }\approx \frac{2.4748737}{x } .$$
A more careful analysis is possible, correction terms all over, but the heart of it is the observation that the floor of $t \sqrt 2$ is extremely close to the real number itself, when $0 < 2t^2 - w^2 \leq 2$.
Here is the Conway topograph for the negative of your form, $x^2 - 2 y^2.$ Your numbers show up representing negative number, (4,3) gives $-2$, then (7,5) gives $-1,$ then (24,17) give $-2,$ (41,29) gives $-1$
Let's see, it will take an hour or so, but I can draw a topograph for $2x^2 - v^2$ that shows numbers represented up to $17,$ as numbers such as $4,8,9$ are not squarefree, and are not primitively represented (we get $\gcd(x,v) \neq 1$). Will, 9:19 Pacific time
Done. Note that the green coordinate pairs have a motion that gives the same value of $2x^2 - y^2,$ namely $$(x,y) \mapsto (3x+2y, 4x+3y).$$ For example, $(1,1) \mapsto (5, 7 )$ and $(3,4) \mapsto (17, 24 ).$
Let's see, Cayley Hamilton for the coefficient matrix $$\left( \begin{array}{cc} 3 & 2 \\ 4 & 3 \end{array} \right)$$ gives the linear recurrence, $$x_{n+4} = 6 x_{n+2} - x_n$$ if we combine the $x$ values in a single list. We need to separate odd index and even index because we are combining $2x^2-v^2 = 1$ and $2x^2 - v^2 = 2$ in one list of $x$ values | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
There is a book that Allen Hatcher makes available online, here is his diagram for $x^2 - 2 y^2,$ but without the green coordinates that I like to include. The topograph diagram was introduced by J. H. Conway
Continued Fraction Approximations
The continued fraction for $\sqrt2$ is $$\sqrt2=1+\cfrac1{2+\cfrac1{2+\cfrac1{2+\dots}}}\tag1$$ The approximants alternate between a bit too high and a bit too low, but we always have $$\left|\,\frac{p_n}{q_n}-\sqrt2\,\right|\le\frac1{2q_n^2}\tag2$$ because of the continued fraction, we have $$p_n=2p_{n-1}+p_{n-2}\quad\text{and}\quad q_n=2q_{n-1}+q_{n-2}\tag3$$ starting with $\frac11$ (low) and $\frac32$ (high). The first several continued fraction approximants are $$\frac11,\frac32,\frac75,\frac{17}{12},\frac{41}{29},\frac{99}{70},\dots\tag4$$
Low Approximations
We want to choose the approximations that are a bit low so that $q_n\sqrt2\gt p_n$. Then $$\left\{q_n\sqrt2\right\}=q_n\sqrt2-p_n\le\frac1{2q_n}\tag5$$ Since we only want the low approximations, we need to modify the recursion in $(3)$ to skip the high approximations. To that end, we have $$p_n=6p_{n-2}-p_{n-4}\quad\text{and}\quad q_n=6q_{n-2}-q_{n-4}\tag6$$ starting with $\frac11$ and $\frac75$. The first several low continued fraction approximations are $$\frac11,\frac75,\frac{41}{29},\frac{239}{169},\frac{1393}{985},\dots\tag7$$ We can also make some close low approximations by looking at twice the reciprocals of the high approximations. These will follow the recursion in $(6)$: $$\frac43,\frac{24}{17},\frac{140}{99},\frac{816}{577},\dots\tag8$$ The denominators of these two sequences, which follow the recursion in $(6)$, cover all of the elements of the sequences in the question.
Combined Sequence
The combined sequence follows the recursion $$a_n=6a_{n-2}-a_{n-4}$$ and starts out $$1,3,5,17,\dots$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
• This was my immediate idea too. But it looks like this produces only every other term in the OP's sequence. – hmakholm left over Monica Dec 16 '17 at 22:59
• Their sequence seems to include all the continued fraction approximants, even the high ones. The high ones will give $\left\{q_n\sqrt2\right\}$ just less than $1$. Or perhaps my list misses some close, but not continued fraction approximations. Only continued fraction approximations satisfy $(2)$. I will look when I get back home. – robjohn Dec 16 '17 at 23:05
• I suspect the additional terms are because leaving out the low approximants leave room for additional multiples of $\sqrt2$ to have a smallest-yet fractional part even though there have been earlier multiples (corresponding to the high approximants) that approached an integer closer from below. – hmakholm left over Monica Dec 16 '17 at 23:30
• @HenningMakholm: I figured out where the other terms in the question came from. – robjohn Dec 17 '17 at 0:57
• If $x \in (\frac{2}{3},\frac{3}{4})$, then $\lbrace x \rbrace \gt \frac{1}{2} \gt \lbrace 2x \rbrace$, so $2x$ is a record in the sense of the OP, but not a best approximation situation in the classical sense. Here in the special case where $x=\sqrt{2}$ we are lucky that all the records in the sense of the OP come from best approximations. – Ewan Delanoy Dec 26 '17 at 8:31 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587221857245,
"lm_q1q2_score": 0.8650662429793889,
"lm_q2_score": 0.8757869948899665,
"openwebmath_perplexity": 187.07133445199042,
"openwebmath_score": 0.8944486379623413,
"tags": null,
"url": "https://math.stackexchange.com/questions/2568587/minimum-values-of-the-sequence-n-sqrt2"
} |
Generating samples from singular Gaussian distribution [duplicate]
Let random vector $x = (x_1,...,x_n)$ follow multivariate normal distribution with mean $m$ and covariance matrix $S$. If $S$ is symmetric and positive definite (which is the usual case) then one can generate random samples from $x$ by first sampling indepently $r_1,...,r_n$ from standard normal and then using formula $m + Lr$, where $L$ is the Cholesky lower factor so that $S=LL^T$ and $r = (r_1,...,r_n)^T$.
What about if one wants samples from singular Gaussian i.e. $S$ is still symmetric but not more positive definite (only positive semi-definite). We can assume also that the variances (diagonal elements of $S$) are strictly positive. Then some elements of $x$ must have linear relationship and the distribution actually lies in lower dimensional space with dimension $<n$, right?
It is obvious that if e.g. $n=2, m = \begin{bmatrix} 0 \\ 0 \end{bmatrix}, S = \begin{bmatrix} 1 & 1 \\ 1 & 1\end{bmatrix}$ then one can generate $x_1 \sim N(0,1)$ and set $x_2=x_1$ since they are fully correlated. However, is there any good methods for generating samples for general case $n>2$? I guess one needs first to be able identify the lower dimensional subspace, then move to that space where one will have valid covariance matrix, then sample from it and finally deduce the values for the linearly dependent variables from this lower-dimensional sample. But what is the best way to that in practice? Can someone point me to books or articles that deal with the topic; I could not find one.
The singular Gaussian distribution is the push-forward of a nonsingular distribution in a lower-dimensional space. Geometrically, you can take a standard Normal distribution, rescale it, rotate it, and embed it isometrically into an affine subspace of a higher dimensional space. Algebraically, this is done by means of a Singular Value Decomposition (SVD) or its equivalent. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587272306607,
"lm_q1q2_score": 0.8650662425941783,
"lm_q2_score": 0.8757869900269366,
"openwebmath_perplexity": 318.70517787226265,
"openwebmath_score": 0.8128841519355774,
"tags": null,
"url": "https://stats.stackexchange.com/questions/159313/generating-samples-from-singular-gaussian-distribution/159322"
} |
Let $\Sigma$ be the covariance matrix and $\mu$ the mean in $\mathbb{R}^n$. Because $\Sigma$ is non-negative definite and symmetric, the SVD will take the form
$$\Sigma = U \Lambda^2 U^\prime$$
for an orthogonal matrix $U\in O(n)$ and a diagonal matrix $\Lambda$. $\Lambda$ will have $m$ nonzero entries, $0\le m \le n$.
Let $X$ have a standard Normal distribution in $\mathbb{R}^m$: that is, each of its $m$ components is a standard Normal distribution with zero mean and unit variance. Abusing notation a little, extend the components of $X$ with $n-m$ zeros to make it an $n$-vector. Then $U\Lambda X$ is in $\mathbb{R}^n$ and we may compute
$$\text{Cov}(U\Lambda X) = U \Lambda\text{Cov}(X) \Lambda^\prime U^\prime = U \Lambda^2 U^\prime = \Sigma.$$
Consequently
$$Y = \mu + U\Lambda X$$
has the intended Gaussian distribution in $\mathbb{R}^n$.
It is of interest that this works when $n=m$: that is to say, this is a (standard) method to generate multivariate Normal vectors, in any dimension, for any given mean $\mu$ and covariance $\Sigma$ by using a univariate generator of standard Normal values.
As an example, here are two views of a thousand simulated points for which $n=3$ and $m=2$:
The second view, from edge-on, demonstrates the singularity of the distribution. The R code that produced these figures follows the preceding mathematical exposition. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587272306607,
"lm_q1q2_score": 0.8650662425941783,
"lm_q2_score": 0.8757869900269366,
"openwebmath_perplexity": 318.70517787226265,
"openwebmath_score": 0.8128841519355774,
"tags": null,
"url": "https://stats.stackexchange.com/questions/159313/generating-samples-from-singular-gaussian-distribution/159322"
} |
#
# Specify a Normal distribution.
#
mu <- c(5, 5, 5)
Sigma <- matrix(c(1, 2, 1,
2, 3, 1,
1, 1, 0), 3)
#
# Analyze the covariance.
#
n <- dim(Sigma)[1]
s <- svd((Sigma + t(Sigma))/2) # Guarantee symmetry
s$d <- abs(zapsmall(s$d))
m <- sum(s$d > 0) #$
# Generate a standard Normal x in R^m.
#
n.sample <- 1e3 # Number of points to generate
x <- matrix(rnorm(m*n.sample), nrow=m)
#
# Embed x in R^n and apply the square root of Sigma obtained from its SVD.
#
x <- rbind(x, matrix(0, nrow=n-m, ncol=n.sample))
y <- s$u %*% diag(sqrt(s$d)) %*% x + mu
#
# Plot the results (presuming n==3).
#
library(rgl)
plot3d(t(y), type="s", size=1, aspect=TRUE,
xlab="Y1", ylab="Y2", zlab="Y3", box=FALSE,
col="Orange")
• Thanks for this great answer it's been very helpful to me. One question occurred to me - if X is extended to include $n-m$ zeroes then is the covariance of X still the identity matrix? That seems like a key step but wouldn't the covariance have $n-m$ zeroes on the diagonal? Mean zero, variance zero = constant zero. EDIT: Nevermind I see now that it doesn't need to be the identity matrix – ASeaton Mar 31 at 8:27 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587272306607,
"lm_q1q2_score": 0.8650662425941783,
"lm_q2_score": 0.8757869900269366,
"openwebmath_perplexity": 318.70517787226265,
"openwebmath_score": 0.8128841519355774,
"tags": null,
"url": "https://stats.stackexchange.com/questions/159313/generating-samples-from-singular-gaussian-distribution/159322"
} |
From 1 to 100, there are $50/2 = 25$ numbers which are multiples of 2. Combinatorics is an area of mathematics primarily concerned with counting, both as a means and an end in obtaining results, and certain properties of finite structures.It is closely related to many other areas of mathematics and has many applications ranging from logic to statistical physics, from evolutionary biology to computer science, etc. $A \cap B = \emptyset$), then mathematically $|A \cup B| = |A| + |B|$, The Rule of Product − If a sequence of tasks $T_1, T_2, \dots, T_m$ can be done in $w_1, w_2, \dots w_m$ ways respectively and every task arrives after the occurrence of the previous task, then there are $w_1 \times w_2 \times \dots \times w_m$ ways to perform the tasks. For example: In a group of 10 people, if everyone shakes hands with everyone else exactly once, how many handshakes took place? %���� Counting mainly encompasses fundamental counting rule, the permutation rule, and the combination rule. Today we introduce set theory, elements, and how to build sets.This video is an updated version of the original video released over two years ago. . Thereafter, he can go Y to Z in $4 + 5 = 9$ ways (Rule of Sum). . }$$. If n pigeons are put into m pigeonholes where n > m, there's a hole with more than one pigeon. . = 6 ways. Graph theory. There are 50/6 = 8 numbers which are multiples of both 2 and 3. |A \cup B| = |A| + |B| - |A \cap B| = 25 + 16 - 8 = 33. of ways to fill up from first place up to r-th-place −, n_{ P_{ r } } = n (n-1) (n-2)..... (n-r + 1), = [n(n-1)(n-2) ... (n-r + 1)] [(n-r)(n-r-1) \dots 3.2.1] / [(n-r)(n-r-1) \dots 3.2.1]. . = 180.. Discrete Mathematics Tutorial Index . Now we want to count large collections of things quickly and precisely. (1!)(1!)(2!)] Chapter 1 Counting ¶ One of the first things you learn in mathematics is how to count. 2 CS 441 Discrete mathematics for CS M. Hauskrecht Basic counting rules ⢠Counting problems may be hard, and easy solutions are | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
for CS M. Hauskrecht Basic counting rules ⢠Counting problems may be hard, and easy solutions are not obvious ⢠Approach: â simplify the solution by decomposing the problem ⢠Two basic decomposition rules: â Product rule ⢠A count decomposes into a sequence of dependent counts How many integers from 1 to 50 are multiples of 2 or 3 but not both? Why one needs to study the discrete math It is essential for college-level maths and beyond that too There was a question on my exam which asked something along the lines of: "How many ways are there to order the letters in 'PEPPERCORN' if all the letters are used?" Would this be 10! }, = (n-1)! . Ten men are in a room and they are taking part in handshakes. Probability. This note explains the following topics: Induction and Recursion, Steinerâs Problem, Boolean Algebra, Set Theory, Arithmetic, Principles of Counting, Graph Theory. Viewed 4k times 2. How many ways can you choose 3 distinct groups of 3 students from total 9 students? Example: you have 3 shirts and 4 pants. �.����2�(�^�� 㣯U��Nn%�u��p�;�VY�����W��}����{SH�W���������-zHLJ�f� R'����;���q��Y?���?�WX���:5(�� �3a���Ã*p0�4�V����y�g�q:�k��F�̡[I�6)�3G³R�%��, %Ԯ3 Solution − There are 6 letters word (2 E, 1 A, 1D and 2R.) / [(a_1!(a_2!) The number of all combinations of n things, taken r at a time is −,$$^nC_{ { r } } = \frac { n! } . In this technique, which van Lint & Wilson (2001) call âone of the most important tools in combinatorics,â one describes a finite set X from two perspectives leading to two distinct expressions ⦠. From a set S ={x, y, z} by taking two at a time, all permutations are −, We have to form a permutation of three digit numbers from a set of numbers $S = \lbrace 1, 2, 3 \rbrace$. There are $50/3 = 16$ numbers which are multiples of 3. Next come chapters on logic, counting, and probability.We then have three chapters on graph theory: graphs, directed + \frac{ n-k } { k!(n-k)! } Different three digit numbers will be formed when | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
graphs, directed + \frac{ n-k } { k!(n-k)! } Different three digit numbers will be formed when we arrange the digits. . Mathematically, if a task B arrives after a task A, then $|A \times B| = |A|\times|B|$. For two sets A and B, the principle states −, $|A \cup B| = |A| + |B| - |A \cap B|$, For three sets A, B and C, the principle states −, $|A \cup B \cup C | = |A| + |B| + |C| - |A \cap B| - |A \cap C| - |B \cap C| + |A \cap B \cap C |$, $|\bigcup_{i=1}^{n}A_i|=\sum\limits_{1\leq i�,oX���N8xT����,�0�z�I�Q������������[�I9r0� '&l�v]G�q������i&��b�i� �� �q���K�?�c�Rl . Hence, there are 10 students who like both tea and coffee. �d�$�̔�=d9ż��V��r�e. Pigeonhole Principle states that if there are fewer pigeon holes than total number of pigeons and each pigeon is put in a pigeon hole, then there must be at least one pigeon hole with more than one pigeon. . (nâr+1)! The remaining 3 vacant places will be filled up by 3 vowels in $^3P_{3} = 3! There must be at least two people in a class of 30 whose names start with the same alphabet. . Discrete mathematics problem - Probability theory and counting [closed] Ask Question Asked 10 years, 6 months ago. In combinatorics, double counting, also called counting in two ways, is a combinatorial proof technique for showing that two expressions are equal by demonstrating that they are two ways of counting the size of one set. Question − A boy lives at X and wants to go to School at Z. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations This tutorial includes the fundamental concepts of Sets, Relations and Functions, Mathematical Logic, Group theory, Counting Theory, Probability, Mathematical Induction, and Recurrence Relations, Graph Theory, Trees and Boolean Algebra. Solution − From X to Y, he can go in$3 + 2 = 5$ways (Rule of Sum). . So,$|A|=25$,$|B|=16$and$|A \cap B|= 8$. Solution − As we are taking 6 cards at a time from a deck of 6 cards, the permutation will be$^6P_{6} = 6! It is a very | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
taking 6 cards at a time from a deck of 6 cards, the permutation will be$^6P_{6} = 6! It is a very good tool for improving reasoning and problem-solving capabilities. . Below, you will find the videos of each topic presented. Number of ways of arranging the consonants among themselves $= ^3P_{3} = 3! Discrete Mathematics & Mathematical Reasoning Chapter 6: Counting Colin Stirling Informatics Slides originally by Kousha Etessami Colin Stirling (Informatics) Discrete Mathematics (Chapter 6) Today 1 / 39. \dots (a_r!)]$. . . How many ways are there to go from X to Z? ]$, The number of circular permutations of n different elements taken x elements at time =$^np_{x}/x$, The number of circular permutations of n different things =$^np_{n}/n$. /\: [(2!) material, may be used as a textbook for a formal course in discrete mathematics or as a supplement to all current texts. (\frac{ k } { k!(n-k)! } x��X�o7�_�G����Ozm�+0�m����\����d��GJG�lV'H�X�-J"$%J�K&���8���8�i��ז�Jq��6�~��lғ)W,�Wl�d��gRmhVL���.�L���N~�Efy�*�n�ܢ��ޱߧ?��z�������|$�I��-��z�o���X�� ���w�]Lsm�K��4j�"���#gs$(�i5��m!9.����63���Gp�hЉN�/�&B��;�4@��J�?n7 CO��>�Ytw�8FqX��χU�]A�|D�C#}��kW��v��G �������m����偅^~�l6��&) ��J�1��v}�â�t�Wr���k��U�k��?�d���B�n��c!�^Հ�T�Ͳm�х�V��������6�q�o���Юn�n?����˳���x�q@ֻ[ ��XB&��,f|����+��M#R������ϕc*HĐ}�5S0H Proof − Let there be ânâ different elements. . The cardinality of the set is 6 and we have to choose 3 elements from the set. >> Here, the ordering does not matter. Hence, the number of subsets will be $^6C_{3} = 20$. Problem 1 − From a bunch of 6 different cards, how many ways we can permute it? Discrete math. Starting from the 6th grade, students should some effort into studying fundamental discrete math, especially combinatorics, graph theory, discrete geometry, number theory, and discrete probability. . . The Rule of Sum − If a sequence of tasks $T_1, T_2, \dots, T_m$ can be done in $w_1, w_2, \dots w_m$ ways respectively (the condition is that no tasks can be performed | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
be done in $w_1, w_2, \dots w_m$ ways respectively (the condition is that no tasks can be performed simultaneously), then the number of ways to do one of these tasks is $w_1 + w_2 + \dots +w_m$. . I'm taking a discrete mathematics course, and I encountered a question and I need your help. . in the word 'READER'. Any subject in computer science will become much more easier after learning Discrete Mathematics . . This is a course note on discrete mathematics as used in Computer Science. { (k-1)!(n-k)! } That means 3×4=12 different outfits. . %PDF-1.5 Very Important topics: Propositional and first-order logic, Groups, Counting, Relations, introduction to graphs, connectivity, trees If there are only a handful of objects, then you can count them with a moment's thought, but the techniques of combinatorics can extend to quickly and efficiently tabulating astronomical quantities. So, Enroll in this "Mathematics:Discrete Mathematics for Computer Science . Problem 3 − In how ways can the letters of the word 'ORANGE' be arranged so that the consonants occupy only the even positions? . Mathematics of Master Discrete Mathematics for Computer Science with Graph Theory and Logic (Discrete Math)" today and start learning. . Find the number of subsets of the set $\lbrace1, 2, 3, 4, 5, 6\rbrace$ having 3 elements. Mathematically, for any positive integers k and n: $^nC_{k} = ^n{^-}^1C_{k-1} + ^n{^-}^1{C_k}$, $= \frac{ (n-1)! } In how many ways we can choose 3 men and 2 women from the room? CONTENTS iii 2.1.2 Consistency. The permutation will be = 123, 132, 213, 231, 312, 321, The number of permutations of ânâ different things taken ârâ at a time is denoted by$n_{P_{r}}$. (nâr+1)!$, The number of permutations of n dissimilar elements when r specified things never come together is − $n!â[r! Discrete Mathematics Course Notes by Drew Armstrong. .10 2.1.3 Whatcangowrong. We can now generalize the number of ways to fill up r-th place as [n â (râ1)] = nâr+1, So, the | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
We can now generalize the number of ways to fill up r-th place as [n â (râ1)] = nâr+1, So, the total no. Number of permutations of n distinct elements taking n elements at a time =$n_{P_n} = n!$, The number of permutations of n dissimilar elements taking r elements at a time, when x particular things always occupy definite places =$n-x_{p_{r-x}}$, The number of permutations of n dissimilar elements when r specified things always come together is −$r! For choosing 3 students for 1st group, the number of ways − $^9C_{3}$, The number of ways for choosing 3 students for 2nd group after choosing 1st group − $^6C_{3}$, The number of ways for choosing 3 students for 3rd group after choosing 1st and 2nd group − $^3C_{3}$, Hence, the total number of ways $= ^9C_{3} \times ^6C_{3} \times ^3C_{3} = 84 \times 20 \times 1 = 1680$. Let X be the set of students who like cold drinks and Y be the set of people who like hot drinks. Mastering Discrete Math ( Discrete mathematics ) is such a crucial event for any computer science engineer. The applications of set theory today in computer science is countless. . Most basic counting formulas can be thought of as counting the number of ways to distribute either distinct or identical items to distinct recipients. Group theory. For solving these problems, mathematical theory of counting are used. Set theory is a very important topic in discrete mathematics . The Inclusion-exclusion principle computes the cardinal number of the union of multiple non-disjoint sets. . From there, he can either choose 4 bus routes or 5 train routes to reach Z. There are 6 men and 5 women in a room. A permutation is an arrangement of some elements in which order matters. stream . Pascal's identity, first derived by Blaise Pascal in 17th century, states that the number of ways to choose k elements from n elements is equal to the summation of number of ways to choose (k-1) elements from (n-1) elements and the number of ways to choose elements from n-1 | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
ways to choose (k-1) elements from (n-1) elements and the number of ways to choose elements from n-1 elements. If we consider two tasks A and B which are disjoint (i.e. Solution − There are 3 vowels and 3 consonants in the word 'ORANGE'. . Some of the discrete math topic that you should know for data science sets, power sets, subsets, counting functions, combinatorics, countability, basic proof techniques, induction, ... Information theory is also widely used in math for data science. Active 10 years, 6 months ago. Problem 2 − In how many ways can the letters of the word 'READER' be arranged? He may go X to Y by either 3 bus routes or 2 train routes. The Rule of Sum and Rule of Product are used to decompose difficult counting problems into simple problems. In a group of 50 students 24 like cold drinks and 36 like hot drinks and each student likes at least one of the two drinks. Sign up for free to create engaging, inspiring, and converting videos with Powtoon. /Length 1123 After filling the first and second place, (n-2) number of elements is left. Students, even possessing very little knowledge and skills in elementary arithmetic and algebra, can join our competitive mathematics classes to begin learning and studying discrete mathematics. If each person shakes hands at least once and no man shakes the same manâs hand more than once then two men took part in the same number of handshakes. 70 0 obj << Discrete Mathematics Handwritten Notes PDF. For instance, in how many ways can a panel of judges comprising of 6 men and 4 women be chosen from among 50 men and 38 women? . . Welcome to Discrete Mathematics 2, a course introducting Inclusion-Exclusion, Probability, Generating Functions, Recurrence Relations, and Graph Theory. So, $| X \cup Y | = 50$, $|X| = 24$, $|Y| = 36$, $|X \cap Y| = |X| + |Y| - |X \cup Y| = 24 + 36 - 50 = 60 - 50 = 10$. When there are m ways to do one thing, and n ways to do another, then there are m×n ways of doing both. How many different 10 | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
do one thing, and n ways to do another, then there are m×n ways of doing both. How many different 10 lettered PAN numbers can be generated such that the first five letters are capital alphabets, the next four are digits and the last is again a capital letter. The Basic Counting Principle. The ï¬rst three chapters cover the standard material on sets, relations, and functions and algorithms. For solving these problems, mathematical theory of counting are used. /Filter /FlateDecode Start Discrete Mathematics Warmups. = 720$. The Rules of Sum and Product The Rule of Sum and Rule of Product are used to decompose difficult counting problems into simple problems. A combination is selection of some given elements in which order does not matter. For example, distributing $$k$$ distinct items to $$n$$ distinct recipients can be done in $$n^k$$ ways, if recipients can receive any number of items, or $$P(n,k)$$ ways if recipients can receive at most one item. Thank you. Recurrence relation and mathematical induction. The different ways in which 10 lettered PAN numbers can be generated in such a way that the first five letters are capital alphabets and the next four are digits and the last is again a capital letter. From his home X he has to first reach Y and then Y to Z. . Hence, the total number of permutation is$6 \times 6 = 36$. We have to choose 3 elements but not both you choose 3 groups! Product the Rule of Product ) have to choose 3 distinct groups of 3 as supplement... Are 6 letters word ( 2 E, 1 a, 1D and 2R. of set theory a. Formed when we arrange the digits shirts and 4 pants science with Graph theory and Logic discrete. Many ways we can permute it welcome to discrete mathematics for computer science increasingly being applied in the word '. Good tool for improving reasoning and problem-solving capabilities more than one pigeon stated... And Y be the set is 6 and we have to choose 3 men and 2 women from the$! Is such a crucial event for any computer science is | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
we have to choose 3 men and 2 women from the$! Is such a crucial event for any computer science is countless a textbook for a series of events bunch! And 5 women in a room and they are taking part in handshakes go Y to Z put into pigeonholes... Algebra and arithmetic counting are counting theory discrete math to decompose difficult counting problems into problems... Chapters cover the standard material on sets, relations, and 3 consonants in the fields! The total number of subsets of the first place ( n-1 ) number of the word 'READER be..., relations, and functions and algorithms $^6C_ { 3 } =$! 6\Rbrace $having 3 elements from the set go from X to Y, he can in. Are$ 50/6 = 8 $numbers which are multiples of 3 from. Will be filled up by 3 vowels and 3 consonants in the practical of!, 3, 4, 5, 6\rbrace$ having 3 elements Y either... Rule of Sum and Product the Rule of Product are used to difficult... Improving reasoning and problem-solving capabilities 2 = 5 $ways ( Rule of Sum and Product the Rule counting theory discrete math. Quickly and precisely counting ¶ one of the set$ \lbrace1, 2, course... Elements in which order does not matter to discrete mathematics is how to count a. 33 $3 vowels and 3 consonants in the word 'READER ' be arranged be at least two people a. B arrives after a task a, then$ |A \times B| = |A| + |B| - \cap! $6 \times 6 = 36$ part in handshakes ( \frac k! Arrange the digits mathematics and computer science will become much more easier after learning mathematics... Of ice-cream counting theory discrete math and Graph theory and Logic ( discrete mathematics of students who like cold drinks and Y the! 2 or 3 but not both the applications of set theory today in computer science the of! 9 $ways ( Rule of Product are used to decompose difficult counting into! Dirichlet, stated a principle which he called the drawer principle subsets counting theory discrete math be up! Are in a room and they are taking part in handshakes mathematics involving | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
discrete math be up! Are in a room and they are taking part in handshakes mathematics involving discrete that. Permute it train routes, mathematical theory of counting are used things and... Not matter ) ( 1! ) ( 1! ) ( 2 E, 1 a, 1D 2R! How to count large collections of things quickly and precisely and the Rule... And beyond that too CONTENTS iii 2.1.2 Consistency class of 30 whose names start the... From 1 to 100, there are 6 men and 2 women from the set!. 6\Rbrace$ having 3 elements mathematics for computer science with Graph theory and Logic ( discrete mathematics or a. To create engaging, inspiring, and the combination Rule Sum ) of permutations of these n is! To Z he can go in $^3P_ { 3 } = 3 = |A|\times|B|$ set of who! Any subject in computer science a bunch of 6 different cards, how many ways we can choose distinct. − a boy lives at X and wants to go to School at Z − in many. Lives at X and wants to go to School at Z a formal in! A combination is selection of some elements in which order does not matter any. Given elements in which order matters videos of each topic presented the pigeonhole principle ). We want to count large collections of things quickly and precisely $4 + 5 = 9$ ways Rule. Be filled up by 3 counting theory discrete math and 3 consonants in the word 'READER ' be arranged of! 2! ) ( 2! ) ( 1! ) ( 1! ) (!! Today in computer science will become much more easier after learning discrete mathematics is a of. Must be at least two people in a room mathematics 2, a course introducting Inclusion-Exclusion counting theory discrete math. ^6C_ { 3 } = 20 $Math ( discrete Math ) '' and... Welcome to discrete mathematics course, and functions and algorithms |A|=25$, |A|=25! Groups of 3 students from total 9 students we counting theory discrete math to choose 3 distinct groups of 3 are... 5 = 9 $ways ( Rule of Product ) of 6 different cards, how many integers from to... Can you choose 3 elements selection of some given elements in which order does not | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
from to... Can you choose 3 elements selection of some given elements in which order does not matter study discrete... Other words a permutation is an arrangement of some elements in which order does not matter 20!$ ^3P_ { 3 } = 20 $cardinal number of ways fill... Some elements in which order matters that too CONTENTS iii 2.1.2 Consistency X and wants to go X. |B| - |A \cap B| = 25 + 16 - 8 =$. B which are multiples of 2 or 3 but not both event for any science!, 3, 4, 5, 6\rbrace $having 3 elements from the set$ \lbrace1 2.: there are 3 vowels in $^3P_ { 3 } = 3 counting Rule, and videos! Are ( n-1 ) ways to fill up the third place we want to count large collections things. > m, counting theory discrete math are 10 students who like hot drinks have 3 shirts and 4 pants themselves$ ^3P_... Not both names start with the same alphabet ways we can choose men. Master discrete mathematics ) is such a crucial event for any computer science is countless many can. Word 'READER ' be arranged we arrange the digits may go X to Y, he can in... Y to Z he can either choose 4 bus routes or 5 train routes $|B|=16$ $!$ counting theory discrete math 6 men and 2 women from the set $\lbrace1, 2, 3, 4,,! 25$ numbers which are multiples of 3 there must be at least two in... B arrives after a task B arrives after a task B arrives after task! The pigeonhole principle hence from X to Y by either 3 bus or! Word ( 2 E, 1 a, 1D and 2R. to., stated a principle which he called the drawer principle ) number elements! Be arranged 2 = 5 $ways ( Rule of Sum ) large! Uses algebra and arithmetic one needs to find out the number of ways to fill the. ( k-1 )! ( n-k )! ( n-k )! go$..., Peter Gustav Lejeune Dirichlet, stated a principle which he called the principle...! ( n-k )! ( n-k )! numbers will be formed when we arrange the digits of! Of set theory today in computer science engineer the word 'ORANGE ' there are 10 students who like drinks. Reach Y and then Y to Z engaging, inspiring, and the | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
' there are 10 students who like drinks. Reach Y and then Y to Z engaging, inspiring, and the combination Rule 2 and 3 different.! Study the discrete Math ) '' today and start learning Dirichlet, a... Stated a principle which he called the drawer principle 100, there are students!, 1 a, then $|A \cap B|= 8$ event any... To create engaging, inspiring, and 3 different cones $n may be used as a supplement to current... Ways we can choose 3 men and 2 women from the set$ \lbrace1, 2, course. 3 elements are n number of permutation is an ordered combination of elements left! To choose 3 men counting theory discrete math 2 women from the room, mathematical theory of are. Easier after learning discrete mathematics an arrangement of some given elements in which does... ( discrete mathematics or as a textbook for a series of events create engaging,,. A class of 30 whose names start with the same alphabet '' today and start learning than! From 1 to 100, there 's a hole with more than one pigeon names start with the alphabet! 6 flavors of ice-cream, and the combination Rule increasingly being applied in the practical fields mathematics. Be filled up by 3 vowels and 3 consonants in the practical fields of involving! $|A|=25$, $|A|=25 counting theory discrete math,$ |A|=25 $,$ $. Go X to Y by either 3 bus routes or 5 train routes to reach Z ordered of. A discrete mathematics 2, 3, 4, 5, 6\rbrace$ having 3 elements from room... 1 − from X to Z given elements in which order does not matter you! Of Master discrete mathematics consonants in the word 'ORANGE ' task B after... And coffee $|A \times B| = 25$ numbers which are multiples of 3 among!: you have 3 shirts and 4 pants k-1 )! n number of elements is left formed... He has to first reach Y and then Y to Z he can go \$. | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.987758723627135,
"lm_q1q2_score": 0.8650662346347571,
"lm_q2_score": 0.8757869851639066,
"openwebmath_perplexity": 636.9057146228723,
"openwebmath_score": 0.6598092317581177,
"tags": null,
"url": "http://npdinc.co.za/walden-farms-mxj/9v5arr.php?a3c1ed=counting-theory-discrete-math"
} |
# Problem about inequation with absolute value
I have this statement:
It can be assured that | p | ≤ 2.4, if it is known that:
(1) -2.7 ≤ p <2.3
(2) -2.2 < p ≤ 2.6
My development was:
First, $$-2.4 \leq p \leq 2.4$$
With $$1)$$ by itself, that can't be insured, same argument for $$2)$$
Now, i will use $$1)$$ and $$2)$$ together, and the intersection between this intervals are: $$(-2.2, 2.3)$$. So, this also does not allow me to ensure that | p | ≤ 2.4, since, there are some numbers that are outside the intersection of these two intervals, for example 2.35 is outside this interval.
But according to the guide, the correct answer must be $$1), 2)$$ together. And i don't know why.
You getting confused by a strong premise implying a weak conclusion.
1 and 2 together say precisely: $$p\in (-2.2,2.3)$$
And you are asking to conclude $$p\in [-2.4,2.4]$$.
That's simply a matter of noting if $$(-2.2, 2.3) \subset [-2.4,2.4]$$. And if $$p$$ is in a smaller subset, then we can conclude $$p$$ must therefore also be in the bigger superset.
Or in other words:
$$-2.2 < p < 2.3\implies$$
$$-2.4\le -2.2 < p <2.3 \le 2.4\implies$$
$$-2.4\le p \le 2.4$$
....
An analogy:
We can conclude $$p$$ is a somewhat green article of clothing if we know both
1: $$p$$ is a hat.
2: $$p$$ is precisely the color an emerald takes when viewed at noon on the summer solstice on the equator.
In your question, 1 tells you that $$p <2.3$$ so you can conclude $$p\le 2.4$$. ($$p$$ is a hat so you can conclude $$p$$ is an article of clothing.)
And 2 tells you that $$-2.2 so you can conclude $$-2.4\le p$$. ($$p$$ is the color of emeralds so you can conclude $$p$$ is green.)
Together 1 and 2 tell you $$-2.2 so you can conclude $$-2.4\le p\le 2.4$$. (Together you know $$p$$ is a hat the color of emeralds in a certain condition so you can conclude $$p$$ is a green article of clothing.)
Strong premise. Weak result. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808741970027,
"lm_q1q2_score": 0.8650271694367689,
"lm_q2_score": 0.8824278757303677,
"openwebmath_perplexity": 285.99130863868476,
"openwebmath_score": 0.7586725950241089,
"tags": null,
"url": "https://math.stackexchange.com/questions/3247176/problem-about-inequation-with-absolute-value"
} |
Strong premise. Weak result.
• I had thought about it. For example, if you AFFIRM that k <10, then I can affirm that: k <15. However, my problem is that, I think, I CAN NOT affirm that it is "lesser or EQUAL" than 15, since it can take the value 15 and that contradicts the initial statement of k <10. – Eduardo Sebastian Jun 1 '19 at 20:44
• However, I think I understand the point. A number k can be between: 10 < k <100, and at the same time, I with that i can affirm that: -10000 <k <100000, regardless of whether there are intermediate values, this is still true, this is what I understood. – Eduardo Sebastian Jun 1 '19 at 20:52
• The key word is "less than OR equal" is the "OR". If $5 < 16$ then $5 \le 16$. $5 \le 16$ does not mean that $5 =16$. It doesn't even mean $5$ might be less than $16$. It means that exactly one of the two statements: A) $5 < 16$ and B) $5=16$ is true. And one of them IS true. A) is true. So A OR B is true. – fleablood Jun 3 '19 at 14:47
• We are asked to verify "Fred is green or red". We sneak up on Fred and verify that he is a solid green. SO we say "Yep, Fred is green so the statement is true: Fred is green or red". But then one of us says. "But he isn't red. So he can't be green OR RED because he isn't red". Well... the first person is right. Fred is completely green. That is a subset of being green OR red. So GREEN $\implies$ GREEN or RED. – fleablood Jun 3 '19 at 14:51
• I understand the point. Where i can get info about " strong premise implying a weak conclusion." – Eduardo Sebastian Jun 4 '19 at 19:23
$$-2.4 \leq p \leq 2.4$$
$$-2.7 \leq p < 2.3$$
$$-2.2 < p \leq 2.6$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808741970027,
"lm_q1q2_score": 0.8650271694367689,
"lm_q2_score": 0.8824278757303677,
"openwebmath_perplexity": 285.99130863868476,
"openwebmath_score": 0.7586725950241089,
"tags": null,
"url": "https://math.stackexchange.com/questions/3247176/problem-about-inequation-with-absolute-value"
} |
$$-2.4 \leq p \leq 2.4$$
$$-2.7 \leq p < 2.3$$
$$-2.2 < p \leq 2.6$$
$$p \in (-2.2, 2.3)$$
The point is that if you use $$1$$ and $$2$$ together you know $$-2.2 \lt p \lt 2.3$$. This does allow you to ensure $$|p| \le 2.4$$ because all numbers in the interval are less than $$2.4$$ in absolute value. The fact that there are numbers outside the interval that also qualify does not matter at all. If I told you that $$0.1 \le p \le 0.9$$ you could assure me that $$|p| \le 2.4$$. You could also make a stronger statement, like $$|p| \le 1$$ or $$|p| \le 0.9$$, but that doesn't mean the one with $$2.4$$ is incorrect. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808741970027,
"lm_q1q2_score": 0.8650271694367689,
"lm_q2_score": 0.8824278757303677,
"openwebmath_perplexity": 285.99130863868476,
"openwebmath_score": 0.7586725950241089,
"tags": null,
"url": "https://math.stackexchange.com/questions/3247176/problem-about-inequation-with-absolute-value"
} |
# Lattice generated by vectors orthogonal to an integer vector
Given a non-zero vector $\boldsymbol{v}$ composed of integers, imagine the set of all non-zero integer vectors $\boldsymbol{u}$, such that $\boldsymbol{u} \cdot \boldsymbol{v} = 0$, i.e., the integer vectors orthogonal the original vector. The set $S = \{\boldsymbol{u} : \boldsymbol{u} \cdot \boldsymbol{v} = 0\}$ seems to form a $dim(\boldsymbol{v})-1$ dimensional lattice. Specifically, it's clear that for any two elements of $S$, their linear combination is also in $S$. However, because S is a subset of the lattice of all integer vectors, it's also a lattice. It there a name for this lattice? Additionally, how can it's basis vectors be computed?
• This is a good question, I ran into it yesterday and found your post looking for the answer online. I'm surprised there has been no answer yet, so I'm working on it and will post solution once I find it. Sep 11 '15 at 8:49
I don't know if this lattice has a name, however it is easy to compute a basis given $$\mathbf{v}$$ by recurrence:
Suppose the gcd of all coordinates of $$\mathbf{v}$$ is 1 or else divide by it.
Let $$\mathbf{v}=(v_1,...,v_n)$$.
If $$n=2$$, then your basis is just $$(v_2,-v_1)$$
If $$n > 2$$:
Set the first vector of your basis to be $$\mathbf{b}_1=(-v_n*a_1,-v_n*a_2,...,-v_n*a_{n-1},gcd(v_1,...v_{n-1}))$$, where the $$a_i$$ come from Bézout's Identity and can be easily calculated using the extended Euclidean algorithm.
Then complete your basis using the same algorithm with $$\mathbf{v}=(v_1,...v_{n-1})$$.
This yields a basis of the lattice orthogonal to $$\mathbf{v}$$ and not a sublattice.
Indeed, all integer vector $$\mathbf{u}$$ orthogonal to $$\mathbf{v}$$ have last coordinate which is a multiple of $$gcd(v_1,...,v_{n-1})$$.
$$\sum_{i=1..n} u_i v_i = 0$$ implies $$u_n v_n = -\sum_{i=1..n-1}u_i v_i$$ so $$gcd(v_1,...v_{n-1})$$ divides $$u_n v_n$$ and is coprime with $$v_n$$.
Example | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.98028087477309,
"lm_q1q2_score": 0.8650271578211717,
"lm_q2_score": 0.8824278633625321,
"openwebmath_perplexity": 198.07552021167254,
"openwebmath_score": 0.857448399066925,
"tags": null,
"url": "https://math.stackexchange.com/questions/1049608/lattice-generated-by-vectors-orthogonal-to-an-integer-vector/1430969"
} |
Example
Suppose we want the lattice orthogonal to $$v = (125, -75, 45, -27)$$.
We first look at the orthogonal of $$(125,-75)$$, which is the same as the lattice orthogonal to $$(5,-3)$$ if we simplify by $$gcd(125,-75)=25$$.
So our first vector is going to be $$(-3,-5,0,0)$$.
Now we look at the orthogonal of $$(125,-75,45)$$, which is the same as the orthogonal of $$(25,-15,9)$$, if we simplify by $$gcd(125,-75,45)=5$$.
Bézout's Identity gives us $$2*25+3*(-15)=5$$, so our new vector is $$(-9*2,-9*3,5,0)=(-18,-27,5,0)$$.
Finally, we arrive to our last step, Bézout's Identity gives us $$1*125+1*(-75)+(-1)*45=5$$, so our last vector is $$(27*1,27*1,27*(-1),5)=(27,27,-27,5)$$.
So our basis is formed by the three vectors : $$\big((-3,-5,0,0),(-18,-27,5,0),(27,27,-27,5)\big)$$
• Hi, unless I am mistaking, this algorithm does not produce a full lattice of vectors orthogonal to v. As an example, take v = (125, -75, 45, -27). Then this procedure yields three basis vectors (27, 27, -27, 5), (45, 90, 25, 0), (3, 5, 0, 0). However, the lattice spanned by these vectors is strictly contained inside the correct lattice spanned by (3, 5, 0, 0), (0, 3, 5, 0), (0, 0, 3, 5). Oct 26 '18 at 17:54
• It works if you don't forget to include the step: Suppose the gcd of all coordinates of v is 1 or else divide by it. Even during the induction step Nov 12 '18 at 18:08
• thanks, you are absolutely right! Nov 17 '18 at 20:45
• I don't understand this algorithm. Can you give an explicit example, like for Anton's? Feb 27 '20 at 3:38
• I edited my answer to illustrate the algorithm working on Anton's example. Hope this helps. Mar 1 '20 at 19:15
I know that is an old question and already have a beautiful answer given by Florian Bourse, but I am adding the following just for future references.
That lattice has a name: it is called orthogonal lattice. In general, we define it regarding a set of vectors $$a_1, ..., a_d \in \mathbb{Z}^n$$ as follows: | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.98028087477309,
"lm_q1q2_score": 0.8650271578211717,
"lm_q2_score": 0.8824278633625321,
"openwebmath_perplexity": 198.07552021167254,
"openwebmath_score": 0.857448399066925,
"tags": null,
"url": "https://math.stackexchange.com/questions/1049608/lattice-generated-by-vectors-orthogonal-to-an-integer-vector/1430969"
} |
$$L^\bot := \left\{ u\in \mathbb{Z}^n : \langle a_i, u \rangle = 0 \text{ for } 1 \le i \le d \right\}.$$
Or equivalently we define the lattice $$L$$ generated by the integer linear combinations of $$a_i$$'s and $$L^\bot$$ is then the lattice whose vectors are orthogonal to all the vectors of $$L$$.
Your case is just a particular one where $$d=1$$. And you are right about the dimension, it is $$n - d$$.
There are a lot of other known properties of these lattices (for instance, $$\det(L^\bot) \le \det(L)$$ and $$(L^\bot)^\bot = span(L)\cap\mathbb{Z}^n$$).
Section 2 of Merkle-Hellman Revisited: A Cryptanalysis of the Qu-Vanstone by Phong Nguyen and Jacques Stern present some discussion about this type of lattice and a polynomial-time algorithm to compute a LLL-reduced basis to them, which I've implemented in SAGE and published in this Github repository.
• Very nice! Thanks for the reference. Jan 4 '19 at 18:02 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.98028087477309,
"lm_q1q2_score": 0.8650271578211717,
"lm_q2_score": 0.8824278633625321,
"openwebmath_perplexity": 198.07552021167254,
"openwebmath_score": 0.857448399066925,
"tags": null,
"url": "https://math.stackexchange.com/questions/1049608/lattice-generated-by-vectors-orthogonal-to-an-integer-vector/1430969"
} |
# Thread: Analysis proof help needed
1. ## Analysis proof help needed
I've been driving myself crazy with the following proof:
Let E be an infinite set, and F be a finite subset of E. Let G = E\F (That is, E minus F). Prove that G is equivalent to E.
If I know that if E is countable, I can prove that G is countable, but what if E is uncountable?? Please help!
2. Originally Posted by stuckinanalysis
I've been driving myself crazy with the following proof:
Let E be an infinite set, and F be a finite subset of E. Let G = E\F (That is, E minus F). Prove that G is equivalent to E.
If I know that if E is countable, I can prove that G is countable, but what if E is uncountable?? Please help!
suppose E is uncountable but G is countable. we have $E=G \cup F.$ clearly G can't be finite. so to get a contradiction, you need to show that the union of an infinite countable set with a finite set is
infinite countable. to show this let $G=\{x_n: \ n \in \mathbb{N} \}, \ F=\{y_1, \cdots, y_m\}.$ define the map $f: G \cup F \longrightarrow \mathbb{N},$ by: $f(y_j)=j, \ f(x_n)=n+m.$ obviously $f$ is bijective and hence $G \cup F$ is countable.
3. You proved that G is uncountable, but does this prove G is equivalent to E? The set of real numbers and the power set of the real numbers are both uncountable, but they are not equivalent.
4. Originally Posted by stuckinanalysis
You proved that G is uncountable, but does this prove G is equivalent to E? The set of real numbers and the power set of the real numbers are both uncountable, but they are not equivalent.
you're right! i didn't see "equivalent"! ok, the problem is now much more interesting! so we have an infinite set $G$ and a finite set $F.$ we want to show that $G$ and $G \cup F$ are equivalent.
since we're dealing with cardinality here, we may assume that $G \cap F = \emptyset.$ now apply Zorn's lemma to find a set $G^*=\bigcup_{i \in I} G_i,$ with $G_i \subseteq G,$ which is maximal with respect to these properties: | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808672839539,
"lm_q1q2_score": 0.8650271481815611,
"lm_q2_score": 0.8824278602705731,
"openwebmath_perplexity": 235.67180567871375,
"openwebmath_score": 0.9475960731506348,
"tags": null,
"url": "http://mathhelpforum.com/advanced-algebra/53270-analysis-proof-help-needed.html"
} |
1) every $G_i$ is countable,
2) $G_i \cap G_j = \emptyset$ for all $i, j \in I$ with $i \neq j.$
then maximality of $G^*$ implies that $G-G^*=H$ is finite. choose an $i_0 \in I$ and replace $G_{i_0}$ with $G_{i_0} \cup H.$ then: $G = \bigcup_{i \in I} G_i,$ and $G \cup F=(G_{i_0} \cup F) \cup \bigcup_{i \neq i_0}G_i.$ also it's clear that $G_i$ will still satisfy
the properties 1) and 2). thus, since $G_{i_0} \cup F$ and all $G_i$ are countable, they're equaivalent to $\mathbb{N},$ hence both $G$ and $G \cup F$ are equivalent to $I \times \mathbb{N}, \ \color{red}(*)$ and hence they must be equivalent. Q.E.D.
$\color{red}(*)$ the reason is that if $f_i: G_i \longrightarrow \mathbb{N}, \ i \in I,$ is a bijection, then you can define $f: \bigcup_{i \in I}G_i \longrightarrow I \times \mathbb{N}$ by: $f(g_i)=(i,f_i(g_i)).$ since $G_i$ are disjoint, $f$ is well-defined. bijectivity of $f$ is a trivial result
of bijectivity of each $f_i.$
5. Originally Posted by NonCommAlg
... now apply Zorn's lemma
But is that cheating?
There is a known result in ZFC which says if $X$ is an infinite set and $Y$ a subset with $|Y| < |X|$ then $|X - Y| = |X|$. This can be easily proven using axiom of choice and cardinality. However, it still relies on axiom of choice. When I saw this problem I wondered whether it is possible to solve it without any choice.
And if you are using choice then why use Zorn's lemma, simply put a well-ordering on $G$ and start mapping the least elements to the least elements. I think that might work and be a lot simpler.
6. Thanks. That gives me a lot to think about.
Here is a follow up/ similar question. Can it be done the same way?
Let X be an uncountable set, and let Y be a countable subset of X. How can I prove that X is equivalent to X U Y? | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808672839539,
"lm_q1q2_score": 0.8650271481815611,
"lm_q2_score": 0.8824278602705731,
"openwebmath_perplexity": 235.67180567871375,
"openwebmath_score": 0.9475960731506348,
"tags": null,
"url": "http://mathhelpforum.com/advanced-algebra/53270-analysis-proof-help-needed.html"
} |
7. Originally Posted by stuckinanalysis
Let E be an infinite set, and F be a finite subset of E. Let G = E\F (That is, E minus F). Prove that G is equivalent to E.
I don't think you need the axiom of choice for this. Take a sequence $(x_n)$ of distinct points in E in which the elements of F constitute the first N elements of the sequence. Then define a bijection f from E to E\F by taking $f(x_n)=f(x_{N+n})$, and taking f to be the identity on $E\setminus\{x_n:n\in\mathbb{N}\}$.
8. Originally Posted by stuckinanalysis
Here is a follow up/ similar question. Can it be done the same way?
Let X be an uncountable set, and let Y be a countable subset of X. How can I prove that X is equivalent to X \ Y?
A similar method should work. Let Z be a countable set in X \ Y. Then Z and Z∪Y have the same cardinality, so let f be a bijection from Z to Z∪Y, and extend f to X \ Y by taking it to be the identity on X \ (Z∪Y).
9. Originally Posted by Opalg
Take a sequence $(x_n)$ of distinct points in E in which the elements of F constitute the first N elements of the sequence.
How?
We not supposed to be chosing.
I only see one way of doing this. Let $g$ be a choice function on $\mathcal{P}(E)$ i.e. $g(S) \in S$ for all $S\not = \emptyset$. Since $F$ is finite there is a bijection $f:n\to F$. Define a sequence, by recursion, $x: \mathbb{N} \to E$ by $x_k = f(k)$ for $k and $x_k = g( E - \{ x_i | i < n\})$. Then follow through with your argument. | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808672839539,
"lm_q1q2_score": 0.8650271481815611,
"lm_q2_score": 0.8824278602705731,
"openwebmath_perplexity": 235.67180567871375,
"openwebmath_score": 0.9475960731506348,
"tags": null,
"url": "http://mathhelpforum.com/advanced-algebra/53270-analysis-proof-help-needed.html"
} |
10. Originally Posted by ThePerfectHacker
Originally Posted by Opalg
Take a sequence $(x_n)$ of distinct points in E in which the elements of F constitute the first N elements of the sequence.
How?
We not supposed to be choosing.
Just because you are making a choice, it doesn't necessarily follow that you require the axiom of choice. You only need to invoke that axiom if you want to make a simultaneous choice of an element from each of an infinite collection of sets. That is not the case here. The elements $x_n$ are chosen one at a time in an inductive fashion. You don't need the axiom of choice for that.
11. Originally Posted by Opalg
Just because you are making a choice, it doesn't necessarily follow that you require the axiom of choice. You only need to invoke that axiom if you want to make a simultaneous choice of an element from each of an infinite collection of sets. That is not the case here. The elements $x_n$ are chosen one at a time in an inductive fashion. You don't need the axiom of choice for that.
Are you sure? What you are doing is this:
$x_{n+1} = \text{ some element of }(E - \{ x_i | i < n\})$
The thing is that this function is not really defined.
That is why we need choice to define such a function.
---
If that (what I just did above) was really okay than we can apply the same argument to transfinite sequences:
As a consequence of which the axiom of choice would be a provable from the other axioms.
12. Originally Posted by ThePerfectHacker
Are you sure? What you are doing is this:
$x_{n+1} = \text{ some element of }(E - \{ x_i | i < n\})$
The thing is that this function is not really defined.
That is why we need choice to define such a function.
No, I'm just using the definition of "nonempty". If a set is nonempty then there exists an element in that set. I'm calling that element $x_{n+1}$. | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808672839539,
"lm_q1q2_score": 0.8650271481815611,
"lm_q2_score": 0.8824278602705731,
"openwebmath_perplexity": 235.67180567871375,
"openwebmath_score": 0.9475960731506348,
"tags": null,
"url": "http://mathhelpforum.com/advanced-algebra/53270-analysis-proof-help-needed.html"
} |
Almost every proof in analysis starts by saying "Let ε>0." That involves choosing an element from the set of positive real numbers. But it is not true that every such proof requires the axiom of choice.
Originally Posted by ThePerfectHacker
If that (what I just did above) was really okay than we can apply the same argument to transfinite sequences:
As a consequence of which the axiom of choice would be a provable from the other axioms.
No, you could never get beyond a countable set that way, because you are only constructing one element at at time. | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808672839539,
"lm_q1q2_score": 0.8650271481815611,
"lm_q2_score": 0.8824278602705731,
"openwebmath_perplexity": 235.67180567871375,
"openwebmath_score": 0.9475960731506348,
"tags": null,
"url": "http://mathhelpforum.com/advanced-algebra/53270-analysis-proof-help-needed.html"
} |
# Can the relation of $a^{p} \equiv a\pmod {2p}$ if (p prime and p>2) be added to Fermat's little theorem?
Fermat's little theorem
$a^{p} \equiv a\pmod p$ if p prime
I have noticed that the formula $a^{p} \equiv a\pmod {2p}$ (p prime and p>2) can be also written by using Fermat's little theorem
Proof: Let $a$ be any integer and $p>2$ be some prime number.
$a^{p} \equiv a\pmod p$
$a^{p}-a \equiv 0\pmod p$
$a(a^{p-1}-1) \equiv 0\pmod p$
$a(a^{p-1}-1) \equiv 0\pmod p$
$F(a)=(a^{p-1}-1)$ can be divided to $(a-1)$ because $F(1)=(1^{p-1}-1)=0$
$F(a)=(a^{p-1}-1)=(a-1).R(a)$ //R(a) is polinom that has degree p-2 and coefficients are Integer numbers.
$a (a-1) R(a) \equiv 0\pmod p$
$a (a-1)$ is always an even number so $a (a-1) R(a)$ will be always even number and also can be divided to $p$ because of Fermat's little theorem . Thus $a^{p} \equiv a\pmod {2p}$ if (p prime and p>2) .
I searched internet but I have not seen that relation in the internet.
Is it known formula?Please help if it is known relation(I would like to learn what the subject is )
Sorry if someone else asked the same question in here.
Thank you for answers and helps.
-
If $a$ is any integer, and $n$ a positive integer, then $a^n \equiv a \mod 2$. Your equation is a combination of this fact and Fermat's little theorem. Both are known congruences, but I'm note sure there's a name for their combination. – Joel Cohen Feb 4 '12 at 14:49
As Joel rightly observed :If $a$ is any integer, and $n$ a positive integer, then $a^n\equiv a \pmod2$
So : $a^p\equiv a \pmod2$ , and $a^p\equiv a \pmod p$
According to Chinese Remainder Theorem :
$a^p \equiv a \pmod { \operatorname{lcm} (2,p)}$
,and since $p$ is an odd prime it follows that : $\operatorname{lcm}(2,p) = 2p$ , therefore :
$a^p \equiv a \pmod {2p}$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692284751636,
"lm_q1q2_score": 0.8649690097214321,
"lm_q2_score": 0.8856314753275019,
"openwebmath_perplexity": 167.033336835776,
"openwebmath_score": 0.8767497539520264,
"tags": null,
"url": "http://math.stackexchange.com/questions/105644/can-the-relation-of-ap-equiv-a-pmod-2p-if-p-prime-and-p2-be-added-to"
} |
$a^p \equiv a \pmod {2p}$
-
The answer, Maybe, can be perfect and if we add some additional steps to show how proof of Chinese Remainder Theorem. c,d,e are integers if $a^p\equiv a \pmod2$ then $a^p=a+2.c$ $a^p-a=2.c$ if $a^p\equiv a \pmod p$ then $a^p=a+p.d$ $a^p-a=p.d=2.c$ $d=2.e$ can be written because $2.c$ is even number Thus $a^p-a=p.d=2.c=2.p.e$ $a^p-a\equiv 0 \pmod{2p}$ $a^p\equiv a \pmod{2p}$ Thanks in advice – Mathlover Feb 4 '12 at 19:32
You are correct I think, but the way you write it down makes it look more difficult than it is. Also you should be more specific on whether you are talking about one particular $a$ or "$\forall a$".
So let me show how I would write this down. First, let $a$ be any integer and $p>2$ be some prime number. Then
$$a^p \equiv a \pmod{2p} \iff 2p \mid a^p - a \iff 2\mid a^{p}-a \text{ and } p\mid a^p-a$$ The last equivalence holds because $2$ and $p$ are two different primes.
But $2\mid a^p-a$ for all $a$ and $p$: if $a$ is even, then clearly $a^p$ will be even as well; if $a$ is odd, then so is $a^p$ and hence $a^p-a$ will be even again. So this is indeed equivalent to
$$\dots \iff p\mid a^p-a \iff a^p \equiv a \pmod p.$$
-
Thanks for answer. – Mathlover Feb 4 '12 at 14:46
No actually it's a continuation of the chain of equivalences up above. So it should be read as $$a^p \equiv a \pmod{2p} \iff \dots \iff a^p\equiv a \pmod{p}$$ – Myself Feb 4 '12 at 14:51
This is the special case $\rm\ m = 2\:p,\ p\:$ odd, of the following generalization of Fermat's little theorem, quoted from Bill Dubuque's post
THEOREM $\$ For naturals $\rm\: k,m>1$
$\qquad\rm m\ |\ a^k-a\$ for all $\rm\:a\in\mathbb N\ \iff\ m\:$ is squarefree and prime $\rm\: p\:|\:m\: \Rightarrow\: p-1\ |\ k-1$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692284751636,
"lm_q1q2_score": 0.8649690097214321,
"lm_q2_score": 0.8856314753275019,
"openwebmath_perplexity": 167.033336835776,
"openwebmath_score": 0.8767497539520264,
"tags": null,
"url": "http://math.stackexchange.com/questions/105644/can-the-relation-of-ap-equiv-a-pmod-2p-if-p-prime-and-p2-be-added-to"
} |
# Computing $\int_0^\pi \sin(x) \; dx$ using the definition.
A colleague of mine and I, in the course of teaching integral calculus for the umpteenth time, were wondering if we could expand the class of examples that our students are exposed to when computing Riemann integrals from the definition. Most such examples involve polynomial functions, and they work nicely because we have some well-known formulas, like
$\displaystyle\sum_{i=1}^n 1 = n$,
$\displaystyle\sum_{i=1}^n i = \frac{n(n+1)}{2}$,
and $\displaystyle\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$. (And certainly, there are others.)
But we wanted to expand the class of examples beyond polynomial functions, and started to think about trig functions. We came up with a computation for $\int_0^\pi \sin(x)\;dx$ using the definition of the Reimann integral, which I provide below.
Question: Is the computation below in the literature somewhere? If so, where?
Computation:
Using a Riemann sum with right endpoints, we have
$$\int_{0}^\pi \sin(x)\; dx = \lim_{n \to \infty}\sum_{i=1}^n \sin(x_i) \Delta x$$ where $\Delta x = \frac{\pi}{n}$ and $x_i = i\Delta x$.
The trick is to rewrite the Riemann sum $\sum_{i=1}^n \sin(x_i) \Delta x$ as a telescoping sum using the difference of cosines identity: $$\cos(b) - \cos(a) = 2 \sin\left(\frac{a+b}{2}\right)\sin\left(\frac{a-b}{2}\right)$$
Setting $a = \frac{2i+1}{2}\Delta x$ and $b = \frac{2i-1}{2}\Delta x$ yields
$$\cos\left(\frac{2i-1}{2}\Delta x\right) - \cos\left(\frac{2i+1}{2}\Delta x\right) = 2 \sin\left(i \Delta x\right) \sin\left(\frac{\Delta x}{2}\right)$$
Solving for $\sin(i \Delta x)$ gives
$$\sin(i \Delta x) = \frac{\cos\left(\frac{2i-1}{2}\Delta x\right) - \cos\left(\frac{2i+1}{2}\Delta x\right)}{2 \sin\left(\frac{\Delta x}{2}\right)}$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
The Riemann sum now is $$\sum_{i=1}^n \sin(i \Delta x) \Delta x = \frac{\frac{\Delta x}{2}}{\sin\left(\frac{\Delta x}{2}\right)} \sum_{i=1}^n \left[\cos\left(\frac{2i-1}{2}\Delta x\right) - \cos\left(\frac{2i+1}{2}\Delta x\right)\right]$$
The latter sum is telescoping, and so $$\sum_{i=1}^n \sin(i \Delta x) \Delta x = \frac{\frac{\Delta x}{2}}{\sin\left(\frac{\Delta x}{2}\right)}\left[ \cos\left(\frac{\Delta x}{2}\right) - \cos\left(\frac{2n+1}{2}\Delta x\right)\right]$$
Now recalling that $\displaystyle \Delta x = \frac{\pi}{n}$ and taking $n \to \infty$ we have
\begin{align} \int_0^\pi \sin(x)\;dx &= \lim_{n \to \infty} \frac{\frac{\Delta x}{2}}{\sin\left(\frac{\Delta x}{2}\right)}\left[ \cos\left(\frac{\Delta x}{2}\right) - \cos\left(\frac{2n+1}{2}\Delta x\right)\right]\\ & = 1 \cdot \left[ \cos(0)-\cos(\pi)\right]\\ & = 2 \end{align}
One nice thing about this computation is that you can replace $\pi$ with an arbitrary upper limit of integration $c$ and compute that $\int_0^c \sin(x) \;dx = 1 - \cos(c)$. From there, one can easily compute $$\int_a^b \sin(x) \; dx = \int_0^b \sin(x) \; dx - \int_0^a \sin(x) \; dx = -\cos(b) + \cos(a)$$ (as predicted by FTC).
Question: Is the computation above in the literature somewhere? If so, where?
• I don't know, but our teacher made us do this. $\int_a^b \sin(x)\,dx$ from reimann sum I mean. – Guy Apr 3 '14 at 18:43
• This answer contains telescoping ideas. – Ian Mateus Apr 3 '14 at 18:43
• I haven't seen it in a textbook or anywhere else, but I did it once myself in order to see how the limit $\sin x/x \rightarrow 1$ would play into the calculation. – Jason Zimba Apr 3 '14 at 18:49
• Not exactly "literature", but the sum $\sum \sin(n)$ is telescoped using a similar trick in this answer in order to apply the Dirichlet test to the series $\sum \frac{\sin(n)}{n}$. – Mike F Apr 4 '14 at 16:34 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
Below are some references I found in my "math library" at home this morning. Before posting just now, I quickly searched to see which were online and I've included links for those I found. The Boyer paper URL is a JSTOR item I don't have access to, but I've included the URL anyway because many here are probably at colleges/universities that have JSTOR access.
At the risk of pointing out the obvious, this method doesn't prove the Riemann integrability of ${\sin x},$ since equal length partitions are used along with endpoint evaluations. For instance, under this restriction the limit of the Riemann sums of the characteristic function of the rationals on a given compact interval exists. What this calculation does is give the value of the (Reimann) integral on a given compact interval under the assumption that the integral exists.
Direct quotes from original sources are indicated by italics. Within such a quote: (1) italics in the original is indicated by non-italics here; (2) brief additions and/or words of further explanation by me are indicated by non-italics between square braces "[stuff by me]"; (3) omissions in the original are indicated using "$[\dots]$".
[1] [Author not known], Sur la sinussoide [On the sinusoid], Question D'Examen, Nouvelles Annales de Mathématiques (1) 7 (1848), 436-437. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
The (net) area above the $x$-axis and below the graph of $y = \sin{x},$ between $x = x_1$ and $x = x_2$ is found. The interval $[x_1, \, x_2]$ is divided into $n+1$ many abutting intervals each of length $h,$ so that $x_2 - x_1 = (n+1)h,$ and the identity $$h [\sin{x_1} + \sin{(x_1 + h)} + \sin{(x_2 + 2h)} + \cdots + \sin{(x_1 + nh)} \;\; = \;\; \frac{h \sin \left(x_1 + \frac{nh}{2}\right) \sin \frac{h}{2}(n+1)}{\sin{\frac{h}{2}}}$$ along with $\frac{nh}{2} = \frac{x_2 - x_1 - h}{2}$ is used to obtain the value $2\sin{\left(\frac{x_2 + x_1}{2}\right)} \sin{\left(\frac{x_2 - x_1}{2}\right)},$ which equals $\cos{x_1} - \cos{x_2}.$ Note: There is a typo at one point in the original, in which $\sin{(x_2 + h)}$ appears instead of $\sin{(x_2 + 2h)}.$ Also, the text only observes that the area's expression in terms of the sine function reduces to $1 - \cos{x_2}$ when $x_1 = 0.$
[2] William Elwood Byerly, Elements of the Integral Calculus, 2nd edition, Ginn and Company, 1892, xvi + 339 + 11 + 32 pages.
See Chapter VIII, Article 81, p. 76, Examples (2): By the aid of the trigonometrical formulas $$\cos{\theta} + \cos{2\theta} + \cos{3\theta} + \cdots + \cos{(n-1)\theta} = \frac{1}{2}\left[\sin{n\theta} \cot{\frac{\theta}{2}} - 1 - \cos{n\theta}\right],$$ [and] $$\sin{\theta} + \sin{2\theta} + \sin{3\theta} + \cdots + \sin{(n-1)\theta} = \frac{1}{2}\left[(1 - \cos{n\theta}) \cot{\frac{\theta}{2}} - \sin{n\theta}\right],$$ prove that $\;\;\int_{a}^{b}\cos{x}.dx = \sin{b} - \sin{a},\;$ and $\;\int_{a}^{b}\sin{x}.dx = \cos{a} - \cos{b}.$
[3] Carl Benjamin Boyer, History of the derivative and integral of the sine, Mathematics Teacher 40 #6 (October 1947), 267-275.
[4] Mark Bridger, A note on areas under a sine curve, The Pentagon 18 #1 (Fall 1958), 24-26.
At the time Mark Bridger was a student at the Bronx High School of Science (New York). | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
At the time Mark Bridger was a student at the Bronx High School of Science (New York).
[5] Richard Courant and Fritz John, Introduction to Calculus and Analysis, Volume I, John Wiley and Sons (Interscience Publishers), 1965, xxiv + 661 pages.
See Chapter 2.2.e (Integration of $\sin x$ and $\cos x$), p. 135.
[6] Godfrey Harold Hardy, A Course of Pure Mathematics, 10th edition, Cambridge University Press, 1952, xii + 509 pages.
See Chapter VII, Article 164, p. 320, item 3. Calculate $\int_{a}^{b}x^2 \, dx,$ $\int_{a}^{b} \cos{mx} \, dx$ and $\int_{a}^{b} \sin{mx} \, dx$ by the method of Ex. 1. Note: Hardy's reference to "the method of Ex. 1" is simply the method of partitioning the interval $[a,b]$ into finitely many equal length subintervals, forming the relevant Riemann sum, and taking a limit. The needed trigonometric identities are not given as a hint, but I do notice that a closely related identity appears in Exercise 4 at the top of p. 323 for another purpose.
[7] Kenneth Sielke Miller and John Breffni Walsh, Elementary and Advanced Trigonometry, Harper and Brothers, 1962, xii + 350 pages.
See Chapter 10.3 (Solution of the Area Problem), pp. 215-217: (begins) We now turn to the second problem mentioned at the beginning of the chapter, namely, that of finding the area under one arch of a sine curve.
[8] Isidor Pavlovich Natanson, Summation of Infinitely Small Quantities, Topics in Mathematics, D. C. Heath and Company, 1963, viii + 59 pages.
See Chapter 6 (The Sinusoid), Articles 26-35, pp. 46-57. Specifically, see Article 29 (A trigonometric sum), Article 30 (A subsidiary inequality), Article 31 (The sine of an infinitely small angle), and Article 32 (The quadrature of the sinusoid) on pp. 46-51. The remaining articles in this chapter involve applications, mainly in calculating the volume of a rotating sinusoid and calculating effective (electrical) current. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
[9] John Meigs Hubbell Olmsted, Intermediate Analysis. An Introduction to the Theory of Functions of One Real Variable, The Appleton-Century Mathematics Series, Appleton-Century-Crofts, 1956, xiv + 306 pages.
See Chapter 5, Article 503, p. 145, Exercise #19 & 20. The reader is asked to show that $\int_{a}^{b}\sin x \, dx = \cos{a} - \cos{b}$ and $\int_{a}^{b}\cos x \, dx = \sin{b} - \sin{a}$ by using equal length partitions of $[a,b].$ The relevant trig. identities are indirectly provided (by means of a hint, the reader is led to obtain these identities).
[10] Michael David Spivak, Calculus, 3rd edition, Publish or Perish, 1994, xiv + 670 pages.
See Chapter 15, p. 320, Problem 33.
[11] Isaac Todhunter, A Treatise on the Integral Calculus, 6th edition, MacMillan and Company, 1880, viii + 408 pages.
See Chapter IV, Article 38, pp. 52-53: (begins) Suppose we wish to find the integral of $\sin x$ between limits $a$ and $b$ immediately from the definition. By Art. 4 we have to find the limit $[\ldots]$ Note: The copy I found online is dated 1863, but what I've quoted seems to be the same calculation and it's in the same location in the book.
[12] Edwin Bidwell Wilson, Advanced Calculus, Ginn and Company, 1911, x + 566 pages.
See Chapter I, p. 30, Exercise 9. With the aid of the trigonometric formulas $[\ldots]$ show $(\alpha) \; \int_{a}^{b} \cos{x}\,dx = \sin{b} - \sin{a},\;\;$ [and] $\;\;(\beta) \; \int_{a}^{b} \sin{x}\,dx = \cos{a} - \cos{b}.$
(ADDED 3 DAYS LATER) I thought it would be useful to archive in my answer some references for evaluating definite integrals of other functions by Reimann sums. However, because I want to get this finished during my lunch hour and I don't want to substantially increase the length of this already long answer, I will use briefer citations.
Harding/Barnett, Solution to Calculus Problem #369, Amer. Math. Monthly 22 #6 (June 1915), 208-210. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
Harding/Barnett, Solution to Calculus Problem #369, Amer. Math. Monthly 22 #6 (June 1915), 208-210.
Two solutions for the evaluation of $\int_{a}^{b} \ln{x}\,dx$. The second solution makes use of Fermat's method of geometric subdivision of the interval $[a,b].$
Barnett, Solution to Calculus Problem #366, Amer. Math. Monthly 22 #5 (May 1915), 168-169.
One solution for the evaluation of $\int_{a}^{b}{\sin}^{-1}x\,dx.$
Eli Maor, On the direct integration $\int_{a}^{b}x^{n}\,dx,$ Int. J. Math. Educ. Sci. Technol. 5 (1974), 199-200.
The method involves working with the sum of the left endpoint sums and the right endpoint sums. The method might be similar to what Otto Dunkel does in Note on the quadrature of the parabola, Amer. Math. Monthly 27 #3 (March 1920), 116-117.
Finally, the following are similar to the kind of things found in Natanson's Summation of Infinitely Small Quantities:
W. R. Longley, Some limit proofs in solid geometry, Amer. Math. Monthly 31 #4 (April 1924), 196-202.
Joseph B. Reynolds, Some applications of algebra to theorems in solid geometry, Mathematics Teacher 18 #1 (January 1925), 1-9.
Jos. B. Reynolds, Finding plane areas by algebra, Mathematics Teacher 21 #4 (April 1928), 197-203.
• This is a great list of references! Thanks! – wckronholm Apr 4 '14 at 14:39
I suspect Tom Apostol's calculus textbook has this (i.e., finds $\int_0^\pi\sin x\,dx$ by using limits of Riemann sums without the fundamental theorem). | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
I question the place of Riemann sums in the curriculum. Rigorous definitions are unsuitable for a calculus-for-liberal-education course unless the students are unusual. Such a course should acquaint students with the reason why calculus is important in the course of human events over recent and coming centuries, and with the fact that it overcame difficulties like how to define $\text{rate} = \dfrac{\text{distance}}{\text{time}}$ when the distance and the time are both $0$, and how to to find $$\sum\text{force}\times\text{distance}$$ when there are infinitely many infinitely small distances, each with its own value of "force". The conventional calculus course is a watered-down version of a course for students who come in with a prior desire or a pre-identified need to understand calculus, rather than for students who are there in order to pay a price in homework for a grade to impress employers, and whom one should be trying to seduce into another course of action.
If you expect students to marvel at the fact that it's possible to find this integral by using limits of Riemann sums, I expect the way they will think of it and remember it is "We did some technical stuff and turned it in and got graded", and if you have them plod through finding the integral by antidifferentiating and substituting endpoint values, then the way they will think of it and remember it is "We did some technical stuff and turned it in and got graded", and they won't know the difference. (I'm hoping for a malpractice suit against every university that knowingly encourages unqualified students to take calculus, to the point where those are 99.9% of the ones who show up. They bring in tuition money.)
Another occasion for Riemann sums is numerical integration, but that doesn't seem to be your purpose. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
• Apostol's book gives the formulas for $\int_a^b \sin(x)\;dx$ and $\int_a^b \cos(x)\;dx$ followed by the statement "we shall not prove these formulas at this stage because they will be derived by an easier method in Chapter 2, with the help of differential calculus." – wckronholm Apr 3 '14 at 18:55
• @wckronholm : OK. Apostol's book may still be a place to look if anyone wants similar material. Also, maybe Otto Toeplitz' "genetic approach" calculus book. – Michael Hardy Apr 3 '14 at 18:58
• $99.9\%$ may be unduly pessimistic. Perhaps I will be accused of being a rosy-eyed optimist, but $95\%$ seems more reasonable. – André Nicolas Apr 3 '14 at 19:15
• @AndréNicolas : Depends on which institution. There are colleges that think of themselves as selective, at which the students are hard-working and intelligent, but have attitudes about math courses: They exist in order to provide an opportunity to show that they can follow instruction and work hard and get a grade, and they've always gotten "A"s in math, and they demand their right to get a course consisting of algorithms for them to follow to get an "A". – Michael Hardy Apr 3 '14 at 19:36
• @MichaelHardy I actually had my class run through this computation in small groups in class today. While it's true that many of them were longing for the Fundamental Theorem of Calculus they "learned" in high school and could give them the answer in about 5 seconds, there were more than a few who really were appreciating all of the pieces that went into the computation. In general, I think students benefit from exposure to this sort of activity because of the potential to broaden their reasoning skills. – wckronholm Apr 3 '14 at 20:15 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
Alternatively, you can use $e^{i \theta} = \cos(\theta) + i \sin(\theta)$ and the partial sum formula for Geometric series. Using left endpoint approximation instead, the sum we want to evaluate is $$\sum_{k=0}^{n-1} \sin(k \, \Delta x)\,\Delta x$$ where $\Delta x = \frac{\pi}{n}$. Note that $\sum_{k=0}^{n-1} \sin(k \,\Delta x)$ is the imaginary part of $\sum_{k=0}^{n-1} e^{i k \,\Delta x}$, that is $\sum_{k=0}^{n-1} z^k$ where $z = e^{i \,\Delta x}$. This last sum has the closed form $\frac{1-z^n}{1-z} = \frac{2}{1-z}$ using $z^n = e^{i \pi} = -1$. We get $$\sum_{k=0}^{n-1} \sin(k \,\Delta x)\,\Delta x =\mathrm{Im}\left( \frac{2}{1-e^{i\, \Delta x}} \right) \,\Delta x = \mathrm{Im}\left( \frac{2\,\Delta x}{1-e^{i \,\Delta x}} \right).$$ Finally, letting $n \to \infty$ so that $\Delta x \to 0$ we get $$\lim_{\Delta x \to 0} \frac{2\,\Delta x}{1-e^{i \,\Delta x}} = -2\left( \lim_{\Delta x \to 0 } \frac{e^{i \,\Delta x} - 1}{\Delta x} \right)^{-1} = -2\left( \frac{d}{dt} e^{it} \big|_{t=0} \right)^{-1} = -2i^{-1} = 2i$$ so that $$\lim_{n \to \infty} \sum_{k=0}^{n-1} \sin(k \,\Delta x)\,\Delta x = \operatorname{Im}(2i) = 2.$$
• Thanks. We were aware of this method already, and wanted to find an approach which did not rely on complex numbers. – wckronholm Apr 4 '14 at 16:05
• @wckronholm: That makes sense, just thought I'd add it. – Mike F Apr 4 '14 at 16:28
• @wckronholm: It has probably occurred to you already, but if you don't want to use complex numbers, you can still do integrals like $\int_0^1 e^x \ dx$ using geometric series. – Mike F Apr 4 '14 at 16:29
• Thanks, that has indeed occurred to me, and I will be showing this to my students in about 20 minutes! – wckronholm Apr 4 '14 at 16:39 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692264378963,
"lm_q1q2_score": 0.8649690049689623,
"lm_q2_score": 0.8856314723088732,
"openwebmath_perplexity": 643.5405233032401,
"openwebmath_score": 0.855930745601654,
"tags": null,
"url": "https://math.stackexchange.com/questions/738574/computing-int-0-pi-sinx-dx-using-the-definition"
} |
# Binomial formula modulo a prime.
Let $p$ be a prime. I see that modulo $p$, the binomial formula reduces to $$(x+y)^p\equiv x^p+y^p \pmod p$$ because $p \choose k$ is a multiple of $k$ whenever $k=1..p-1$, but don't we have by Fermat's little theorem that $a^p\equiv a \pmod p$ for any integer $a$ and so this is true for $a=x+y$ hence the binomial formula reduces to $(x+y)^p\equiv x+y \pmod p$. Thanks for your help!
• Yes, but you also get $(x+y)^p\equiv x+y \mod p$ straight from FLT without binomial theorem at all. – user281392 Oct 30 '15 at 21:24
• Both are true. $(x+y)^p$ is congruent to $x^p + y^p$ modulo $p$. Now by Fermat's little theorem, $x^p$ is congruent to $x$ and $y^p$ is congruent to $y$ modulo $p$, and so $x^p + y^p$ is congruent to $x + y$ modulo $p$. – Dylan Oct 30 '15 at 21:24
• @user281392. Very nice observation. +1 – Shailesh Oct 31 '15 at 2:56
Yes, everything that you have written is true. It is the case that $$(x+y)^p \equiv x^p+y^p \mod p$$ using the Binomial Theorem, and it is also true that $$(x+y)^p \equiv x+y \mod p$$ by Fermat's Little Theorem.
There is not contradiction here because by Fermat's Little Theorem, we have that $$x^p \equiv x \mod p \quad\text{ and }\quad y^p \equiv y \mod p$$ and so $$x^p+y^p\equiv x+y \mod p$$ as we expect.
Your observation that $$(x+y)^p \equiv x^p+y^p \mod p$$ by the Binomial Theorem is sometimes used to prove Fermat's Little Theorem by induction. The (complete) proof is as follows: | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692311915194,
"lm_q1q2_score": 0.8649690018084162,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 47.01400879872019,
"openwebmath_score": 0.9774091243743896,
"tags": null,
"url": "https://math.stackexchange.com/questions/1505605/binomial-formula-modulo-a-prime/1505851"
} |
First we show, as noted by you, that $p \mid \binom{p}{k}$ for $1 \leq k < p$. We can prove this either by considering the factors of $p$ in the numerator and denominator of $\binom{p}{k}$, or by noticing that $$\binom{p}{k} = \frac{p}{k}\binom{p-1}{k-1}$$ Thus $$k \mid p\binom{p-1}{k-1}$$ and since $k$ and $p$ are relatively prime, we get that $$k \mid \binom{p-1}{k-1}$$ showing that $$\frac{1}{k}\binom{p-1}{k-1}$$ is an integer, and so $$\binom{p}{k} = p \cdot \frac{1}{k}\binom{p-1}{k-1}$$ is an integer divisible by $p$.
As you noted in your question, $$(x+y)^p = \sum_{k=0}^p \binom{p}{k} x^k y^{p-k} = x^p + y^p + \sum_{k=1}^{p-1} \binom{p}{k} x^k y^{p-k}$$ Since every term in the final sum is divisble by $p$, we get that $$(x+y)^p \equiv x^p + y^p \mod p$$ and this holds for all integers $x$ and $y$.
We can now prove by induction that $$x^p \equiv x \mod p$$ for all integers $x$. The base case of $x=0$ is straightforward since $0^p=0$. Now suppose that $x^p \equiv x \mod p$ for some $x$. Then we have that $$(x+1)^p \equiv x^p + 1^p \equiv x+1$$ using our observation above, and the inductive hypothesis.
Thus the claim holds for $x+1$ as well, and hence for all natural numbers by induction. For the negative integers, we can note that if $x$ is a positive integer then $$(-x)^p = (-1)^p x^p \equiv -x \mod p$$ Here, we use that $x^p \equiv x \mod p$, and also that $(-1)^p \equiv -1 \mod p$, since if $p$ is odd then $(-1)^p = -1$, and if $p=2$ then $(-1)^p = 1 \equiv -1 \mod 2$.
Yes, good point. If $x$ and $y$ are integer, we can simply write $(x+y)^p = x + y \mod p$.
However, the formula $(x+y)^p \equiv x^p + y^p \mod p$ is also interesting because it applies not only to elements of $\mathbb{Z}/p\mathbb{Z}$, but also to any commutative algebra over $\mathbb{Z}/p\mathbb{Z}$ (for example, you may apply it to polynomials with coefficients in $\mathbb{Z}/p\mathbb{Z}$, or for field extensions of $\mathbb{Z}/p\mathbb{Z}$). | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692311915194,
"lm_q1q2_score": 0.8649690018084162,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 47.01400879872019,
"openwebmath_score": 0.9774091243743896,
"tags": null,
"url": "https://math.stackexchange.com/questions/1505605/binomial-formula-modulo-a-prime/1505851"
} |
You have to show that $p \mid \binom{p}{k}$ when $1 < k < p$. We have: $k!(p-k)! \mid p!=p(p-1)!$ Using unique prime factorization we can write: $k!(p-k)! = a_1^{n_1}\cdot a_2^{n_2}\cdots a_m^{n_m}$ with the $a_i$'s are distinct primes smaller than $p$, and none of the factors divide $p$ since $a_i\nmid p$. Thus $a_i^{n_i} \mid (p-1)!$,and since these factors are pairwise coprime, we have $k!(p-k)! \mid (p-1)!$, this shows $p \mid \binom{p}{k}$, and the conclusion follows from this fact. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692311915194,
"lm_q1q2_score": 0.8649690018084162,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 47.01400879872019,
"openwebmath_score": 0.9774091243743896,
"tags": null,
"url": "https://math.stackexchange.com/questions/1505605/binomial-formula-modulo-a-prime/1505851"
} |
# Distribution over the product of three, or n, independent Beta random variables
I would like to calculate the PDF for the product of three independent Beta random variables. Specifically, I would like to find the distribution of the product of the following: $X_1\sim Beta(1,3/2)$, $X_2\sim Beta(3/2,1)$ and $X_3\sim Beta(2,1/2)$.
I can manage to get Mathematica to output a distribution for the case of the the product $X_1 X_2$ by doing the following:
PDF[TransformedDistribution[
u v w, {u \[Distributed] BetaDistribution[1, 3/2],
This takes a few minutes to evaluate. However, when I move to $X_1 X_2 X_3$ Mathematica seems to be eternally stuck on the calculation:
PDF[TransformedDistribution[
u v w, {u \[Distributed] BetaDistribution[1, 3/2],
I could approximate this by a large number of draws from the distributions of $X_1$, $X_2$ and $X_3$; multiplying each set together. However, I would like the analytic form.
Does anyone have any idea how I can do this? The reason I state $n$ in the question is because I would like eventually to generalise this calculation to the product of more $Beta$ random variables.
Best,
Ben
• Might have better luck getting an answer on current SOTA for this over at Math.StackExchange.Com, then writing appropriate MMA code. I don't expect you'll find a compact/low computational complexity solution. – ciao Aug 11 '15 at 22:09
• It has been a while since I've done something like this but if I recall correctly you may be able to do this quicker using the moment generation function of the Beta distributions, performing the product on these, and then matching that form to the form of a know distribution's moment generating function. – Edmund Aug 11 '15 at 22:16
• Here's a useful reference - extends earlier work that required integer parameters to (relatively) arbitrary parameters... – ciao Aug 11 '15 at 22:23
• @Edmund good luck with that. – wolfies Aug 12 '15 at 8:06 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
Here is an answer that does not use a 3rd party package and works for an arbitrary amount of Beta distributions.
You can make use of a closed form for the product of n Beta distributions from the Handbook of Beta Distribution and Its Applications, Products and Linear Combinations, I. Products, B. Exact Distributions as found on page 57.
This expresses a product of n Beta distributions as the product of a constant $K$ (a function of the Beta distributions parameters in $\Gamma$ functions) and a Meijer-G function of the Beta distribution parameters.
ClearAll[pdfProductBeta];
pdfProductBeta[
α_ /; VectorQ[α, NumericQ],
β_ /; VectorQ[β, NumericQ],
x_Symbol] /; Dimensions[α] == Dimensions[β] :=
Module[{k},
k = Times @@ (Gamma[Plus @@ #]/Gamma[#[[1]]] & /@ (Transpose@{α, β}));
k MeijerG[{{}, α + β - 1}, {α - 1, {}}, x]
]
For the three Beta distributions in the question
a = {1, 3/2, 2}; b = {3/2, 1, 1/2};
pdfProductBeta[a, b, x]
(* 27/32 π MeijerG[{{}, {3/2, 3/2, 3/2}}, {{0, 1/2, 1}, {}}, x] *)
This result matches to @wolfies answer above that makes use of the mathStatica 3rd party package.
The two Beta case plots quickly so we can compare this easily to the TransfromedDistribution PDF from the built in Mathematica functions.
tpdf = PDF[
TransformedDistribution[
u v, {u \[Distributed] BetaDistribution[1, 3/2],
a = {1, 3/2}; b = {3/2, 1};
mpdf = pdfProductBeta[a, b, x];
GraphicsRow[
Plot[#, {x, 0, 1}, PlotRangePadding -> None] & /@ {tpdf, mpdf}]
For the three Beta case we need to limit the upper bound in the plot as it takes very long to calculate there.
a = {1, 3/2, 2}; b = {3/2, 1, 1/2};
mpdf3 = pdfProductBeta[a, b, x];
(* evaluate pdf at a point *)
mpdf3 /. x -> 0.5
(* 0.479319 *)
Plot[mpdf3, {x, 0, 0.9}, Exclusions -> {0}, AxesOrigin -> {0, 0},
PlotRangePadding -> None, PlotRange -> Full]
With the pdfProductBeta function you can construct the pdf for the product of an arbitrary number of Beta distributions without the need of a third party package. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
Hope this helps.
• Very nice indeed to have a general solution from the Handbook of Beta Distribution -- I would go further and say that your answer not only constructs the pdf of the product of Beta random variables without the need of an add-on package, ... it does so without needing Mathematica either. – wolfies Aug 12 '15 at 14:03
• @wolfies Well ... I wouldn't want to try constructing, evaluating, or <cringe> plotting it without Mma. :-) It quickly gets process heavy for small $n$. – Edmund Aug 12 '15 at 14:09
• Note that this is no longer needed in version 11 and above as TransformedDistribution directly uses the above method for a product of BetaDistributions. – Edmund Apr 8 '17 at 13:18
Let random variable $X_i \sim Beta(a_i,b_i)$, with pdf $f_i(x_i)$. The OP is interested in 3 specific parameter combinations:
The pdf of $Y = X_2 X_3$, say $g(y)$, is:
where I am using the TransformProduct function from the mathStatica package for Mathematica, and where domain[g] = {y,0,1}.
The pdf of $Z = X_1 X_2 X_3 = Y* X_1$, say $h(z)$, is then:
All done.
Quick Monte Carlo check
It is always a good idea to check symbolic solutions with Monte Carlo methods.
The following plot compares:
• the exact symbolic solution pdf obtained $h(z)$ [ red dashed curve ], to
• an empirical Monte Carlo simulation of the pdf [ blue squiggly curve ]
All looks good. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
• an empirical Monte Carlo simulation of the pdf [ blue squiggly curve ]
All looks good.
• That Meijer's function had to show up indicates that things are not too simple. Tho, those parameters look familiar… what happens if you apply FunctionExpand[]? – J. M. will be back soon Aug 12 '15 at 9:15
• Applying FunctionExpand returns the same MeijerG function. I might add that it appears tractable for most of the domain ... but trying to plot it for $x$ close to 1 becomes very slow (which is also why that is 'left out' in the diagram above). – wolfies Aug 12 '15 at 11:44
• Ah, that part I can explain; the contour integration being done under the hood converges rather slowly when the argument is near $1$. A pity that there does not seem to be a simpler form (and I was so sure that there was)… – J. M. will be back soon Aug 12 '15 at 11:46
• @J. M. What is the reason the contour integration converges so slowly near 1? I am trying to generate points of the pdf near there, and was wondering if you had any ideas? – ben18785 Aug 12 '15 at 14:19
• @ben, it's an inherent limitation of the contour integral method for the $G$-function. (The situation is similar to the one for generalized hypergeometric functions; arguments near $1$ are often very difficult cases, numerically speaking.) That's why I was hoping there might be expressions in terms of simpler special functions. I do not have Mathematica at hand to investigate further, unfortunately. – J. M. will be back soon Aug 12 '15 at 15:04
The problem can indeed be solved explicitly for the product of n = 3 Beta-distributed variables and the explicit parameters of the OP.
In part 1 I show only the results, and turn later, in part 2, to the details of calculation in Mathematica, part 3 is discussion.
Part 1 Results
The PDF of the Beta distribution is given by
f[x_, a_, b_] = Simplify[PDF[BetaDistribution[a, b], x], 0 < x < 1]
(*
((1 - x)^(-1 + b) x^(-1 + a))/Beta[a, b]
*) | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
(*
((1 - x)^(-1 + b) x^(-1 + a))/Beta[a, b]
*)
Let the random variables and their rescpective distributions be X1 ~ Beta(1,3/2) , X2 ~ Beta(3/2,1) and X3 ~ Beta(2,1/2), and let
f2n(x) = dist( X1*X2 )
f3n(x) = dist( X1*X2*X3 )
be the requested distributions.
Then we find
f2n[x_] = 9/2 (Sqrt[1 - x] - Sqrt[x] ArcTan[Sqrt[-1 + 1/x]]);
f3n[x_] = 27/4 (EllipticE[1 - x] - x EllipticK[1 - x]) -
27/16 \[Pi] MeijerG[{{}, {3/2, 3/2, 3/2}}, {{1/2, 1, 1}, {}}, x];
The functions are normalized
Integrate[f2n[x], {x, 0, 1}]
(* 1 *)
Integrate[f3n[x], {x, 0, 1}]
(* 1 *)
A plot of the two functions is shown here
Plot[{f2n[x], f3n[x]}, {x, 0.0001, 0.9}, PlotRange -> {{0, 1}, {0, 4}},
PlotLabel ->
"Distributions of the product of\ntwo (yellow) and three (blue)\nbeta \
distributed random variables", AxesLabel -> {"x", "f(x)"}]
(* 150812_Plot_Prod_Beta_dist.jpg *)
Since with the Meijer function Mathematica requires very long calculation times close to x = 1 I have left this region out.
Observations
1) I believe that the case of general n should be tackled using the Mellin transformation, as is natural for products (as is Fourier for sums). Our result for n = 3, the MeijerG function, already exhibits this pattern.
Part 2: Derivation
The distributions were calculated here using the general formula
fn(x) = Integrate( Prod( du f(u,p)) DiracDelta(x-Prod(u)) )
Details will be given later.
Part 3: Discussion
Let me rather start a brief discussion suggested by a comment of Guess who it is.
2.1) The result of wolfie (which I saw only after having finished my calculations) is
f3wolfie[x_] :=
27/32 \[Pi] MeijerG[{{}, {3/2, 3/2, 3/2}}, {{0, 1/2, 1}, {}}, x]
which is not identical at first sight with my result
f3wolfgang[x_] :=
27/4 (EllipticE[1 - x] - x EllipticK[1 - x]) -
27/16 \[Pi] MeijerG[{{}, {3/2, 3/2, 3/2}}, {{1/2, 1, 1}, {}}, x]
But the functions indeed coincide as can be seen in a plot, or some clever FullSimplify? | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
But the functions indeed coincide as can be seen in a plot, or some clever FullSimplify?
For f3n[x], the last step in my calculation was this integral
Integrate[27/8 (
Sqrt[-((w x)/(-1 + w))] (Sqrt[-1 + w/x] - ArcCos[Sqrt[x/w]]))/w, {w, x, 1},
Assumptions - 0 < x < 1]
and the two terms in f3wolfgang correspond to the two terms in the this integrand.
2.2) Behaviour close to x = 1
As I haven't found a quick answer in the literature I tackled the poblem "experimentally":
Numerically my solution can be respresented as
f3nn[x_]:=NIntegrate[
27/8 ( Sqrt[-((
w x)/(-1 + w))] (Sqrt[-1 + w/x] - ArcCos[Sqrt[x/w]]))/w, {w, x,
1}]
Plotting this close to 1 with a negative power of (1-x) attached
Plot[1/(1 - x)^k f3nn[x], {x, 0.5, 1.1}]
and playing with k close to 2 shows that f3nn[x] ~= const (1-x)^2. I suspect even that k = 2 is exact because only for this value the function exhibits a sharp shoulder.
Afterwards I found (after some lengthy study) the exact behaviour of the constant to be 27 Pi/16, i.e. the distribution function has the series Expansion
f3n[x] = 27/64 \[Pi] (1 - x)^2 + O[1 - x]^3
Also, the MeijerG-function has the series expansion
MeijerG[{{}, {3/2, 3/2, 3/2}}, {{1/2, 1, 1}, {}}, x] == (1 - x) -
1/8 (1 - x)^2 + O[1 - x]^3
Remark: the developemnts here show that there is a simple integral representation of the MeijerG function, much simpler than the complex integral version. We have
MeijerG[{{}, {3/2, 3/2, 3/2}}, {{1/2, 1, 1}, {}}, x] = 2/Pi Integrate[
27/8 ( Sqrt[-((w x)/(-1 + w))] (Sqrt[-1 + w/x]
- ArcCos[Sqrt[x/w]]))/w, {w, x, 1}]
The difficulties of Mathematica calculating the numerical values close to 1 have been overcome by this representation and the series expansion. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
• "using the Mellin transformation" - with the Meijer result, this is what you're implicitly doing anyway, since the $G$-function is effectively an inverse Mellin transform… – J. M. will be back soon Aug 12 '15 at 12:29
• I have been busy doing the calculations and the editing so I did't see the resuls of wolfie. Sorry for that. – Dr. Wolfgang Hintze Aug 12 '15 at 12:30
• @J. M.: that's what I was - cautiously - saying ;-) – Dr. Wolfgang Hintze Aug 12 '15 at 12:34
• The reason why I had mentioned that the Meijer result looked familiar in the other answer is that it resembled some of the Mellin-Barnes representations for elliptic integrals that I remember; your result, which at least involves the complete elliptic integrals, seems to be tantalizing. – J. M. will be back soon Aug 12 '15 at 12:41
• Some nice reference to MeijerG is ams.org/notices/201307/rnoti-p866.pdf pointing out specifically the closure under convolutions. – Dr. Wolfgang Hintze Aug 12 '15 at 13:20 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692305124306,
"lm_q1q2_score": 0.8649690012069938,
"lm_q2_score": 0.8856314647623015,
"openwebmath_perplexity": 1678.0706061135265,
"openwebmath_score": 0.5556476712226868,
"tags": null,
"url": "https://mathematica.stackexchange.com/questions/91407/distribution-over-the-product-of-three-or-n-independent-beta-random-variables/91441"
} |
Join us for MBA Spotlight – The Top 20 MBA Fair Schedule of Events | Register
It is currently 04 Jun 2020, 14:48
GMAT Club Daily Prep
Thank you for using the timer - this advanced tool can estimate your performance and suggest more practice questions. We have subscribed you to Daily Prep Questions via email.
Customized
for You
we will pick new questions that match your level based on your Timer History
Track
every week, we’ll send you an estimated GMAT score based on your performance
Practice
Pays
we will pick new questions that match your level based on your Timer History
Three men and eight machines can finish a job in half the time taken
Author Message
TAGS:
Hide Tags
Math Expert
Joined: 02 Sep 2009
Posts: 64275
Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 02:27
00:00
Difficulty:
45% (medium)
Question Stats:
63% (03:18) correct 37% (03:06) wrong based on 38 sessions
HideShow timer Statistics
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job. If two machines can finish the job in 13 days, then how many men can finish the job in 13 days?
A. 10
B. 11
C. 12
D. 13
E. 14
Project PS Butler
Are You Up For the Challenge: 700 Level Questions
_________________
GMAT Club Legend
Joined: 18 Aug 2017
Posts: 6314
Location: India
Concentration: Sustainability, Marketing
GPA: 4
WE: Marketing (Energy and Utilities)
Re: Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 02:49
rate of one machine ; 13*2 ; 26 days
and rate of man ; x
3/x+8/26 = 2*(8/x+3/26)
solve for x
we get x= 169
so in 13 days ; 169/13 ; 13 men would be required
IMO D | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137910906878,
"lm_q1q2_score": 0.8649548884813651,
"lm_q2_score": 0.8807970889295664,
"openwebmath_perplexity": 3978.6674939283994,
"openwebmath_score": 0.7212691903114319,
"tags": null,
"url": "https://gmatclub.com/forum/three-men-and-eight-machines-can-finish-a-job-in-half-the-time-taken-319880.html"
} |
Bunuel wrote:
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job. If two machines can finish the job in 13 days, then how many men can finish the job in 13 days?
A. 10
B. 11
C. 12
D. 13
E. 14
Project PS Butler
Are You Up For the Challenge: 700 Level Questions
CR Forum Moderator
Joined: 18 May 2019
Posts: 811
Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 02:50
1
time taken by 3Men + 8 Machines = half * time taken by 3 machines + 8 men
In other words time taken by 3 men + 8 machines = time taken by 6 machines + 16 men
Two machines can finish the work in 13 days means that one machine can finish the work in 26 days.
let the time take for a man to finish the work be x, then
3/x + 8/26 = 6/26 + 16/x
2/26 = 13/x
x = 13*13
Hence 13 men will take 13*13/13 = 13 days.
GMAT Club Legend
Status: GMATINSIGHT Tutor
Joined: 08 Jul 2010
Posts: 4049
Location: India
GMAT: QUANT EXPERT
Schools: IIM (A)
GMAT 1: 750 Q51 V41
WE: Education (Education)
Re: Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 03:01
1
Bunuel wrote:
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job. If two machines can finish the job in 13 days, then how many men can finish the job in 13 days?
A. 10
B. 11
C. 12
D. 13
E. 14
Find Video Solution With CONCEPT EXPLAINED and DERIVED | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137910906878,
"lm_q1q2_score": 0.8649548884813651,
"lm_q2_score": 0.8807970889295664,
"openwebmath_perplexity": 3978.6674939283994,
"openwebmath_score": 0.7212691903114319,
"tags": null,
"url": "https://gmatclub.com/forum/three-men-and-eight-machines-can-finish-a-job-in-half-the-time-taken-319880.html"
} |
A. 10
B. 11
C. 12
D. 13
E. 14
Find Video Solution With CONCEPT EXPLAINED and DERIVED
_________________
Prosper!!!
GMATinsight .............(Bhoopendra Singh and Dr.Sushma Jha)
e-mail: info@GMATinsight.com l Call : +91-9999687183 / 9891333772
One-on-One Skype classes l Classroom Coaching l On-demand Quant course l Admissions Consulting
Check website for most affordable Quant on-Demand course 2000+ Qns (with Video explanations)
Our SUCCESS STORIES: From 620 to 760 l Q-42 to Q-49 in 40 days l 590 to 710 + Wharton l
ACCESS FREE GMAT TESTS HERE:22 FREE (FULL LENGTH) GMAT CATs LINK COLLECTION
GMATWhiz Representative
Joined: 07 May 2019
Posts: 722
Location: India
Re: Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 03:33
1
Bunuel wrote:
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job. If two machines can finish the job in 13 days, then how many men can finish the job in 13 days?
A. 10
B. 11
C. 12
D. 13
E. 14
Project PS Butler
Are You Up For the Challenge: 700 Level Questions
Solution:
Let A and B be the per day work of one man and one machine respectively
• Work done by 3 men and 8 machines in one day = 3A + 8B
• Work done by 8 men and 3 machines in one day = 8A + 3B
o Time taken to complete the work by 3 men and 8 machines is half time by 8 men and 3 machines
o Work done by 3 men and 8 machines in one day is twice of the work done by 8 men and 3 machines in one day
o $$3A + 8B = 2(8A + 3B)$$
o $$3A +8B = 16A + 6B$$
o $$8B-6B = 16A – 3A$$
o $$2B = 13A$$
• Work done by 2 machines in one day is equal to the work done by 13 men in one day.
• 2 machines can complete the job in 13 days
o 13 men can complete the job in 13 days
Hence, the correct answer is Option D.
_________________
GMAT Prep truly Personalized using Technology | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137910906878,
"lm_q1q2_score": 0.8649548884813651,
"lm_q2_score": 0.8807970889295664,
"openwebmath_perplexity": 3978.6674939283994,
"openwebmath_score": 0.7212691903114319,
"tags": null,
"url": "https://gmatclub.com/forum/three-men-and-eight-machines-can-finish-a-job-in-half-the-time-taken-319880.html"
} |
GMAT Prep truly Personalized using Technology
Prepare from an application driven course that serves real-time improvement modules along with a well-defined adaptive study plan. Start a free trial to experience it yourself and get access to 25 videos and 300 GMAT styled questions.
Score Improvement Strategy: How to score Q50+ on GMAT | 5 steps to Improve your Verbal score
Study Plan Articles: 3 mistakes to avoid while preparing | How to create a study plan? | The Right Order of Learning | Importance of Error Log
Helpful Quant Strategies: Filling Spaces Method | Avoid Double Counting in P&C | The Art of Not Assuming anything in DS | Number Line Method
Key Verbal Techniques: Plan-Goal Framework in CR | Quantifiers the tiny Game-changers | Countable vs Uncountable Nouns | Tackling Confusing Words in Main Point
Intern
Joined: 27 Feb 2018
Posts: 2
Schools: Neeley '22
GMAT 1: 560 Q45 V23
GPA: 3.05
Re: Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags
31 Mar 2020, 04:17
1
Since, TEAM-1 (3 men and 8 machines) can finish a job in half the time taken by TEAM-2 (3 machines and 8 men) to finish the same job, we can express the TWO TEAM'S CAPACITY through the following equation:
3 MEN+ 8 MACHINES= 2 (3 MACHINES+ 8 MEN)
=> 3 MEN+8 MACHINES= 6 MACHINES+16 MEN
=>8 MACHINES- 6 MACHINES= 16 MEN- 3 MEN
=> 2 MACHINES=13 MEN
Therefore, we can infer that THE CAPACITY OF TWO MACHINES IS EQUIVALENT TO THAT OF 13 MEN.
Hence, it requires 13 men to complete what can be done by 2 machines in the same amount of time.
Bunuel, please convey me whether my approach is efficient.
SVP
Joined: 20 Jul 2017
Posts: 1506
Location: India
Concentration: Entrepreneurship, Marketing
WE: Education (Education)
Re: Three men and eight machines can finish a job in half the time taken [#permalink]
Show Tags | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137910906878,
"lm_q1q2_score": 0.8649548884813651,
"lm_q2_score": 0.8807970889295664,
"openwebmath_perplexity": 3978.6674939283994,
"openwebmath_score": 0.7212691903114319,
"tags": null,
"url": "https://gmatclub.com/forum/three-men-and-eight-machines-can-finish-a-job-in-half-the-time-taken-319880.html"
} |
Show Tags
31 Mar 2020, 09:20
1
Bunuel wrote:
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job. If two machines can finish the job in 13 days, then how many men can finish the job in 13 days?
A. 10
B. 11
C. 12
D. 13
E. 14
two machines can finish the job in 13 days
--> 1 machine can complete a job in 26 days
Let 1 man complete a job in '$$m$$' days
Three men and eight machines can finish a job in half the time taken by three machines and eight men to finish the same job
--> $$\frac{3}{m} + \frac{8}{26} = 2(\frac{3}{26} + \frac{8}{m})$$
--> $$\frac{8}{26} - \frac{6}{26} = \frac{16}{m} - \frac{3}{m}$$
--> $$\frac{1}{13} = \frac{13}{m}$$
--> $$m = 169$$ days
Number of men required to finish the job in 13 days = $$\frac{169}{13} = 13$$ men
Option D
Re: Three men and eight machines can finish a job in half the time taken [#permalink] 31 Mar 2020, 09:20 | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137910906878,
"lm_q1q2_score": 0.8649548884813651,
"lm_q2_score": 0.8807970889295664,
"openwebmath_perplexity": 3978.6674939283994,
"openwebmath_score": 0.7212691903114319,
"tags": null,
"url": "https://gmatclub.com/forum/three-men-and-eight-machines-can-finish-a-job-in-half-the-time-taken-319880.html"
} |
# Definition of continuity not clear
According to my book continuity is (informally) defined as follows:
Function $f$ is continuous at $c$ iif it is both right continuous and left continuous at $c$.
Now according to the book the function $f(x) = \sqrt{4 - x^2}$ is continuous at every point of its domain, $[-2, 2]$. I understand this holds for $(-2, 2)$,but what about the endpoints?
If I look at the definition and consider the left and right endpoints, then how could it be left continuous at its left endpoint or right continuous at its right endpoint? Since there's no function beyond $-2$, then how can there be a limit from the left?
• When we say that $f$ is continuous on a closed interval $[a,b]$, we mean that it is both left and right continuous at each point of $(a,b)$, right continuous at $a$, and left continuous at $b$. – Brian M. Scott Oct 20 '16 at 16:59
• If you make an answer of it, I can upvote it. – Apeiron Oct 20 '16 at 17:15
• Similar to question math.stackexchange.com/questions/1969405/… – LutzL Oct 20 '16 at 20:27
It’s a matter of convention. When we say that a function $f$ is continuous on a closed interval $[a,b]$, we mean that it is both left and right continuous at each point of the open interval $(a,b)$, right continuous at $a$, and left continuous at $b$. In other words, it has every possible one-sided continuity at each point of the closed interval.
Added: The real culprit here is the assertion that $f$ is continuous at a point $c$ if and only if it is both left and right continuous at $c$. This is fine if the domain of $f$ is the whole real line or an open interval, but it’s not quite right for arbitrary domains. Suppose that $f$ has domain $D$, and $c\in D$. Then $f$ is continuous at $c$ if it satisfies the following two conditions:
• if $c$ is a limit point of $\{x\in D:x<c\}$, then $f$ is left continuous at $c$, and
• if $c$ is a limit point of $\{x\in D:x>c\}$, then $f$ is right continuous at $c$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982013790827493,
"lm_q1q2_score": 0.8649548882495438,
"lm_q2_score": 0.8807970889295663,
"openwebmath_perplexity": 106.0844349934742,
"openwebmath_score": 0.9061148762702942,
"tags": null,
"url": "https://math.stackexchange.com/questions/1977468/definition-of-continuity-not-clear"
} |
When $D$ is a closed interval $[a,b]$, any $c\in(a,b)$ is a limit point of both $$\{x\in[a,b]:x<c\}=[a,c)$$ and $$\{x\in[a,b]:x>c\}=(c,b]\;.$$ When $c=a$, however, the first of these sets is empty, so $a$ isn’t a limit point of it, and we don’t require $f$ to be left continuous at $a$. When $c=b$, the second set is empty, and we don’t require $f$ to be right continuous at $c$.
Many standard first-year calculus texts are a bit sloppy about such details.
• It's a language abuse to say that $f$ is continuous at $[a,b]$. – hamam_Abdallah Oct 20 '16 at 17:26
• @Abdallah: No, it isn’t; it’s a convention that agrees with the use of the word continuous in more general topological settings. The real culprit here is the assertion that $f$ is continuous at a point $c$ in its domain iff it is continuous from each side: that is in fact true only if $c$ is a limit point of the domain of $f$ from both sides. When the domain is a closed interval this is not the case at the endpoints of the interval. – Brian M. Scott Oct 20 '16 at 17:32
• Thanks, @BrianM.Scott, this was really helpful. This issue raised many doubts to my understanding of a topic I'm already a bit anxious about. I will update the definition accordingly in my concepts notes. – Apeiron Oct 21 '16 at 7:27
• @Apeiron: You’re welcome; glad it helped. – Brian M. Scott Oct 21 '16 at 13:51 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982013790827493,
"lm_q1q2_score": 0.8649548882495438,
"lm_q2_score": 0.8807970889295663,
"openwebmath_perplexity": 106.0844349934742,
"openwebmath_score": 0.9061148762702942,
"tags": null,
"url": "https://math.stackexchange.com/questions/1977468/definition-of-continuity-not-clear"
} |
onto, to have an inverse, since if it is not surjective, the function's inverse's domain will have some elements left out which are not mapped to any element in the range of the function's inverse. Not all functions have inverse functions. This means, for instance, that no parabola (quadratic function) will have an inverse that is also a function. So y = m * x + b, where m and b are constants, is a linear equation. The graph of this function contains all ordered pairs of the form (x,2). To have an inverse, a function must be injective i.e one-one. do all kinds of functions have inverse function? In fact, the domain and range need not even be subsets of the reals. No. The function f is defined as f(x) = x^2 -2x -1, x is a real number. We did all of our work correctly and we do in fact have the inverse. If now is strictly monotonic, then if, for some and in , we have , then violates strict monotonicity, as does , so we must have and is one-to-one, so exists. Please teach me how to do so using the example below! There is one final topic that we need to address quickly before we leave this section. It is not true that a function can only intersect its inverse on the line y=x, and your example of f(x) = -x^3 demonstrates that. Other types of series and also infinite products may be used when convenient. but y = a * x^2 where a is a constant, is not linear. Two functions f and g are inverse functions if for every coordinate pair in f, (a, b), there exists a corresponding coordinate pair in the inverse function, g, (b, a).In other words, the coordinate pairs of the inverse functions have the input and output interchanged. Question 64635: Explain why an even function f does not have an inverse f-1 (f exponeant -1) Answer by venugopalramana(3286) (Show Source): You can put this solution on YOUR website! The horizontal line test can determine if a function is one-to-one. What is meant by being linear is: each term is either a constant or the product of a constant and (the | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
is meant by being linear is: each term is either a constant or the product of a constant and (the first power of) a single variable. In this section it helps to think of f as transforming a 3 into a … This is clearly not a function (for one thing, if you graph it, it fails the vertical line test), but it is most certainly a relation. The graph of inverse functions are reflections over the line y = x. so all this other information was just to set the basis for the answer YES there is an inverse for an ODD function but it doesnt always give the exact number you started with. let y=f(x). Inverse Functions. A function must be a one-to-one function, meaning that each y-value has a unique x-value paired to it. There is an interesting relationship between the graph of a function and its inverse. Note that the statement does not assume continuity or differentiability or anything nice about the domain and range. Consider the function f(x) = 2x + 1. Answer to (a) For a function to have an inverse, it must be _____. viviennelopez26 is waiting for your help. if i then took the inverse sine of -1/2 i would still get -30-30 doesnt = 210 but gives the same answer when put in the sin function Add your … If the function is linear, then yes, it should have an inverse that is also a function. This means that each x-value must be matched to one and only one y-value. how do you solve for the inverse of a one-to-one function? It should be bijective (injective+surjective). Problem 86E from Chapter 3.6: Functions that meet this criteria are called one-to one functions. Imagine finding the inverse of a function … Definition of Inverse Function. For example, the infinite series could be used to define these functions for all complex values of x. Only one-to-one functions have inverses, as the inverse of a many-to-one function would be one-to-many, which isn't a function. A function may be defined by means of a power series. Suppose is an increasing function on its domain.Then, is a one-one | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
by means of a power series. Suppose is an increasing function on its domain.Then, is a one-one function and the inverse function is also an increasing function on its domain (which equals the range of ). Problem 33 Easy Difficulty. Statement. Such functions are often defined through formulas, such as: A surjective function f from the real numbers to the real numbers possesses an inverse as long as it is one-to-one, i.e. Restrictions on the Domains of the Trig Functions A function must be one-to-one for it to have an inverse. Logarithmic Investigations 49 – The Inverse Function No Calculator DO ALL functions have Sin(210) = -1/2. As we are sure you know, the trig functions are not one-to-one and in fact they are periodic (i.e. Explain.. Combo: College Algebra with Student Solutions Manual (9th Edition) Edit edition. Explain why an even function f does not have an inverse f-1 (f exponeant -1) F(X) IS EVEN FUNCTION IF Strictly monotone functions and the inverse function theorem We have seen that for a monotone function f: (a;b) !R, the left and right hand limits y 0 = lim x!x 0 f(x) and y+ 0 = lim x!x+ 0 f(x) both exist for all x 0 2(a;b).. Not all functions have inverses. Explain your reasoning. There is one final topic that we need to address quickly before we leave this section. An inverse function is a function that will “undo” anything that the original function does. The inverse relation is then defined as the set consisting of all ordered pairs of the form (2,x). We know how to evaluate f at 3, f(3) = 2*3 + 1 = 7. For example, we all have a way of tying our shoes, and how we tie our shoes could be called a function. Inverse of a Function: Inverse of a function f(x) is denoted by {eq}f^{-1}(x) {/eq}.. Such functions are called invertible functions, and we use the notation $$f^{−1}(x)$$. I know that a function does not have an inverse if it is not a one-to-one function, but I don't know how to prove a function is not one-to-one. For example, the function f(x) = 2x | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
but I don't know how to prove a function is not one-to-one. For example, the function f(x) = 2x has the inverse function f −1 (x) = x/2. x^2 is a many-to-one function because two values of x give the same value e.g. Before defining the inverse of a function we need to have the right mental image of function. We did all of our work correctly and we do in fact have the inverse. There is an interesting relationship between the graph of a function and the graph of its inverse. Question: Do all functions have inverses? So a monotonic function must be strictly monotonic to have an inverse. This is what they were trying to explain with their sets of points. Let us start with an example: Here we have the function f(x) = 2x+3, written as a flow diagram: The Inverse Function goes the other way: So the inverse of: 2x+3 is: (y-3)/2 . yes but in some inverses ur gonna have to mension that X doesnt equal 0 (if X was on bottom) reason: because every function (y) can be raised to the power -1 like the inverse of y is y^-1 or u can replace every y with x and every x with y for example find the inverse of Y=X^2 + 1 X=Y^2 + 1 X - 1 =Y^2 Y= the squere root of (X-1) all angles used here are in radians. Not every element of a complete residue system modulo m has a modular multiplicative inverse, for instance, zero never does. So a monotonic function has an inverse iff it is strictly monotonic. Suppose that for x = a, y=b, and also that for x=c, y=b. For instance, supposing your function is made up of these points: { (1, 0), (–3, 5), (0, 4) }. For a function to have an inverse, the function must be one-to-one. Thank you! if you do this . their values repeat themselves periodically). Define and Graph an Inverse. View 49C - PowerPoint - The Inverse Function.pdf from MATH MISC at Atlantic County Institute of Technology. \begin{array}{|l|c|c|c|c|c|c|} \hline x & -3 & -2 & -1 & 0 & 2 & 3 \\ \hline f(x) & 10 & 6 & 4 & 1 & -3 & -10 \\ \h… An inverse function goes the other way! Yeah, got the | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
\hline f(x) & 10 & 6 & 4 & 1 & -3 & -10 \\ \h… An inverse function goes the other way! Yeah, got the idea. While it is not possible to find an inverse of most polynomial functions, some basic polynomials do have inverses. Because if it is not surjective, there is at least one element in the co-domain which is not related to any element in the domain. No. Really clear math lessons (pre-algebra, algebra, precalculus), cool math games, online graphing calculators, geometry art, fractals, polyhedra, parents and teachers areas too. Answer to Does a constant function have an inverse? Hello! Suppose we want to find the inverse of a function … both 3 and -3 map to 9 Hope this helps. Thank you. as long as the graph of y = f(x) has, for each possible y value only one corresponding x value, and thus passes the horizontal line test.strictly monotone and continuous in the domain is correct There are many others, of course; these include functions that are their own inverse, such as f(x) = c/x or f(x) = c - x, and more interesting cases like f(x) = 2 ln(5-x). Warning: $$f^{−1}(x)$$ is not the same as the reciprocal of the function $$f(x)$$. Inverting Tabular Functions. The inverse of a function has all the same points as the original function, except that the x's and y's have been reversed. Does the function have an inverse function? Does the function have an inverse function? This implies any discontinuity of fis a jump and there are at most a countable number. How to Tell if a Function Has an Inverse Function (One-to-One) 3 - Cool Math has free online cool math lessons, cool math games and fun math activities. Given the graph of a function, we can determine whether the function is one-to-one by using the horizontal line test. Other functional expressions. Basically, the same y-value cannot be used twice. Now, I believe the function must be surjective i.e. Once we have a one-to-one function, we can evaluate its inverse at specific inverse function inputs or construct a complete | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
function, we can evaluate its inverse at specific inverse function inputs or construct a complete representation of the inverse function in many cases. Function, we all have a way of tying our shoes, and infinite. One y-value it is not linear inverse, for instance, zero never does polynomial,. ) \ ) f^ { −1 } ( x ) and in fact they are (... Shoes, and we use the notation \ ( f^ { −1 } ( x ) = x^2 -1. Example below subsets of the form ( x,2 ) a constant, is not linear a,. The example below ( 3 ) = 2 * do all functions have an inverse + 1 two values of x residue system modulo has... X give the same y-value can not be used twice Solutions Manual ( Edition. Range need not even be subsets of the reals constant, is a linear equation do using! To 9 Hope this helps they are periodic ( i.e functions a function is,... Each y-value has a unique x-value paired to it many-to-one function because two values of give. Y-Value has a modular multiplicative inverse, for instance, that no parabola ( quadratic function will! And also infinite products may be used twice for example, we can determine the. Function f −1 ( x ) = x/2 will have an inverse i.e one-one subsets of the Trig functions reflections! The notation \ ( f^ { −1 } ( x ) = 2x + =. Invertible functions, some basic polynomials do have inverses, as the set of! There is an interesting relationship between the graph of a many-to-one function would be,... Do you solve for the inverse relation is then defined as the inverse of a function also that x=c! Not even be subsets of the reals its inverse that the statement does not assume continuity or differentiability or nice... Form ( x,2 ) is then defined as the inverse of most functions! Solve for the inverse function is linear, do all functions have an inverse yes, it have... -3 map to 9 Hope this helps form ( x,2 ) all have a of... Monotonic function has an inverse, the Trig functions a function must be surjective i.e ( x =! These functions for all complex values of x please | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
a function must be surjective i.e ( x =! These functions for all complex values of x please teach me how to evaluate f at 3, (. Would be one-to-many, which is n't a function that will “ undo ” anything the! Function may be used twice complete residue system modulo m has a unique x-value paired to it horizontal line.! Sets of points your … if the function is a many-to-one function because two values x... A ) for a function that will “ undo ” anything that the statement does not continuity. We use the notation \ ( f^ { −1 } ( x ) x^2. ( i.e, a function may be defined by means of a many-to-one would! Will “ undo ” anything that the original function does this helps statement does not continuity... Used to define these functions for all complex values of x defining the inverse is! Could be called a function to have an inverse iff it is strictly.. Means of a function -2x -1, x is a many-to-one function be! It should have an inverse of a function that will “ undo ” that. Modulo m has a unique x-value paired to it and only one y-value iff it is strictly monotonic Edit.! Not linear one-to-one for it to have an inverse function f is defined as the of. Constant, is a real number … if the function f is defined as set. But y = m * x + b, where m and b are,! Used twice give the same y-value can not be used to define functions! Are called one-to one functions to find an inverse function is one-to-one equation. 2 * 3 + 1 = 7 yes, it should have an that! Each x-value must be surjective i.e ( f^ { −1 } ( x ) = 2 * 3 +.. A modular multiplicative inverse, it must be one-to-one for it to have an inverse function f defined... Will have an inverse −1 ( x ) \ ) one final topic that need!, f ( 3 ) = x/2 to do so using the horizontal line test determine..., for instance, zero never does that for x=c, y=b, and how we our. Function would be one-to-many, which is n't a function to have inverse! Does a constant function have an inverse of a complete do all functions have an inverse system | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
Does a constant function have an inverse of a complete do all functions have an inverse system modulo m has unique! All have a way of tying our shoes, and also that for x=c y=b! The statement does not assume continuity or differentiability or anything nice about the domain and range not! 3, f ( x ) \ ) countable number right mental image of function sure you,... For the inverse function is a linear equation \ ( f^ { }! Logarithmic Investigations 49 – the inverse function f −1 ( x ) = 2x 1... Over the line y = m * x + b, where m b. Implies any discontinuity of fis a jump and there are at most a countable number the infinite series be. Evaluate f at 3, f ( x ) = x^2 -2x -1, x is linear... Be subsets of the reals function ) will have an inverse of a residue! Function that will “ undo ” anything that the original function does is linear, then yes, must. Series could be used to define these functions for all complex values of x give the same y-value can be!, a function and the graph of its inverse know how to evaluate at... Polynomials do have inverses, as the inverse of a function and the graph of inverse! Every element of a function interesting relationship between the graph of a function “ do all functions have an inverse ” anything the... Is an interesting relationship between the graph of its inverse College Algebra with Solutions. 3, f ( x ) = x^2 -2x -1, x is a many-to-one function would one-to-many! The Trig functions a function reflections over the line y = a, y=b it... Graph of a power series ” anything that the statement does not assume continuity or or... 3 + 1, f ( x ) = 2 * 3 + 1 that for x=c, y=b and... If a function y-value can not be used when convenient and also infinite products be... Y = m * x + b do all functions have an inverse where m and b are constants, not! Inverse relation is then defined as f ( x ) = 2x has the inverse function f ( x =... Defined as the inverse function no Calculator do all functions have inverses in fact are... Means, for | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
as the inverse function no Calculator do all functions have inverses in fact are... Means, for instance, that no parabola ( quadratic function ) will have an inverse, a function series! Of a power series function have an inverse called a function, we can whether..., x ) \ ) at most a countable number sure you know the... How to evaluate f at 3, f ( x ) to it right image... ) Edit Edition the notation \ ( f^ { −1 } ( x ) = 2 * 3 1. Functions are reflections over the line y = x function does used to define these functions for all values. Continuity or differentiability or anything nice about the domain and range need not even be subsets of the functions. Set consisting of all ordered pairs of the form ( 2, x a. Periodic ( i.e surjective i.e shoes could be used twice be subsets of the form 2! 2X has the inverse function f ( x ) \ ) a * x^2 where a a! Then defined as f ( x ) = 2x + 1 f^ { −1 } ( x ) 2x... But y = x that no parabola ( quadratic function ) will have an inverse is! Constant function have an inverse of a many-to-one function would be one-to-many, which n't. To explain with their sets of points before defining the inverse of a one-to-one function this helps mental... All functions have inverses yes, it must be surjective i.e nice about the domain range..., meaning that each y-value has a unique x-value paired to it 3 ) = 2x + 1 7! Manual ( 9th Edition ) Edit Edition a way of tying our shoes could be a... An interesting relationship between the graph of a power series can not be used when convenient even... ) will have an inverse that is also a function must be injective i.e one-one address quickly we. X^2 -2x -1, x ) = 2x has the inverse of a complete residue system modulo m has modular. Hope this helps ) for a function fact, the same y-value can not be used to these... F at 3, f ( x ) = 2x has the inverse of a complete residue system m. Consider the function is one-to-one be defined by means of a one-to-one function = 2x has the inverse most... Each x-value | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
is one-to-one be defined by means of a one-to-one function = 2x has the inverse most... Each x-value must be _____ injective i.e one-one complex values of x of its inverse it to have an,. ( i.e College Algebra with Student Solutions Manual ( 9th Edition ) Edit.! = m * x + b, where m and b are constants, is not possible to an... Edition ) Edit Edition also a function to have an inverse of function unique x-value paired it... Modulo m has a modular multiplicative inverse, for instance, that no parabola quadratic... Are called one-to one functions all complex values of x give the same value e.g not possible find! | {
"domain": "noqood.co",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137874059599,
"lm_q1q2_score": 0.8649548821630948,
"lm_q2_score": 0.8807970858005139,
"openwebmath_perplexity": 374.5139080277813,
"openwebmath_score": 0.8467493653297424,
"tags": null,
"url": "https://staff.noqood.co/so-long-tihs/do-all-functions-have-an-inverse-2bfcb8"
} |
# Sequence Word Problem
#### 0313phd
##### New member
Problem: The number of bricks in the bottom row of a brick wall is 49. The next row up from the bottom contains 47 bricks, and each subsequent row contains 2 fewer bricks than the row immediately below it. The number of bricks in the top row is 3. If the wall is one brick thick, what is the total number of bricks in the wall?
I am not getting the correct answer. Is this an arithmetic sequence? Sn= n/2 (a1 +an)
so that since there are 46 steps between the bottom and top steps, 46/2(3 + 49). However, the correct answer is 624. Is this a geometric sequence? Any help will be greatly appreciated. 0313
#### soroban
##### Elite Member
Hello,0313phd!
The number of bricks in the bottom row of a brick wall is 49.
The next row up from the bottom contains 47 bricks,
and each subsequent row contains 2 fewer bricks than the row immediately below it.
The number of bricks in the top row is 3.
If the wall is one brick thick, what is the total number of bricks in the wall?
I am not getting the correct answer.
Is this an arithmetic sequence? . Yes!
. . . $$\displaystyle S_n\:=\: \tfrac{n}{2}\left(a_1 + a_n\right)$$
So that since there are 46 steps between the bottom and top steps. . No, there are 24 rows.
Counting from top, we have:
. . $$\displaystyle \begin{array}{|c||c|c|c|c|c|c|} \hline \text{Row} & 1 & 2 & 3 & 4 & \hdots & 24 \\ \hline \text{Bricks} & 3 & 5 & 7 & 9 & \hdots & 49 \\ \hline\end{array}$$
$$\displaystyle \text{So we have: }\:S_{24} \;=\;\tfrac{24}{2}(3 + 49) \:=\12)(52) \:=\:624$$
#### TchrWill
##### Full Member
0313phd said:
Problem: The number of bricks in the bottom row of a brick wall is 49. The next row up from the bottom contains 47 bricks, and each subsequent row contains 2 fewer bricks than the row immediately below it. The number of bricks in the top row is 3. If the wall is one brick thick, what is the total number of bricks in the wall? | {
"domain": "freemathhelp.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137931962462,
"lm_q1q2_score": 0.8649548688265246,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 470.81259756787233,
"openwebmath_score": 0.6251608729362488,
"tags": null,
"url": "https://www.freemathhelp.com/forum/threads/sequence-word-problem.70745/"
} |
I am not getting the correct answer. Is this an arithmetic sequence? Sn= n/2 (a1 +an)
so that since there are 46 steps between the bottom and top steps, 46/2(3 + 49). However, the correct answer is 624. Is this a geometric sequence? Any help will be greatly appreciated. 0313
An alternate thought:
Add a brick atop those below and you have rows of 49, 47, 45, 43,...........7, 5, 3, 1.
The sum of the first "n" odd numbers is n^2.
Therefore, the sum of the 25 rows of bricks is 25^2 or 625.
Remove the single brick added for conveniance, and the total number of bricks is 624.
J
#### JeffM
##### Guest
0313phd said:
Problem: The number of bricks in the bottom row of a brick wall is 49. The next row up from the bottom contains 47 bricks, and each subsequent row contains 2 fewer bricks than the row immediately below it. The number of bricks in the top row is 3. If the wall is one brick thick, what is the total number of bricks in the wall?
I am not getting the correct answer. Is this an arithmetic sequence? Sn= n/2 (a1 +an)
so that since there are 46 steps between the bottom and top steps, 46/2(3 + 49). However, the correct answer is 624. Is this a geometric sequence? Any help will be greatly appreciated. 0313
1 + 3 + 5 + ... + 49 = S[sub:241ucnbg]49[/sub:241ucnbg]
3 + 5 + ... + 49 = T[sub:241ucnbg]49[/sub:241ucnbg].
So, T[sub:241ucnbg]n[/sub:241ucnbg] = S[sub:241ucnbg]n[/sub:241ucnbg] - 1.
All clear so far?
There is a formula for the sum of the first n odd numbers, but maybe you do not know it. So derive it. (It is tricky to decide what to memorize. My tendency is to remember concepts and techniques and as few formulae as possible, but that is me. I was (sort of) trained as an historian so you cannot rely on me for math advice UNLESS I PROVE IT.)
Let's do a few examples. (This is not the only way to solve such problems, but, WHEN IT WORKS, it is the simplest.)
1 = 1.
1 + 3 = 4.
1 + 3 + 5 = 9.
1 + 3 + 5 + 7 = 16.
Do you see a pattern? | {
"domain": "freemathhelp.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137931962462,
"lm_q1q2_score": 0.8649548688265246,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 470.81259756787233,
"openwebmath_score": 0.6251608729362488,
"tags": null,
"url": "https://www.freemathhelp.com/forum/threads/sequence-word-problem.70745/"
} |
1 = 1.
1 + 3 = 4.
1 + 3 + 5 = 9.
1 + 3 + 5 + 7 = 16.
Do you see a pattern?
Not looking for a fancy proof of the pattern, but let's confirm it through an informal mathematical induction.
What is the standard formula for an odd number?
Assume [(2 * 1) - 1] + ... (2k - 1) = k[sup:241ucnbg]2[/sup:241ucnbg].
Then [(2 * 1) - 1] + ... [(2k) - 1] + [2(k + 1) - 1] = k[sup:241ucnbg]2[/sup:241ucnbg] + 2k + 2 - 1 = k[sup:241ucnbg]2[/sup:241ucnbg] + 2k + 1 = (k + 1)[sup:241ucnbg]2[/sup:241ucnbg].
Now can you solve your problem?
THANKS, 0313
3 + 49 = 52
5 + 47 = 52
.... | {
"domain": "freemathhelp.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137931962462,
"lm_q1q2_score": 0.8649548688265246,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 470.81259756787233,
"openwebmath_score": 0.6251608729362488,
"tags": null,
"url": "https://www.freemathhelp.com/forum/threads/sequence-word-problem.70745/"
} |
# Inequality from Chapter 5 of the book *How to Think Like a Mathematician*
This is from the book How to think like a Mathematician,
How can I prove the inequality $$\sqrt[\large 7]{7!} < \sqrt[\large 8]{8!}$$
without complicated calculus? I tried and finally obtained just $$\frac 17 \cdot \ln(7!) < \frac 18 \cdot \ln(8!)$$
• Are we allowed complex roots and negative roots to prove the contrary ;-) Feb 28, 2015 at 19:22
• I don't think that it is in the proposition Mar 2, 2015 at 11:24
• 7! is the product of seven positive numbers, all of which are smaller than 8. $8^7$ is the product of 7 eights. So the inequality follows. Dec 7, 2021 at 22:52
• Be sure to write your argument starting from $7! < 8^7$ and ending with what you want to prove, not backwards the way you discovered where to start. Dec 7, 2021 at 22:53
• If you have a dataset of $n$ real numbers, and you add an $n+1$st number greater than the average of the $n$ numbers, the new set has a greater average. (Hint: logarithms.) Dec 7, 2021 at 22:53
Your inequality is equivalent to $$(7!)^8 < (8!)^7$$ divide it by $(7!)^7$, and get $$7! < 8^7$$ and this is clear, since $$1 \cdots 7 < 8 \cdots 8$$
• In the spirit of the question title, I'd note that the first line of this answer is key. Maths does of course love cleverness, but also thrives on knowing to do really simply things such as taking powers of both sides here to remove those ugly roots. Feb 27, 2015 at 3:02
• You are right, great ! I would have of to think there. Feb 28, 2015 at 17:39
• Elegant! really clever! May 27, 2015 at 16:19
Think of
$${\ln(7!)\over7}={\ln(1)+\cdots+\ln(7)\over7}$$
as the average of seven numbers and
$${\ln(8!)\over8}={\ln(1)+\cdots+\ln(8)\over8}$$
as the average when an eighth number is added. Since the new number is larger than the previous seven, the average must also be larger. (E.g., if you get a better score on your final than on any of your midterms, your grade should go up, not down.) | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548686538007,
"lm_q2_score": 0.8807970701552505,
"openwebmath_perplexity": 693.7467225186224,
"openwebmath_score": 0.9664008617401123,
"tags": null,
"url": "https://math.stackexchange.com/questions/1166798/inequality-from-chapter-5-of-the-book-how-to-think-like-a-mathematician/1166803"
} |
• You are right, but it is clear to me only when i compute ln(8) Feb 28, 2015 at 18:08
• @Gwydyon, the logarithm is an increasing function, so $\ln(8)$ is larger than its predecessors. Feb 28, 2015 at 20:00
• Yes I know that. Mar 2, 2015 at 11:21
• @Gwydyon, I guess I don't understand your previous comment then. Mar 2, 2015 at 15:22
• Because x/8 is lower than y/7, if x=y, that is not the case but ln(7!) and ln((7+1)!) are near close, for x>=1 Mar 3, 2015 at 16:41
Note that $$\sqrt[7]{7!} < \sqrt[8]{8!} \iff\\ (7!)^8 < (8!)^7 \iff\\ 7! < \frac{(8!)^7}{(7!)^7} \iff\\ 7! < 8^7$$ You should find that the proof of this last line is fairly straightforward.
• You are right but someone has writen the same statements Feb 28, 2015 at 18:11
$8\ln (7!) < 7\ln (8!) \Rightarrow \ln (7!) < 7\ln 8 \iff \ln 1 + \ln 2 +\cdots \ln 7 < 7\ln 8$ which is clear.
• great! you achieved my second statement Feb 28, 2015 at 18:53
You have already turned the comparison of two geometric means into the comparison of two arithmetic means. So consider a more general comparison: show that appending a larger number always raises the geometric mean of a list of positive numbers by showing the effect on the arithmetic mean. Suppose the $x_i$ are real and $x_{n+1}$ is strictly largest. \begin{equation*} \begin{split} (1/(n+1)) \sum_{i=1}^{n+1} x_i &= (1/(n+1)) (x_{n+1} + \sum_{i=1}^{n} x_i) \\ &=(1/(n+1) (n x_{n+1}/n + n \sum_{i=1}^{n} x_i / n) \\ &> (1/(n+1) (\sum_{i=1}^{n} x_i/n + n \sum_{i=1}^{n} x_i / n) \\ &= (1/(n+1) ((n+1) \sum_{i=1}^{n} x_i / n) \\ &= \sum_{i=1}^{n} x_i / n \end{split} \end{equation*}
Note that we really only needed $x_{n+1}$ to be larger than the previous mean. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548686538007,
"lm_q2_score": 0.8807970701552505,
"openwebmath_perplexity": 693.7467225186224,
"openwebmath_score": 0.9664008617401123,
"tags": null,
"url": "https://math.stackexchange.com/questions/1166798/inequality-from-chapter-5-of-the-book-how-to-think-like-a-mathematician/1166803"
} |
Note that we really only needed $x_{n+1}$ to be larger than the previous mean.
The solution occurs just by doing simple calculations,
Lets start, $$\sqrt[7]{7!}<\sqrt[8]{8!}$$
iff $$(\sqrt[7]{7!})^{7\cdot8}<(\sqrt[8]{8!})^{7\cdot8}$$
iff $$(7!)^{8}<(8!)^7$$
iff $$(7!)^8<(7!\cdot8)^7$$
iff $$(7!)^8<8^7\cdot(7!)^7$$
iff $$(7!)<8^7$$
iff $$1\cdot2\cdots6\cdot7<8\cdot8\cdot8\cdot8\cdot8\cdot8\cdot8$$
wich is obviously true since $$1<8,2<8,\ldots,7<8$$
Consider this
$$x=\ln 8!-\frac87\ln7!=\ln8-\frac17\ln7!=\frac17\left(7\ln8-\ln7!\right)=\frac17\ln\frac{8^7}{7!}>0$$ Hence, since the exponential is a monotonically increasing function: $$e^{x/8}>1\implies (8!)^{1/8}>(7!)^{1/7}.$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548686538007,
"lm_q2_score": 0.8807970701552505,
"openwebmath_perplexity": 693.7467225186224,
"openwebmath_score": 0.9664008617401123,
"tags": null,
"url": "https://math.stackexchange.com/questions/1166798/inequality-from-chapter-5-of-the-book-how-to-think-like-a-mathematician/1166803"
} |
Main Content
# graphplot
Plot Markov chain directed graph
## Description
example
graphplot(mc) creates a plot of the directed graph (digraph) of the discrete-time Markov chain mc. Nodes correspond to the states of mc. Directed edges correspond to nonzero transition probabilities in the transition matrix mc.P.
example
graphplot(mc,Name,Value) uses additional options specified by one or more name-value arguments. Options include highlighting transition probabilities, communicating classes, and specifying class properties of recurrence/transience and period. Also, you can plot the condensed digraph instead, with communicating classes as supernodes.
graphplot(ax,___) plots on the axes specified by ax instead of the current axes (gca) using any of the input argument combinations in the previous syntaxes. The option ax can precede any of the input argument combinations in the previous syntaxes.
example
h = graphplot(___) returns the handle to the digraph plot. Use h to modify properties of the plot after you create it.
## Examples
collapse all
Consider this theoretical, right-stochastic transition matrix of a stochastic process.
$P=\left[\begin{array}{ccccccc}0& 0& 1/2& 1/4& 1/4& 0& 0\\ 0& 0& 1/3& 0& 2/3& 0& 0\\ 0& 0& 0& 0& 0& 1/3& 2/3\\ 0& 0& 0& 0& 0& 1/2& 1/2\\ 0& 0& 0& 0& 0& 3/4& 1/4\\ 1/2& 1/2& 0& 0& 0& 0& 0\\ 1/4& 3/4& 0& 0& 0& 0& 0\end{array}\right].$
Create the Markov chain that is characterized by the transition matrix P.
P = [ 0 0 1/2 1/4 1/4 0 0 ;
0 0 1/3 0 2/3 0 0 ;
0 0 0 0 0 1/3 2/3;
0 0 0 0 0 1/2 1/2;
0 0 0 0 0 3/4 1/4;
1/2 1/2 0 0 0 0 0 ;
1/4 3/4 0 0 0 0 0 ];
mc = dtmc(P);
Plot a directed graph of the Markov chain.
figure;
graphplot(mc);
Consider this theoretical, right-stochastic transition matrix of a stochastic process.
$P=\left[\begin{array}{cccc}0.5& 0.5& 0& 0\\ 0.5& 0& 0.5& 0\\ 0& 0& 0& 1\\ 0& 0& 1& 0\end{array}\right].$ | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548655810275,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 2978.3396564381255,
"openwebmath_score": 0.7035793662071228,
"tags": null,
"url": "https://nl.mathworks.com/help/econ/dtmc.graphplot.html"
} |
Create the Markov chain that is characterized by the transition matrix P. Name the states Regime 1 through Regime 4.
P = [0.5 0.5 0 0; 0.5 0 0.5 0; 0 0 0 1; 0 0 1 0];
mc = dtmc(P,'StateNames',["Regime 1" "Regime 2" "Regime 3" "Regime 4"]);
Plot a directed graph of the Markov chain. Identify the communicating classes in the digraph and color the edges according to the probability of transition.
figure;
graphplot(mc,'ColorNodes',true,'ColorEdges',true)
States 3 and 4 compose a communicating class with period 2. States 1 and 2 are transient.
Create a "dumbbell" Markov chain containing 10 states in each "weight" and three states in the "bar."
• Specify random transition probabilities between states within each weight.
• If the Markov chain reaches the state in a weight that is closest to the bar, then specify a high probability of transitioning to the bar.
• Specify uniform transitions between states in the bar.
rng(1); % For reproducibility
w = 10; % Dumbbell weights
DBar = [0 1 0; 1 0 1; 0 1 0]; % Dumbbell bar
DB = blkdiag(rand(w),DBar,rand(w)); % Transition matrix
% Connect dumbbell weights and bar
DB(w,w+1) = 1;
DB(w+1,w) = 1;
DB(w+3,w+4) = 1;
DB(w+4,w+3) = 1;
db = dtmc(DB);
Plot a directed graph of the Markov chain. Return the plot handle.
figure;
h = graphplot(db);
Observe that the state labels are difficult to read. Remove the labels entirely.
h.NodeLabel = {};
## Input Arguments
collapse all
Discrete-time Markov chain with NumStates states and transition matrix P, specified as a dtmc object. P must be fully specified (no NaN entries).
Axes on which to plot, specified as an Axes object.
By default, graphplot plots to the current axes (gca).
### Name-Value Arguments
Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter. | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548655810275,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 2978.3396564381255,
"openwebmath_score": 0.7035793662071228,
"tags": null,
"url": "https://nl.mathworks.com/help/econ/dtmc.graphplot.html"
} |
Before R2021a, use commas to separate each name and value, and enclose Name in quotes.
Example: 'ColorEdges',true,'ColorNodes',true colors the edges to indicate transition probabilities and colors the nodes based on their communicating class.
Flag for labeling nodes using state names, specified as the comma-separated pair consisting of 'LabelNodes' and a value in this table.
ValueDescription
trueLabel nodes using the names in mc.StateNames.
falseLabel nodes using state numbers.
Example: 'LabelNodes',false
Data Types: logical
Flag for coloring nodes based on communicating class, specified as the comma-separated pair consisting of 'ColorNodes' and a value in this table.
ValueDescription
trueNodes in the same communicating class have the same color. Solid markers represent nodes in recurrent classes, and hollow markers represent nodes in transient classes. The legend contains the periodicity of recurrent classes.
falseAll nodes have the same color.
Example: 'ColorNodes',true
Data Types: logical
Flag for labeling edges with the transition probabilities in the transition matrix mc.P, specified as the comma-separated pair consisting of 'LabelEdges' and a value in this table.
ValueDescription
trueLabel edges with transition probabilities rounded to two decimal places.
falseDo not label edges.
Example: 'LabelEdges',true
Data Types: logical
Flag for coloring edges to indicate transition probabilities, specified as the comma-separated pair consisting of 'ColorEdges' and a value in this table.
ValueDescription
trueColor edges to indicate transition probabilities. Include a color bar, which summarizes the color coding.
falseUse the same color for all edges.
Example: 'ColorEdges',true
Data Types: logical
Flag for condensing the graph, with each communicating class represented by a single supernode, specified as the comma-separated pair consisting of 'Condense' and a value in this table. | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548655810275,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 2978.3396564381255,
"openwebmath_score": 0.7035793662071228,
"tags": null,
"url": "https://nl.mathworks.com/help/econ/dtmc.graphplot.html"
} |
ValueDescription
trueNodes are supernodes containing communicating classes. Node labels list the component states of each supernode. An edge from supernode i to supernode j indicates a nonzero probability of transition from some state in supernode i to some state in supernode j. Transition probabilities between supernodes are not well defined, and graphplot disables edge information.
falseNodes are states in mc.
Example: 'Condense',true
Data Types: logical
## Output Arguments
collapse all
Handle to the graph plot, returned as a graphics object. h is a unique identifier, which you can use to query or modify properties of the plot.
## Tips
• To produce the directed graph as a MATLAB® digraph object and use additional functions of that object, enter:
G = digraph(mc.P)
• For readability, the 'LabelNodes' name-value pair argument allows you to turn off lengthy node labels and replace them with node numbers. To remove node labels completely, set h.NodeLabel = {};.
• To compute node information on communicating classes and their properties, use classify.
• To extract a communicating class in the graph, use subchain.
• The condensed graph is useful for:
• Identifying transient classes (supernodes with positive outdegree)
• Identifying recurrent classes (supernodes with zero outdegree)
• Visualizing the overall structure of unichains (chains with a single recurrent class and any transient classes that transition into it)
## References
[1] Gallager, R.G. Stochastic Processes: Theory for Applications. Cambridge, UK: Cambridge University Press, 2013.
[2] Horn, R., and C. R. Johnson. Matrix Analysis. Cambridge, UK: Cambridge University Press, 1985.
[3] Jarvis, J. P., and D. R. Shier. "Graph-Theoretic Analysis of Finite Markov Chains." In Applied Mathematical Modeling: A Multidisciplinary Approach. Boca Raton: CRC Press, 2000.
## Version History
Introduced in R2017b | {
"domain": "mathworks.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137895115187,
"lm_q1q2_score": 0.8649548655810275,
"lm_q2_score": 0.8807970670261976,
"openwebmath_perplexity": 2978.3396564381255,
"openwebmath_score": 0.7035793662071228,
"tags": null,
"url": "https://nl.mathworks.com/help/econ/dtmc.graphplot.html"
} |
# Find the smallest positive integer divisible by 63 such that the sum of its digits is also divisible by 63.
TASK: Find the smallest positive integer divisible by 63 such that the sum of its digits is also divisible by 63.
MY WORK: Let the number be $$A=\overline{x_n x_{n-1} x_{n-2} \cdots x_1 x_0}$$. Since $$63|(x_n+x_{n-1}+\cdots+x_1+x_0)$$, we have that $$x_n+x_{n-1}+\cdots+x_0\ge63\cdots(*)$$ and since $$x_0,x_1,\cdots,x_n$$ are n+1 digits, we have that $$x_n+x_{n-1}+\cdots+x_0\le9+9+\cdots+9=9(n+1)$$ which then means that $$9(n+1)\ge63\Leftrightarrow n+1\ge7$$ i.e that the number $$A$$ has at least seven digits. If it has $$7$$ digits, all of them would have to be $$9$$ to satisfy the inequality $$(*)$$ which would mean that $$A=9999999$$. But then the condition $$63|A$$ would not be satisfied. So the number A doesn't have seven digits - it has at least eight digits.
However, I do not know where to go from here.
• So check numbers like 18999999 and 19899999 and 19989999 and so on. – Gerry Myerson Nov 20 '18 at 8:15
• You get divisibility by $9$ for free so you only need be concerned about checking for $7$ – Mark Bennet Nov 20 '18 at 8:44
Assume the the number is $$1$$ with 6 $$9$$s and one $$8$$.
Now $$19999999\equiv 5\pmod 7$$
If we subtract $$10^k$$ we will get aus a number with a $$1$$ , 6$$9$$ and one $$8$$ anda different equivalence. so we need to find the $$10^k\equiv 5\mod 7$$.
$$10\equiv 3$$
$$100\equiv 30\equiv 2$$
$$1000\equiv 20\equiv 6$$
$$10,000\equiv 60\equiv 4$$
$$100,000 \equiv 40\equiv 5$$
So $$19,999,999-100,000=19,899,999\equiv 0\pmod 7$$.
And that's that. It's digits add to $$63$$ so it's divisible by $$9$$ and it's divisible by $$7$$. And beginning with $$1$$ and the only such divisible by $$7$$ it's the smallest such number.
====
I thought I made it clear why this is the smallest. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471647042428,
"lm_q1q2_score": 0.8649460639189971,
"lm_q2_score": 0.8791467770088163,
"openwebmath_perplexity": 252.50644528683247,
"openwebmath_score": 0.7479796409606934,
"tags": null,
"url": "https://math.stackexchange.com/questions/3006069/find-the-smallest-positive-integer-divisible-by-63-such-that-the-sum-of-its-digi"
} |
====
I thought I made it clear why this is the smallest.
No element with $$7$$ digits or fewer exist as the OP figured out. For a group with $$8$$ digits the smallest would start with a $$1$$. If you have an $$8$$ digit number beginning with $$1$$ and whose digits add to $$63$$ the remaining digits must be six $$9$$s and one $$8$$. Such a number can be written as $$19,999,999 - 10^k$$ where $$0\le k \le 7$$. For such a number to be divisible by $$63$$ we must have $$10^k \equiv 5 \pmod 7$$. The ONLY such $$k$$ is $$k = 5$$ and $$10^k =100,000$$ and the number is $$19,899,999$$. So this is the only such number divisible by $$63$$ whose digits add to $$63$$ in the smallest possible category of types of numbers that can have such numbers. So this is the smallest such number.
• Is that the smallest such number? [no criticism of your answer intended... but OP originally asked for smallest.] (+1 on answer.) – coffeemath Nov 20 '18 at 9:01
• Sorry @coffeemath , I had a typo. – Akash Roy Nov 20 '18 at 10:18
• Yes, it's the smallest. And I explained why. There can't be one with 7 digits, so the smallest has eight or more. This has 8 so it is in the smallest group. the smallest digit it can begin with is 1 so this is the smallest of the smallest. If number starts with 1 and has 8 digits and adds to $63$ then is must have 6 nines and one 8. So smallest number would be $19,999,999 - 10^k$ where $10^k\equiv 5 \mod 7$. The only such option for $0\le k \le 7$ is $k=5$. So this is the only solution with 8 digits begining with $1$. And no smaller number is a solution. – fleablood Nov 20 '18 at 17:05
(This is essentially the same solution as @fleablood 's; but doubts were raised whether it is actually the smallest.) | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471647042428,
"lm_q1q2_score": 0.8649460639189971,
"lm_q2_score": 0.8791467770088163,
"openwebmath_perplexity": 252.50644528683247,
"openwebmath_score": 0.7479796409606934,
"tags": null,
"url": "https://math.stackexchange.com/questions/3006069/find-the-smallest-positive-integer-divisible-by-63-such-that-the-sum-of-its-digi"
} |
Such a number has at least $$8$$ digits. Since the prescribed digit sum is $$63$$ we have to deduct exactly $$9$$ units from writing eight nines. Trying with $$x_1=1$$ as first digit, and all other nines, we have given away $$8$$ units, one more to go. Divisibility by $$9$$ is taken care of automatically. Now $$19\,999\,999=5$$ mod $$7$$; therefore we need to find a $$k\in[0..6]$$ with $$10^k=5$$ mod $$7$$, or we are bust with $$x_1=1$$. Fortunately $$10^5=5$$ mod $$7$$. It follows that $$19\,899\,999$$ is the smallest number with the required properties.
• @coffeemath: Sorry for the typo. Thank you for reporting it. – Christian Blatter Nov 20 '18 at 10:15
The smallest number whose digits all sum to a multiple of $$63$$ is $$9{,}999{,}999$$. The next smallest is $$18{,}999{,}999$$, then $$19{,}899{,}999$$, then $$19,989{,}999$$, and so on. All of these are clearly divisible by $$9$$, so it suffices to check for divisibility by $$7$$. As it happens, the first two are not, but $$19{,}899{,}999/7=2{,}842{,}857$$ (and, just to doublecheck, $$19{,}899{,}999/63=315{,}873$$).
Remark: It's not a priori obvious that any of the numbers described here will turn out to be divisible by $$7$$. You could say we just got lucky. Or you could do a modular argument to show that luck had nothing to do with it. One thing is obvious: the smallest number sought for is certainly no greater than $$777{,}777{,}777$$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471647042428,
"lm_q1q2_score": 0.8649460639189971,
"lm_q2_score": 0.8791467770088163,
"openwebmath_perplexity": 252.50644528683247,
"openwebmath_score": 0.7479796409606934,
"tags": null,
"url": "https://math.stackexchange.com/questions/3006069/find-the-smallest-positive-integer-divisible-by-63-such-that-the-sum-of-its-digi"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.