Does this recursive function have a function in terms of n?Expression for $n+n(n-1)+n(n-1)(n-2)+…+n!$Converting this recursive function into a non-recursive equationRecursive function into non-recursiveI need some help on solving a recursive function questionHow to derive recursive equation for expected discounted utility function?How can I convert a recursive equation to a non-recursion one?function with a recurrence relationRecursive formula for mathematical expressionFind a recursive definition for this set of numbers, visualExpand recursive equation to convert it into a normal formulaDoes this recursive function have a closed-form solution?
Two monoidal structures and copowering
How easy is it to start Magic from scratch?
Return the Closest Prime Number
How do I go from 300 unfinished/half written blog posts, to published posts?
Term for the "extreme-extension" version of a straw man fallacy?
Applicability of Single Responsibility Principle
How long to clear the 'suck zone' of a turbofan after start is initiated?
Would a high gravity rocky planet be guaranteed to have an atmosphere?
Where does the Z80 processor start executing from?
A particular customize with green line and letters for subfloat
Unreliable Magic - Is it worth it?
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
What is the difference between "behavior" and "behaviour"?
Increase performance creating Mandelbrot set in python
Is oxalic acid dihydrate considered a primary acid standard in analytical chemistry?
Valid Badminton Score?
How to be diplomatic in refusing to write code that breaches the privacy of our users
Is the destination of a commercial flight important for the pilot?
Is HostGator storing my password in plaintext?
System.debug(JSON.Serialize(o)) Not longer shows full string
Type int? vs type int
How does buying out courses with grant money work?
Detecting if an element is found inside a container
Is there a korbon needed for conversion?
Does this recursive function have a function in terms of n?
Expression for $n+n(n-1)+n(n-1)(n-2)+…+n!$Converting this recursive function into a non-recursive equationRecursive function into non-recursiveI need some help on solving a recursive function questionHow to derive recursive equation for expected discounted utility function?How can I convert a recursive equation to a non-recursion one?function with a recurrence relationRecursive formula for mathematical expressionFind a recursive definition for this set of numbers, visualExpand recursive equation to convert it into a normal formulaDoes this recursive function have a closed-form solution?
$begingroup$
I am trying to convert the following recursive function to a non-recursive equation:
$$f(2) = 2$$
For $n>2$:
$$f(n)=nf(n-1)+n$$
I have calculated the results for n=2 through to n=9:
$$beginalign
f(2)&=2\
f(3)&=9\
f(4)&=40\
f(5)&=205\
f(6)&=1236\
f(7)&=8659\
f(8)&=69280\
f(9)&=623529
endalign$$
I've tried graphing the function, but have got nowhere
Any help is appreciated!
functions recurrence-relations recursive-algorithms
$endgroup$
add a comment |
$begingroup$
I am trying to convert the following recursive function to a non-recursive equation:
$$f(2) = 2$$
For $n>2$:
$$f(n)=nf(n-1)+n$$
I have calculated the results for n=2 through to n=9:
$$beginalign
f(2)&=2\
f(3)&=9\
f(4)&=40\
f(5)&=205\
f(6)&=1236\
f(7)&=8659\
f(8)&=69280\
f(9)&=623529
endalign$$
I've tried graphing the function, but have got nowhere
Any help is appreciated!
functions recurrence-relations recursive-algorithms
$endgroup$
1
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12
add a comment |
$begingroup$
I am trying to convert the following recursive function to a non-recursive equation:
$$f(2) = 2$$
For $n>2$:
$$f(n)=nf(n-1)+n$$
I have calculated the results for n=2 through to n=9:
$$beginalign
f(2)&=2\
f(3)&=9\
f(4)&=40\
f(5)&=205\
f(6)&=1236\
f(7)&=8659\
f(8)&=69280\
f(9)&=623529
endalign$$
I've tried graphing the function, but have got nowhere
Any help is appreciated!
functions recurrence-relations recursive-algorithms
$endgroup$
I am trying to convert the following recursive function to a non-recursive equation:
$$f(2) = 2$$
For $n>2$:
$$f(n)=nf(n-1)+n$$
I have calculated the results for n=2 through to n=9:
$$beginalign
f(2)&=2\
f(3)&=9\
f(4)&=40\
f(5)&=205\
f(6)&=1236\
f(7)&=8659\
f(8)&=69280\
f(9)&=623529
endalign$$
I've tried graphing the function, but have got nowhere
Any help is appreciated!
functions recurrence-relations recursive-algorithms
functions recurrence-relations recursive-algorithms
edited Mar 17 at 23:44
Eevee Trainer
8,68131540
8,68131540
asked Mar 17 at 22:54
Tony CogginsTony Coggins
132
132
1
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12
add a comment |
1
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12
1
1
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12
add a comment |
2 Answers
2
active
oldest
votes
$begingroup$
This is a linear, nonhomogenous recurrence relation. There are general methods to solve it, which you might find in the appropriate courses (I know my combinatorics text goes over it), but here's perhaps a more intuitive derivation.
Notice that you have
$$f(n) = nf(n-1) + n$$
Imagine iterating this several times: that is, we use the definition of $f$ for $f(n-1)$. We see:
$$beginalign
f(n) &= n+ nf(n-1)\
&= n + n((n-1) + (n-1)f(n-2)) \
&= n + n(n-1) + n(n-1)f(n-2)\
&= n + n(n-1) + n(n-1)((n-2) + (n-2)f(n-3)) \
&= n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)f(n-3)\
&= ...
endalign$$
If we keep iterating this until we get to our initial condition of $f(2)=2$, then we have
$$f(n) = n + n(n-1) + n(n-1)(n-2) + ... + n(n-1)(n-2)...(3)f(2)$$
Take note: since $f(2) = 2$, the last term is actually $n!$. So what we essentially have is a sum of all of the "falling factorials" of $n$ and $n!$ itself. (A falling factorial is something like $9cdot 8 cdot 7$ - it exhibits factorial-like behavior, but doesn't go all of the way to $2$ or $1$.)
Suppose we factor out $n!$ from each term. Then we see
$$f(n) = n! left( frac1(n-1)! + frac1(n-2)! + ... + frac12! + frac11! right)$$
This begs the summation notation:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right)$$
This is the summation noted in MachineLearner's answer. Then, leaning on a past MSE post, we get the sequence OP mentioned wanting a derivation of in the comments of their question - an expression involving a floor function and $e$:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right) = lfloor n! cdot (e-1) rfloor - 1$$
This is derived by simply noting that $e$ has the power series
$$e = sum_k=0^infty frac1k!$$
If you start at $1$ instead, you get $e-1$ since $1/0!=1$. The summation in $f$ then becomes
$$sum_k=1^n-1 frac1k! = sum_k=1^infty frac1k! - sum_k=n^infty frac1k! = e-1 - sum_k=n^infty frac1k!$$
The remaining summation is less than $1$, and thus invites the floor function and the resulting minus one.
And thus, we conclude:
$$f(n) = lfloor n! cdot (e-1) rfloor - 1$$
the expression noted on the OEIS by Don Thousand in the comments.
$endgroup$
add a comment |
$begingroup$
The general term is given by
$$f(n)= n! sum_k=1^n-1 dfrac1k!=n!left[e-1+sum_k=n^inftydfrac1k! right]=n!(e-1)+n!sum_k=n^inftydfrac1k! .$$
$endgroup$
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
return StackExchange.using("mathjaxEditing", function ()
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
);
);
, "mathjax-editing");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "69"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f3152189%2fdoes-this-recursive-function-have-a-function-in-terms-of-n%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
This is a linear, nonhomogenous recurrence relation. There are general methods to solve it, which you might find in the appropriate courses (I know my combinatorics text goes over it), but here's perhaps a more intuitive derivation.
Notice that you have
$$f(n) = nf(n-1) + n$$
Imagine iterating this several times: that is, we use the definition of $f$ for $f(n-1)$. We see:
$$beginalign
f(n) &= n+ nf(n-1)\
&= n + n((n-1) + (n-1)f(n-2)) \
&= n + n(n-1) + n(n-1)f(n-2)\
&= n + n(n-1) + n(n-1)((n-2) + (n-2)f(n-3)) \
&= n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)f(n-3)\
&= ...
endalign$$
If we keep iterating this until we get to our initial condition of $f(2)=2$, then we have
$$f(n) = n + n(n-1) + n(n-1)(n-2) + ... + n(n-1)(n-2)...(3)f(2)$$
Take note: since $f(2) = 2$, the last term is actually $n!$. So what we essentially have is a sum of all of the "falling factorials" of $n$ and $n!$ itself. (A falling factorial is something like $9cdot 8 cdot 7$ - it exhibits factorial-like behavior, but doesn't go all of the way to $2$ or $1$.)
Suppose we factor out $n!$ from each term. Then we see
$$f(n) = n! left( frac1(n-1)! + frac1(n-2)! + ... + frac12! + frac11! right)$$
This begs the summation notation:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right)$$
This is the summation noted in MachineLearner's answer. Then, leaning on a past MSE post, we get the sequence OP mentioned wanting a derivation of in the comments of their question - an expression involving a floor function and $e$:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right) = lfloor n! cdot (e-1) rfloor - 1$$
This is derived by simply noting that $e$ has the power series
$$e = sum_k=0^infty frac1k!$$
If you start at $1$ instead, you get $e-1$ since $1/0!=1$. The summation in $f$ then becomes
$$sum_k=1^n-1 frac1k! = sum_k=1^infty frac1k! - sum_k=n^infty frac1k! = e-1 - sum_k=n^infty frac1k!$$
The remaining summation is less than $1$, and thus invites the floor function and the resulting minus one.
And thus, we conclude:
$$f(n) = lfloor n! cdot (e-1) rfloor - 1$$
the expression noted on the OEIS by Don Thousand in the comments.
$endgroup$
add a comment |
$begingroup$
This is a linear, nonhomogenous recurrence relation. There are general methods to solve it, which you might find in the appropriate courses (I know my combinatorics text goes over it), but here's perhaps a more intuitive derivation.
Notice that you have
$$f(n) = nf(n-1) + n$$
Imagine iterating this several times: that is, we use the definition of $f$ for $f(n-1)$. We see:
$$beginalign
f(n) &= n+ nf(n-1)\
&= n + n((n-1) + (n-1)f(n-2)) \
&= n + n(n-1) + n(n-1)f(n-2)\
&= n + n(n-1) + n(n-1)((n-2) + (n-2)f(n-3)) \
&= n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)f(n-3)\
&= ...
endalign$$
If we keep iterating this until we get to our initial condition of $f(2)=2$, then we have
$$f(n) = n + n(n-1) + n(n-1)(n-2) + ... + n(n-1)(n-2)...(3)f(2)$$
Take note: since $f(2) = 2$, the last term is actually $n!$. So what we essentially have is a sum of all of the "falling factorials" of $n$ and $n!$ itself. (A falling factorial is something like $9cdot 8 cdot 7$ - it exhibits factorial-like behavior, but doesn't go all of the way to $2$ or $1$.)
Suppose we factor out $n!$ from each term. Then we see
$$f(n) = n! left( frac1(n-1)! + frac1(n-2)! + ... + frac12! + frac11! right)$$
This begs the summation notation:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right)$$
This is the summation noted in MachineLearner's answer. Then, leaning on a past MSE post, we get the sequence OP mentioned wanting a derivation of in the comments of their question - an expression involving a floor function and $e$:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right) = lfloor n! cdot (e-1) rfloor - 1$$
This is derived by simply noting that $e$ has the power series
$$e = sum_k=0^infty frac1k!$$
If you start at $1$ instead, you get $e-1$ since $1/0!=1$. The summation in $f$ then becomes
$$sum_k=1^n-1 frac1k! = sum_k=1^infty frac1k! - sum_k=n^infty frac1k! = e-1 - sum_k=n^infty frac1k!$$
The remaining summation is less than $1$, and thus invites the floor function and the resulting minus one.
And thus, we conclude:
$$f(n) = lfloor n! cdot (e-1) rfloor - 1$$
the expression noted on the OEIS by Don Thousand in the comments.
$endgroup$
add a comment |
$begingroup$
This is a linear, nonhomogenous recurrence relation. There are general methods to solve it, which you might find in the appropriate courses (I know my combinatorics text goes over it), but here's perhaps a more intuitive derivation.
Notice that you have
$$f(n) = nf(n-1) + n$$
Imagine iterating this several times: that is, we use the definition of $f$ for $f(n-1)$. We see:
$$beginalign
f(n) &= n+ nf(n-1)\
&= n + n((n-1) + (n-1)f(n-2)) \
&= n + n(n-1) + n(n-1)f(n-2)\
&= n + n(n-1) + n(n-1)((n-2) + (n-2)f(n-3)) \
&= n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)f(n-3)\
&= ...
endalign$$
If we keep iterating this until we get to our initial condition of $f(2)=2$, then we have
$$f(n) = n + n(n-1) + n(n-1)(n-2) + ... + n(n-1)(n-2)...(3)f(2)$$
Take note: since $f(2) = 2$, the last term is actually $n!$. So what we essentially have is a sum of all of the "falling factorials" of $n$ and $n!$ itself. (A falling factorial is something like $9cdot 8 cdot 7$ - it exhibits factorial-like behavior, but doesn't go all of the way to $2$ or $1$.)
Suppose we factor out $n!$ from each term. Then we see
$$f(n) = n! left( frac1(n-1)! + frac1(n-2)! + ... + frac12! + frac11! right)$$
This begs the summation notation:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right)$$
This is the summation noted in MachineLearner's answer. Then, leaning on a past MSE post, we get the sequence OP mentioned wanting a derivation of in the comments of their question - an expression involving a floor function and $e$:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right) = lfloor n! cdot (e-1) rfloor - 1$$
This is derived by simply noting that $e$ has the power series
$$e = sum_k=0^infty frac1k!$$
If you start at $1$ instead, you get $e-1$ since $1/0!=1$. The summation in $f$ then becomes
$$sum_k=1^n-1 frac1k! = sum_k=1^infty frac1k! - sum_k=n^infty frac1k! = e-1 - sum_k=n^infty frac1k!$$
The remaining summation is less than $1$, and thus invites the floor function and the resulting minus one.
And thus, we conclude:
$$f(n) = lfloor n! cdot (e-1) rfloor - 1$$
the expression noted on the OEIS by Don Thousand in the comments.
$endgroup$
This is a linear, nonhomogenous recurrence relation. There are general methods to solve it, which you might find in the appropriate courses (I know my combinatorics text goes over it), but here's perhaps a more intuitive derivation.
Notice that you have
$$f(n) = nf(n-1) + n$$
Imagine iterating this several times: that is, we use the definition of $f$ for $f(n-1)$. We see:
$$beginalign
f(n) &= n+ nf(n-1)\
&= n + n((n-1) + (n-1)f(n-2)) \
&= n + n(n-1) + n(n-1)f(n-2)\
&= n + n(n-1) + n(n-1)((n-2) + (n-2)f(n-3)) \
&= n + n(n-1) + n(n-1)(n-2) + n(n-1)(n-2)f(n-3)\
&= ...
endalign$$
If we keep iterating this until we get to our initial condition of $f(2)=2$, then we have
$$f(n) = n + n(n-1) + n(n-1)(n-2) + ... + n(n-1)(n-2)...(3)f(2)$$
Take note: since $f(2) = 2$, the last term is actually $n!$. So what we essentially have is a sum of all of the "falling factorials" of $n$ and $n!$ itself. (A falling factorial is something like $9cdot 8 cdot 7$ - it exhibits factorial-like behavior, but doesn't go all of the way to $2$ or $1$.)
Suppose we factor out $n!$ from each term. Then we see
$$f(n) = n! left( frac1(n-1)! + frac1(n-2)! + ... + frac12! + frac11! right)$$
This begs the summation notation:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right)$$
This is the summation noted in MachineLearner's answer. Then, leaning on a past MSE post, we get the sequence OP mentioned wanting a derivation of in the comments of their question - an expression involving a floor function and $e$:
$$f(n) = n! left( sum_k=1^n-1 frac1k! right) = lfloor n! cdot (e-1) rfloor - 1$$
This is derived by simply noting that $e$ has the power series
$$e = sum_k=0^infty frac1k!$$
If you start at $1$ instead, you get $e-1$ since $1/0!=1$. The summation in $f$ then becomes
$$sum_k=1^n-1 frac1k! = sum_k=1^infty frac1k! - sum_k=n^infty frac1k! = e-1 - sum_k=n^infty frac1k!$$
The remaining summation is less than $1$, and thus invites the floor function and the resulting minus one.
And thus, we conclude:
$$f(n) = lfloor n! cdot (e-1) rfloor - 1$$
the expression noted on the OEIS by Don Thousand in the comments.
answered Mar 17 at 23:42
Eevee TrainerEevee Trainer
8,68131540
8,68131540
add a comment |
add a comment |
$begingroup$
The general term is given by
$$f(n)= n! sum_k=1^n-1 dfrac1k!=n!left[e-1+sum_k=n^inftydfrac1k! right]=n!(e-1)+n!sum_k=n^inftydfrac1k! .$$
$endgroup$
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
add a comment |
$begingroup$
The general term is given by
$$f(n)= n! sum_k=1^n-1 dfrac1k!=n!left[e-1+sum_k=n^inftydfrac1k! right]=n!(e-1)+n!sum_k=n^inftydfrac1k! .$$
$endgroup$
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
add a comment |
$begingroup$
The general term is given by
$$f(n)= n! sum_k=1^n-1 dfrac1k!=n!left[e-1+sum_k=n^inftydfrac1k! right]=n!(e-1)+n!sum_k=n^inftydfrac1k! .$$
$endgroup$
The general term is given by
$$f(n)= n! sum_k=1^n-1 dfrac1k!=n!left[e-1+sum_k=n^inftydfrac1k! right]=n!(e-1)+n!sum_k=n^inftydfrac1k! .$$
edited Mar 17 at 23:18
answered Mar 17 at 22:57
MachineLearnerMachineLearner
1,319112
1,319112
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
add a comment |
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
$begingroup$
I feel like this answer would be much more useful to the OP if you explained how you got that equation.
$endgroup$
– Eevee Trainer
Mar 17 at 23:05
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
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%2f3152189%2fdoes-this-recursive-function-have-a-function-in-terms-of-n%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
1
$begingroup$
oeis.org/A038156
$endgroup$
– Don Thousand
Mar 17 at 23:01
$begingroup$
@DonThousand a(n) = floor((e-1)*n!) - 1 was exactly what I was looking for. Anyone care to explain how to get that equation?
$endgroup$
– Tony Coggins
Mar 17 at 23:12