Convert expression to standard geometric progression












0














How can I transform a formula describing a curve (a discrete series) to the standard formula for a geometric progression?



(Note: Maths is still very much a foreign language to me. I could be using any of these terms incorrectly. I could be using mathematical notation incorrectly. I could be using MathJax incorrectly. I am trying to describe computer code in mathematical language, and may have any of the translation wrong.)



The existing function computes a sum that is expressed as (I think) the following:



$$
sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))
$$




  • $n$ is an input to the function. It is always an integer > 0.



  • $x$, $y$, $z$ are known (static) parameters in the function.




    • In this specific program, $z$ is typically a negative number, such as $-1.1$.



  • The function produces the sum of the series, for a given $n$.



Currently I have a function that does this via iterative addition. I want instead to use the sum of geometric series formula:



$$
sum_{k=1}^{n} ar^{k-1} = frac{a(1-r^{n})}{1-r}
$$



What I can't figure out is how to transform this so that:




  • The formula meets the geometric series formula, so that $x$, $y$, $z$ are encapsulated instead as appropriate values for $a$ and $r$.


  • The $n$ retains the same value i the geometric series formula, so that existing users of this function can feed the same $n$ and get the same result.



If there's some standard transformations that will make this easier, I simply don't know them. I can noodle around in a spreadsheet and watch the plotted results change for n=[1..1000000], but don't understand the mathematical basis of those effects.



How (preferably explaining what the transformation means) do I transform the $x$, $y$, $z$ from the initial expression, to the $a$ and $r$ of the geometric series expression?










share|cite|improve this question
























  • Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
    – callculus
    Dec 31 '18 at 5:48












  • Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
    – callculus
    Dec 31 '18 at 5:55












  • @callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
    – bignose
    Dec 31 '18 at 5:56










  • But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
    – callculus
    Dec 31 '18 at 5:57












  • @callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
    – bignose
    Dec 31 '18 at 6:00
















0














How can I transform a formula describing a curve (a discrete series) to the standard formula for a geometric progression?



(Note: Maths is still very much a foreign language to me. I could be using any of these terms incorrectly. I could be using mathematical notation incorrectly. I could be using MathJax incorrectly. I am trying to describe computer code in mathematical language, and may have any of the translation wrong.)



The existing function computes a sum that is expressed as (I think) the following:



$$
sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))
$$




  • $n$ is an input to the function. It is always an integer > 0.



  • $x$, $y$, $z$ are known (static) parameters in the function.




    • In this specific program, $z$ is typically a negative number, such as $-1.1$.



  • The function produces the sum of the series, for a given $n$.



Currently I have a function that does this via iterative addition. I want instead to use the sum of geometric series formula:



$$
sum_{k=1}^{n} ar^{k-1} = frac{a(1-r^{n})}{1-r}
$$



What I can't figure out is how to transform this so that:




  • The formula meets the geometric series formula, so that $x$, $y$, $z$ are encapsulated instead as appropriate values for $a$ and $r$.


  • The $n$ retains the same value i the geometric series formula, so that existing users of this function can feed the same $n$ and get the same result.



If there's some standard transformations that will make this easier, I simply don't know them. I can noodle around in a spreadsheet and watch the plotted results change for n=[1..1000000], but don't understand the mathematical basis of those effects.



How (preferably explaining what the transformation means) do I transform the $x$, $y$, $z$ from the initial expression, to the $a$ and $r$ of the geometric series expression?










share|cite|improve this question
























  • Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
    – callculus
    Dec 31 '18 at 5:48












  • Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
    – callculus
    Dec 31 '18 at 5:55












  • @callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
    – bignose
    Dec 31 '18 at 5:56










  • But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
    – callculus
    Dec 31 '18 at 5:57












  • @callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
    – bignose
    Dec 31 '18 at 6:00














0












0








0







How can I transform a formula describing a curve (a discrete series) to the standard formula for a geometric progression?



(Note: Maths is still very much a foreign language to me. I could be using any of these terms incorrectly. I could be using mathematical notation incorrectly. I could be using MathJax incorrectly. I am trying to describe computer code in mathematical language, and may have any of the translation wrong.)



The existing function computes a sum that is expressed as (I think) the following:



$$
sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))
$$




  • $n$ is an input to the function. It is always an integer > 0.



  • $x$, $y$, $z$ are known (static) parameters in the function.




    • In this specific program, $z$ is typically a negative number, such as $-1.1$.



  • The function produces the sum of the series, for a given $n$.



Currently I have a function that does this via iterative addition. I want instead to use the sum of geometric series formula:



$$
sum_{k=1}^{n} ar^{k-1} = frac{a(1-r^{n})}{1-r}
$$



What I can't figure out is how to transform this so that:




  • The formula meets the geometric series formula, so that $x$, $y$, $z$ are encapsulated instead as appropriate values for $a$ and $r$.


  • The $n$ retains the same value i the geometric series formula, so that existing users of this function can feed the same $n$ and get the same result.



If there's some standard transformations that will make this easier, I simply don't know them. I can noodle around in a spreadsheet and watch the plotted results change for n=[1..1000000], but don't understand the mathematical basis of those effects.



How (preferably explaining what the transformation means) do I transform the $x$, $y$, $z$ from the initial expression, to the $a$ and $r$ of the geometric series expression?










share|cite|improve this question















How can I transform a formula describing a curve (a discrete series) to the standard formula for a geometric progression?



(Note: Maths is still very much a foreign language to me. I could be using any of these terms incorrectly. I could be using mathematical notation incorrectly. I could be using MathJax incorrectly. I am trying to describe computer code in mathematical language, and may have any of the translation wrong.)



The existing function computes a sum that is expressed as (I think) the following:



$$
sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))
$$




  • $n$ is an input to the function. It is always an integer > 0.



  • $x$, $y$, $z$ are known (static) parameters in the function.




    • In this specific program, $z$ is typically a negative number, such as $-1.1$.



  • The function produces the sum of the series, for a given $n$.



Currently I have a function that does this via iterative addition. I want instead to use the sum of geometric series formula:



$$
sum_{k=1}^{n} ar^{k-1} = frac{a(1-r^{n})}{1-r}
$$



What I can't figure out is how to transform this so that:




  • The formula meets the geometric series formula, so that $x$, $y$, $z$ are encapsulated instead as appropriate values for $a$ and $r$.


  • The $n$ retains the same value i the geometric series formula, so that existing users of this function can feed the same $n$ and get the same result.



If there's some standard transformations that will make this easier, I simply don't know them. I can noodle around in a spreadsheet and watch the plotted results change for n=[1..1000000], but don't understand the mathematical basis of those effects.



How (preferably explaining what the transformation means) do I transform the $x$, $y$, $z$ from the initial expression, to the $a$ and $r$ of the geometric series expression?







geometric-series






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 2 at 21:48

























asked Dec 31 '18 at 5:42









bignose

1175




1175












  • Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
    – callculus
    Dec 31 '18 at 5:48












  • Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
    – callculus
    Dec 31 '18 at 5:55












  • @callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
    – bignose
    Dec 31 '18 at 5:56










  • But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
    – callculus
    Dec 31 '18 at 5:57












  • @callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
    – bignose
    Dec 31 '18 at 6:00


















  • Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
    – callculus
    Dec 31 '18 at 5:48












  • Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
    – callculus
    Dec 31 '18 at 5:55












  • @callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
    – bignose
    Dec 31 '18 at 5:56










  • But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
    – callculus
    Dec 31 '18 at 5:57












  • @callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
    – bignose
    Dec 31 '18 at 6:00
















Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
– callculus
Dec 31 '18 at 5:48






Isn´t it obvious that $sumlimits_{k=1}^{n} {x}=ncdot x$?
– callculus
Dec 31 '18 at 5:48














Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
– callculus
Dec 31 '18 at 5:55






Also note that $sum_{k=1}^{n} ar^{color{red}k} = frac{acdot color{red}r cdot (1-r^{n})}{1-r}$
– callculus
Dec 31 '18 at 5:55














@callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
– bignose
Dec 31 '18 at 5:56




@callculus, that's not the same expression though? I think maybe my initial expression is ambiguous; I've added more parentheses to better show what's grouped with what.
– bignose
Dec 31 '18 at 5:56












But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
– callculus
Dec 31 '18 at 5:57






But you still just add $x$ n-times. You can write $sum_{k=1}^{n} {x}+ ycdot sum_{k=1}^{n} ({k-1})^{z}$ as well.
– callculus
Dec 31 '18 at 5:57














@callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
– bignose
Dec 31 '18 at 6:00




@callculus, care to set out an answer? I'm going to need more explanation, I fear :-)
– bignose
Dec 31 '18 at 6:00










2 Answers
2






active

oldest

votes


















2














If your formula
$$S=sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))$$ is correct, I do not see what you can do except writing (assuming $z >0$)
$$S=sum_{k=1}^{n} x+ y sum_{k=1}^{n} (k-1)^z=nx+ysum_{k=2}^{n} (k-1)^z=nx+y, H_{n-1}^{(-z)}$$ where appear generalized harmonic numbers.



For sure, for a given integer value of $z$, you can use Faulhaber's formulae. If this is the case, you will find the expressions for $z=1,2,cdots,10$. If you need for larger values of $z$, it is possible to generate them for you in explicit forms easy to code.






share|cite|improve this answer























  • Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
    – bignose
    Jan 2 at 21:50



















1














Synthesising from @Claude-Leibovici and @Mark-S:



This is not a Geometric Series since the base is changing in each term of the sum, not the exponent. So, the expression cannot be transformed to the standard geometric progression.






share|cite|improve this answer





















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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3057457%2fconvert-expression-to-standard-geometric-progression%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









    2














    If your formula
    $$S=sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))$$ is correct, I do not see what you can do except writing (assuming $z >0$)
    $$S=sum_{k=1}^{n} x+ y sum_{k=1}^{n} (k-1)^z=nx+ysum_{k=2}^{n} (k-1)^z=nx+y, H_{n-1}^{(-z)}$$ where appear generalized harmonic numbers.



    For sure, for a given integer value of $z$, you can use Faulhaber's formulae. If this is the case, you will find the expressions for $z=1,2,cdots,10$. If you need for larger values of $z$, it is possible to generate them for you in explicit forms easy to code.






    share|cite|improve this answer























    • Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
      – bignose
      Jan 2 at 21:50
















    2














    If your formula
    $$S=sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))$$ is correct, I do not see what you can do except writing (assuming $z >0$)
    $$S=sum_{k=1}^{n} x+ y sum_{k=1}^{n} (k-1)^z=nx+ysum_{k=2}^{n} (k-1)^z=nx+y, H_{n-1}^{(-z)}$$ where appear generalized harmonic numbers.



    For sure, for a given integer value of $z$, you can use Faulhaber's formulae. If this is the case, you will find the expressions for $z=1,2,cdots,10$. If you need for larger values of $z$, it is possible to generate them for you in explicit forms easy to code.






    share|cite|improve this answer























    • Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
      – bignose
      Jan 2 at 21:50














    2












    2








    2






    If your formula
    $$S=sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))$$ is correct, I do not see what you can do except writing (assuming $z >0$)
    $$S=sum_{k=1}^{n} x+ y sum_{k=1}^{n} (k-1)^z=nx+ysum_{k=2}^{n} (k-1)^z=nx+y, H_{n-1}^{(-z)}$$ where appear generalized harmonic numbers.



    For sure, for a given integer value of $z$, you can use Faulhaber's formulae. If this is the case, you will find the expressions for $z=1,2,cdots,10$. If you need for larger values of $z$, it is possible to generate them for you in explicit forms easy to code.






    share|cite|improve this answer














    If your formula
    $$S=sum_{k=1}^{n} ({x}+({y}({k-1})^{z}))$$ is correct, I do not see what you can do except writing (assuming $z >0$)
    $$S=sum_{k=1}^{n} x+ y sum_{k=1}^{n} (k-1)^z=nx+ysum_{k=2}^{n} (k-1)^z=nx+y, H_{n-1}^{(-z)}$$ where appear generalized harmonic numbers.



    For sure, for a given integer value of $z$, you can use Faulhaber's formulae. If this is the case, you will find the expressions for $z=1,2,cdots,10$. If you need for larger values of $z$, it is possible to generate them for you in explicit forms easy to code.







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Dec 31 '18 at 6:47

























    answered Dec 31 '18 at 6:28









    Claude Leibovici

    119k1157132




    119k1157132












    • Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
      – bignose
      Jan 2 at 21:50


















    • Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
      – bignose
      Jan 2 at 21:50
















    Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
    – bignose
    Jan 2 at 21:50




    Thanks. In case it's important, $z$ is negative; I have updated the question to clarify this.
    – bignose
    Jan 2 at 21:50











    1














    Synthesising from @Claude-Leibovici and @Mark-S:



    This is not a Geometric Series since the base is changing in each term of the sum, not the exponent. So, the expression cannot be transformed to the standard geometric progression.






    share|cite|improve this answer


























      1














      Synthesising from @Claude-Leibovici and @Mark-S:



      This is not a Geometric Series since the base is changing in each term of the sum, not the exponent. So, the expression cannot be transformed to the standard geometric progression.






      share|cite|improve this answer
























        1












        1








        1






        Synthesising from @Claude-Leibovici and @Mark-S:



        This is not a Geometric Series since the base is changing in each term of the sum, not the exponent. So, the expression cannot be transformed to the standard geometric progression.






        share|cite|improve this answer












        Synthesising from @Claude-Leibovici and @Mark-S:



        This is not a Geometric Series since the base is changing in each term of the sum, not the exponent. So, the expression cannot be transformed to the standard geometric progression.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Jan 3 at 20:05









        bignose

        1175




        1175






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3057457%2fconvert-expression-to-standard-geometric-progression%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

            An IMO inspired problem

            Management

            Investment