When is $prod_{n=2}^{k} n-frac{1}{n}$ not an integer?
up vote
1
down vote
favorite
For which values of $k$ does the following product not evaluate to an integer: $$prod_{n=2}^{k} n-frac{1}{n}$$
I find it somewhat surprising that it not only can evaluate to an integer, but also that it does so most of the time.
The only values of $k$ that I could find so far, such that it does not evaluate to an integer are $2$ and $18$. Do these numbers have any special characteristics which would explain this?
integers products
add a comment |
up vote
1
down vote
favorite
For which values of $k$ does the following product not evaluate to an integer: $$prod_{n=2}^{k} n-frac{1}{n}$$
I find it somewhat surprising that it not only can evaluate to an integer, but also that it does so most of the time.
The only values of $k$ that I could find so far, such that it does not evaluate to an integer are $2$ and $18$. Do these numbers have any special characteristics which would explain this?
integers products
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
For which values of $k$ does the following product not evaluate to an integer: $$prod_{n=2}^{k} n-frac{1}{n}$$
I find it somewhat surprising that it not only can evaluate to an integer, but also that it does so most of the time.
The only values of $k$ that I could find so far, such that it does not evaluate to an integer are $2$ and $18$. Do these numbers have any special characteristics which would explain this?
integers products
For which values of $k$ does the following product not evaluate to an integer: $$prod_{n=2}^{k} n-frac{1}{n}$$
I find it somewhat surprising that it not only can evaluate to an integer, but also that it does so most of the time.
The only values of $k$ that I could find so far, such that it does not evaluate to an integer are $2$ and $18$. Do these numbers have any special characteristics which would explain this?
integers products
integers products
asked 2 days ago
g3nuine
1138
1138
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago
add a comment |
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
4
down vote
accepted
$$prod_{n=2}^k frac{(n+1)(n-1)}{n} = frac{frac{(k+1)!}{2}cdot(k-1)!}{k!} = frac{(k+1)(k-1)!}{2} $$
The only number for which it can't be an integer is $k=2$, and that's indeed the case.
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
add a comment |
up vote
1
down vote
It is surprising that this is often an integer. But because it is surprising there is probably a simple reason that will be become clear when we try a few examples.
$(2 - frac 12)(3 - frac 13) = 2*3 - frac 32 - frac 23 + frac 1{2*3}$.
Okay, one thing that becomes clear is that if we have $(n - frac 1n)(m - frac 1n)$ our terms are going to be $nm$ (which is clearly an integer) $-frac nm, -frac nm$ and $frac 1{mmn}$. When we add $-frac mn -frac nm$ we get $-(frac {m^2}{mn} + frac {n^2}{mn})=-frac {m^2 + n^2}{nm}$ and we get $mn - frac {m^2 + n^2-1}{mn}$.
Well, no reason that $mn|m^2 + n^2 -1$ but if $m$ and $n$ are consecutive, i..e. $(n = m+1)$ we get $$m(m+1) - frac {m^2 + (m+1)^2 - 1}{m(m+1)} = m(m+1) - frac {2m^2 + 2m}{m(m+1)} = m(m+1) - frac {2m(m+1)}{m(m+1)} = m(m+1) -2$$ and that.... is an integer.
So $(m - frac 1m)((m+1) - frac 1{m+1}$ must be an integer and as integers multiply together to integers we have for a product of even number of terms:
$prod_{n=2}^{2m+ 1} (n-frac 1n) = prod_{k=1}^m [(2k-frac 1{2k})((2k+1)-frac 1{2k+1})] = prod_{k=1}^m (2k(2k+1) -2)=Kin mathbb Z$.
But if we have a product of odd terms:
$prod_{n=2}^{2m+ 2}(n-frac 1n) =(prod_{n=2}^{2m+ 1}(n-frac 1n))((2m+2)-frac 1{2m+2})=K( 2m+2 - frac 1{2m+2})$ and as $( 2m+2 - frac 1{2m+2})$ is not an integer $K( 2m+2 - frac 1{2m+2})$ won't be an integer.....
.... unless $2m+2|K$.
Okay.... we are halfway done.
When will $2m+2|K$?
I'm embarrassed to admit how long the following took me to figure out but:
$K=prod_{k=1}^m(2k(2k+1) -2)$ and for $2m(2m+1) -2=2(m+1)(2m -1)$ so $2m+2$ will always divide $K$ and this will always be an integer. (Unless we only multiply one term $(2 - frac 12)$.)
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
$$prod_{n=2}^k frac{(n+1)(n-1)}{n} = frac{frac{(k+1)!}{2}cdot(k-1)!}{k!} = frac{(k+1)(k-1)!}{2} $$
The only number for which it can't be an integer is $k=2$, and that's indeed the case.
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
add a comment |
up vote
4
down vote
accepted
$$prod_{n=2}^k frac{(n+1)(n-1)}{n} = frac{frac{(k+1)!}{2}cdot(k-1)!}{k!} = frac{(k+1)(k-1)!}{2} $$
The only number for which it can't be an integer is $k=2$, and that's indeed the case.
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
$$prod_{n=2}^k frac{(n+1)(n-1)}{n} = frac{frac{(k+1)!}{2}cdot(k-1)!}{k!} = frac{(k+1)(k-1)!}{2} $$
The only number for which it can't be an integer is $k=2$, and that's indeed the case.
$$prod_{n=2}^k frac{(n+1)(n-1)}{n} = frac{frac{(k+1)!}{2}cdot(k-1)!}{k!} = frac{(k+1)(k-1)!}{2} $$
The only number for which it can't be an integer is $k=2$, and that's indeed the case.
answered 2 days ago
Jakobian
2,314620
2,314620
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
add a comment |
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
Thanks. At least now I know that I can't count on the products evaluated by my app.
– g3nuine
2 days ago
add a comment |
up vote
1
down vote
It is surprising that this is often an integer. But because it is surprising there is probably a simple reason that will be become clear when we try a few examples.
$(2 - frac 12)(3 - frac 13) = 2*3 - frac 32 - frac 23 + frac 1{2*3}$.
Okay, one thing that becomes clear is that if we have $(n - frac 1n)(m - frac 1n)$ our terms are going to be $nm$ (which is clearly an integer) $-frac nm, -frac nm$ and $frac 1{mmn}$. When we add $-frac mn -frac nm$ we get $-(frac {m^2}{mn} + frac {n^2}{mn})=-frac {m^2 + n^2}{nm}$ and we get $mn - frac {m^2 + n^2-1}{mn}$.
Well, no reason that $mn|m^2 + n^2 -1$ but if $m$ and $n$ are consecutive, i..e. $(n = m+1)$ we get $$m(m+1) - frac {m^2 + (m+1)^2 - 1}{m(m+1)} = m(m+1) - frac {2m^2 + 2m}{m(m+1)} = m(m+1) - frac {2m(m+1)}{m(m+1)} = m(m+1) -2$$ and that.... is an integer.
So $(m - frac 1m)((m+1) - frac 1{m+1}$ must be an integer and as integers multiply together to integers we have for a product of even number of terms:
$prod_{n=2}^{2m+ 1} (n-frac 1n) = prod_{k=1}^m [(2k-frac 1{2k})((2k+1)-frac 1{2k+1})] = prod_{k=1}^m (2k(2k+1) -2)=Kin mathbb Z$.
But if we have a product of odd terms:
$prod_{n=2}^{2m+ 2}(n-frac 1n) =(prod_{n=2}^{2m+ 1}(n-frac 1n))((2m+2)-frac 1{2m+2})=K( 2m+2 - frac 1{2m+2})$ and as $( 2m+2 - frac 1{2m+2})$ is not an integer $K( 2m+2 - frac 1{2m+2})$ won't be an integer.....
.... unless $2m+2|K$.
Okay.... we are halfway done.
When will $2m+2|K$?
I'm embarrassed to admit how long the following took me to figure out but:
$K=prod_{k=1}^m(2k(2k+1) -2)$ and for $2m(2m+1) -2=2(m+1)(2m -1)$ so $2m+2$ will always divide $K$ and this will always be an integer. (Unless we only multiply one term $(2 - frac 12)$.)
add a comment |
up vote
1
down vote
It is surprising that this is often an integer. But because it is surprising there is probably a simple reason that will be become clear when we try a few examples.
$(2 - frac 12)(3 - frac 13) = 2*3 - frac 32 - frac 23 + frac 1{2*3}$.
Okay, one thing that becomes clear is that if we have $(n - frac 1n)(m - frac 1n)$ our terms are going to be $nm$ (which is clearly an integer) $-frac nm, -frac nm$ and $frac 1{mmn}$. When we add $-frac mn -frac nm$ we get $-(frac {m^2}{mn} + frac {n^2}{mn})=-frac {m^2 + n^2}{nm}$ and we get $mn - frac {m^2 + n^2-1}{mn}$.
Well, no reason that $mn|m^2 + n^2 -1$ but if $m$ and $n$ are consecutive, i..e. $(n = m+1)$ we get $$m(m+1) - frac {m^2 + (m+1)^2 - 1}{m(m+1)} = m(m+1) - frac {2m^2 + 2m}{m(m+1)} = m(m+1) - frac {2m(m+1)}{m(m+1)} = m(m+1) -2$$ and that.... is an integer.
So $(m - frac 1m)((m+1) - frac 1{m+1}$ must be an integer and as integers multiply together to integers we have for a product of even number of terms:
$prod_{n=2}^{2m+ 1} (n-frac 1n) = prod_{k=1}^m [(2k-frac 1{2k})((2k+1)-frac 1{2k+1})] = prod_{k=1}^m (2k(2k+1) -2)=Kin mathbb Z$.
But if we have a product of odd terms:
$prod_{n=2}^{2m+ 2}(n-frac 1n) =(prod_{n=2}^{2m+ 1}(n-frac 1n))((2m+2)-frac 1{2m+2})=K( 2m+2 - frac 1{2m+2})$ and as $( 2m+2 - frac 1{2m+2})$ is not an integer $K( 2m+2 - frac 1{2m+2})$ won't be an integer.....
.... unless $2m+2|K$.
Okay.... we are halfway done.
When will $2m+2|K$?
I'm embarrassed to admit how long the following took me to figure out but:
$K=prod_{k=1}^m(2k(2k+1) -2)$ and for $2m(2m+1) -2=2(m+1)(2m -1)$ so $2m+2$ will always divide $K$ and this will always be an integer. (Unless we only multiply one term $(2 - frac 12)$.)
add a comment |
up vote
1
down vote
up vote
1
down vote
It is surprising that this is often an integer. But because it is surprising there is probably a simple reason that will be become clear when we try a few examples.
$(2 - frac 12)(3 - frac 13) = 2*3 - frac 32 - frac 23 + frac 1{2*3}$.
Okay, one thing that becomes clear is that if we have $(n - frac 1n)(m - frac 1n)$ our terms are going to be $nm$ (which is clearly an integer) $-frac nm, -frac nm$ and $frac 1{mmn}$. When we add $-frac mn -frac nm$ we get $-(frac {m^2}{mn} + frac {n^2}{mn})=-frac {m^2 + n^2}{nm}$ and we get $mn - frac {m^2 + n^2-1}{mn}$.
Well, no reason that $mn|m^2 + n^2 -1$ but if $m$ and $n$ are consecutive, i..e. $(n = m+1)$ we get $$m(m+1) - frac {m^2 + (m+1)^2 - 1}{m(m+1)} = m(m+1) - frac {2m^2 + 2m}{m(m+1)} = m(m+1) - frac {2m(m+1)}{m(m+1)} = m(m+1) -2$$ and that.... is an integer.
So $(m - frac 1m)((m+1) - frac 1{m+1}$ must be an integer and as integers multiply together to integers we have for a product of even number of terms:
$prod_{n=2}^{2m+ 1} (n-frac 1n) = prod_{k=1}^m [(2k-frac 1{2k})((2k+1)-frac 1{2k+1})] = prod_{k=1}^m (2k(2k+1) -2)=Kin mathbb Z$.
But if we have a product of odd terms:
$prod_{n=2}^{2m+ 2}(n-frac 1n) =(prod_{n=2}^{2m+ 1}(n-frac 1n))((2m+2)-frac 1{2m+2})=K( 2m+2 - frac 1{2m+2})$ and as $( 2m+2 - frac 1{2m+2})$ is not an integer $K( 2m+2 - frac 1{2m+2})$ won't be an integer.....
.... unless $2m+2|K$.
Okay.... we are halfway done.
When will $2m+2|K$?
I'm embarrassed to admit how long the following took me to figure out but:
$K=prod_{k=1}^m(2k(2k+1) -2)$ and for $2m(2m+1) -2=2(m+1)(2m -1)$ so $2m+2$ will always divide $K$ and this will always be an integer. (Unless we only multiply one term $(2 - frac 12)$.)
It is surprising that this is often an integer. But because it is surprising there is probably a simple reason that will be become clear when we try a few examples.
$(2 - frac 12)(3 - frac 13) = 2*3 - frac 32 - frac 23 + frac 1{2*3}$.
Okay, one thing that becomes clear is that if we have $(n - frac 1n)(m - frac 1n)$ our terms are going to be $nm$ (which is clearly an integer) $-frac nm, -frac nm$ and $frac 1{mmn}$. When we add $-frac mn -frac nm$ we get $-(frac {m^2}{mn} + frac {n^2}{mn})=-frac {m^2 + n^2}{nm}$ and we get $mn - frac {m^2 + n^2-1}{mn}$.
Well, no reason that $mn|m^2 + n^2 -1$ but if $m$ and $n$ are consecutive, i..e. $(n = m+1)$ we get $$m(m+1) - frac {m^2 + (m+1)^2 - 1}{m(m+1)} = m(m+1) - frac {2m^2 + 2m}{m(m+1)} = m(m+1) - frac {2m(m+1)}{m(m+1)} = m(m+1) -2$$ and that.... is an integer.
So $(m - frac 1m)((m+1) - frac 1{m+1}$ must be an integer and as integers multiply together to integers we have for a product of even number of terms:
$prod_{n=2}^{2m+ 1} (n-frac 1n) = prod_{k=1}^m [(2k-frac 1{2k})((2k+1)-frac 1{2k+1})] = prod_{k=1}^m (2k(2k+1) -2)=Kin mathbb Z$.
But if we have a product of odd terms:
$prod_{n=2}^{2m+ 2}(n-frac 1n) =(prod_{n=2}^{2m+ 1}(n-frac 1n))((2m+2)-frac 1{2m+2})=K( 2m+2 - frac 1{2m+2})$ and as $( 2m+2 - frac 1{2m+2})$ is not an integer $K( 2m+2 - frac 1{2m+2})$ won't be an integer.....
.... unless $2m+2|K$.
Okay.... we are halfway done.
When will $2m+2|K$?
I'm embarrassed to admit how long the following took me to figure out but:
$K=prod_{k=1}^m(2k(2k+1) -2)$ and for $2m(2m+1) -2=2(m+1)(2m -1)$ so $2m+2$ will always divide $K$ and this will always be an integer. (Unless we only multiply one term $(2 - frac 12)$.)
answered 2 days ago
fleablood
65.6k22682
65.6k22682
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3005331%2fwhen-is-prod-n-2k-n-frac1n-not-an-integer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Only number that it doesn't evaluate to an integer is $2$.
– Jakobian
2 days ago
My math app outputs 3379030566911999.5 for k=18 but maybe thats due to a bug.
– g3nuine
2 days ago