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?










0












$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$










share|cite|improve this question









$endgroup$
















    0












    $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$










    share|cite|improve this question









    $endgroup$














      0












      0








      0





      $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$










      share|cite|improve this question









      $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






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 25 at 19:44









      someone123123someone123123

      464415




      464415




















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

          random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

          Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye