Is it possible to calculate prefix sums for sequnce defined as sum of two previous values Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Fibonacci series in 0-Even-Odd-Even-Odd-N series up to NRearranging a series of nonnegative termsFibonacci numeration systemNumber of possible sequences with at most 2 repetitions and entry $a_i in1,2,3,dots,i$Are the regular sequences of length $n$ one-to-one with the non-decreasing “complete” sequences of positive integers of length $n$?Calculate sum of small valuesVerifying that the $2n$-th term in a modified generalized Fibonacci sequence of order $n$ is the $n-1$-th Cullen numberWhat is the name of the “unique” numbers in Fibonacci-like integer sequences?Can I know the value of a sum of elements if I know what the sum of their squares is?Have I discovered a new significance to a previously discovered constant?
Single author papers against my advisor's will?
Can I throw a longsword at someone?
Was credit for the black hole image misattributed?
Statistical model of ligand substitution
What can I do if my MacBook isn’t charging but already ran out?
Estimate capacitor parameters
Is there folklore associating late breastfeeding with low intelligence and/or gullibility?
Writing Thesis: Copying from published papers
How can players take actions together that are impossible otherwise?
How do I keep my slimes from escaping their pens?
What did Darwin mean by 'squib' here?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
Autumning in love
Cauchy Sequence Characterized only By Directly Neighbouring Sequence Members
Limit for e and 1/e
Can the prologue be the backstory of your main character?
I'm having difficulty getting my players to do stuff in a sandbox campaign
What LEGO pieces have "real-world" functionality?
Can a non-EU citizen traveling with me come with me through the EU passport line?
Did the new image of black hole confirm the general theory of relativity?
Area of a 2D convex hull
Unable to start mainnet node docker container
What is the electric potential inside a point charge?
How to market an anarchic city as a tourism spot to people living in civilized areas?
Is it possible to calculate prefix sums for sequnce defined as sum of two previous values
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Fibonacci series in 0-Even-Odd-Even-Odd-N series up to NRearranging a series of nonnegative termsFibonacci numeration systemNumber of possible sequences with at most 2 repetitions and entry $a_i in1,2,3,dots,i$Are the regular sequences of length $n$ one-to-one with the non-decreasing “complete” sequences of positive integers of length $n$?Calculate sum of small valuesVerifying that the $2n$-th term in a modified generalized Fibonacci sequence of order $n$ is the $n-1$-th Cullen numberWhat is the name of the “unique” numbers in Fibonacci-like integer sequences?Can I know the value of a sum of elements if I know what the sum of their squares is?Have I discovered a new significance to a previously discovered constant?
$begingroup$
Let's say we have sequence $S$ defined as: $S_1 = A, S_2 = B, S_i = S_i-1 + S_i-2, i > 2$.
We want to find the sum of the first $N$ elements of this sequence. Is there any easy and quick way to calculate this sum for any $A, B, N$.
What I did so far, if we define $F_i$ as the $i$-th fibonacci number, then we can write $S_i = F_i-2 * A + F_i-1 * B$. I already know that the sum of the first $N$ fibonacci numbers is $F_N+2 - 1$, however it turns out that this doesn't hold for any sequence $S$.
For example if $S = 1, 2, 3, 5, dots$ the sum of the first $2$ numbers is $3$, however $S_4 - 1 = 4$
sequences-and-series fibonacci-numbers
$endgroup$
add a comment |
$begingroup$
Let's say we have sequence $S$ defined as: $S_1 = A, S_2 = B, S_i = S_i-1 + S_i-2, i > 2$.
We want to find the sum of the first $N$ elements of this sequence. Is there any easy and quick way to calculate this sum for any $A, B, N$.
What I did so far, if we define $F_i$ as the $i$-th fibonacci number, then we can write $S_i = F_i-2 * A + F_i-1 * B$. I already know that the sum of the first $N$ fibonacci numbers is $F_N+2 - 1$, however it turns out that this doesn't hold for any sequence $S$.
For example if $S = 1, 2, 3, 5, dots$ the sum of the first $2$ numbers is $3$, however $S_4 - 1 = 4$
sequences-and-series fibonacci-numbers
$endgroup$
add a comment |
$begingroup$
Let's say we have sequence $S$ defined as: $S_1 = A, S_2 = B, S_i = S_i-1 + S_i-2, i > 2$.
We want to find the sum of the first $N$ elements of this sequence. Is there any easy and quick way to calculate this sum for any $A, B, N$.
What I did so far, if we define $F_i$ as the $i$-th fibonacci number, then we can write $S_i = F_i-2 * A + F_i-1 * B$. I already know that the sum of the first $N$ fibonacci numbers is $F_N+2 - 1$, however it turns out that this doesn't hold for any sequence $S$.
For example if $S = 1, 2, 3, 5, dots$ the sum of the first $2$ numbers is $3$, however $S_4 - 1 = 4$
sequences-and-series fibonacci-numbers
$endgroup$
Let's say we have sequence $S$ defined as: $S_1 = A, S_2 = B, S_i = S_i-1 + S_i-2, i > 2$.
We want to find the sum of the first $N$ elements of this sequence. Is there any easy and quick way to calculate this sum for any $A, B, N$.
What I did so far, if we define $F_i$ as the $i$-th fibonacci number, then we can write $S_i = F_i-2 * A + F_i-1 * B$. I already know that the sum of the first $N$ fibonacci numbers is $F_N+2 - 1$, however it turns out that this doesn't hold for any sequence $S$.
For example if $S = 1, 2, 3, 5, dots$ the sum of the first $2$ numbers is $3$, however $S_4 - 1 = 4$
sequences-and-series fibonacci-numbers
sequences-and-series fibonacci-numbers
asked Mar 25 at 19:44
someone123123someone123123
464415
464415
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
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%2f3162238%2fis-it-possible-to-calculate-prefix-sums-for-sequnce-defined-as-sum-of-two-previo%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f3162238%2fis-it-possible-to-calculate-prefix-sums-for-sequnce-defined-as-sum-of-two-previo%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