Deriving a formula for an arbitrary term in $1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, ldots$












1












$begingroup$


A sequence of numbers is given as:
$$1, 2, 2, 3, 3, 3, 4, 4, 4, 4, text{and so on}$$
(Each integer $n$ is repeated $n$ times.) What will be the 50th term of that sequence?



Let's say $x=50$. Then solving $x=n(n+1)/2$ gives the value of $n$ (rounded off to nearest integer).



My question is: If I make a small change in the above pattern, can we have a direct formula to calculate $n$?




The new pattern is :
$$1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, ldots$$
i.e., $1$ and $2$ are repeated once, and $n$ is repeated $(n-1)$ times.



How can we derive a formula for this pattern?











share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
    $endgroup$
    – JMoravitz
    Jan 30 at 19:25












  • $begingroup$
    Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
    $endgroup$
    – Maxy Daen
    Jan 30 at 19:31
















1












$begingroup$


A sequence of numbers is given as:
$$1, 2, 2, 3, 3, 3, 4, 4, 4, 4, text{and so on}$$
(Each integer $n$ is repeated $n$ times.) What will be the 50th term of that sequence?



Let's say $x=50$. Then solving $x=n(n+1)/2$ gives the value of $n$ (rounded off to nearest integer).



My question is: If I make a small change in the above pattern, can we have a direct formula to calculate $n$?




The new pattern is :
$$1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, ldots$$
i.e., $1$ and $2$ are repeated once, and $n$ is repeated $(n-1)$ times.



How can we derive a formula for this pattern?











share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
    $endgroup$
    – JMoravitz
    Jan 30 at 19:25












  • $begingroup$
    Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
    $endgroup$
    – Maxy Daen
    Jan 30 at 19:31














1












1








1





$begingroup$


A sequence of numbers is given as:
$$1, 2, 2, 3, 3, 3, 4, 4, 4, 4, text{and so on}$$
(Each integer $n$ is repeated $n$ times.) What will be the 50th term of that sequence?



Let's say $x=50$. Then solving $x=n(n+1)/2$ gives the value of $n$ (rounded off to nearest integer).



My question is: If I make a small change in the above pattern, can we have a direct formula to calculate $n$?




The new pattern is :
$$1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, ldots$$
i.e., $1$ and $2$ are repeated once, and $n$ is repeated $(n-1)$ times.



How can we derive a formula for this pattern?











share|cite|improve this question











$endgroup$




A sequence of numbers is given as:
$$1, 2, 2, 3, 3, 3, 4, 4, 4, 4, text{and so on}$$
(Each integer $n$ is repeated $n$ times.) What will be the 50th term of that sequence?



Let's say $x=50$. Then solving $x=n(n+1)/2$ gives the value of $n$ (rounded off to nearest integer).



My question is: If I make a small change in the above pattern, can we have a direct formula to calculate $n$?




The new pattern is :
$$1, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, ldots$$
i.e., $1$ and $2$ are repeated once, and $n$ is repeated $(n-1)$ times.



How can we derive a formula for this pattern?








pattern-recognition






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 30 at 19:53









Blue

49.4k870157




49.4k870157










asked Jan 30 at 19:19









Maxy DaenMaxy Daen

62




62








  • 1




    $begingroup$
    You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
    $endgroup$
    – JMoravitz
    Jan 30 at 19:25












  • $begingroup$
    Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
    $endgroup$
    – Maxy Daen
    Jan 30 at 19:31














  • 1




    $begingroup$
    You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
    $endgroup$
    – JMoravitz
    Jan 30 at 19:25












  • $begingroup$
    Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
    $endgroup$
    – Maxy Daen
    Jan 30 at 19:31








1




1




$begingroup$
You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
$endgroup$
– JMoravitz
Jan 30 at 19:25






$begingroup$
You can ignore the existence of the $1$, and then notice that the sequence $2,3,3,4,4,4,5,5,5,5,dots$ is simply the sequence where each entry is one more than the corresponding entry in the earlier mentioned sequence.
$endgroup$
– JMoravitz
Jan 30 at 19:25














$begingroup$
Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
$endgroup$
– Maxy Daen
Jan 30 at 19:31




$begingroup$
Yeah i get that, but let's say i'm only provided with 'x' and i need to find the corresponding 'n' for it according to the new sequence
$endgroup$
– Maxy Daen
Jan 30 at 19:31










1 Answer
1






active

oldest

votes


















0












$begingroup$

Using JMoravitz hint above, you can replace $x$ with $x-1$ and $n$ with $n-1$ and now your formula is $x-1=(n-1)(n)/2$. Whatever you get for n should be rounded up to the nearest integer if it isn't an integer already.



For example for $x=5$, we have $4 = (n-1)(n)/2 to 8 = (n-1)(n) to n^2-n-8=0 to n=3.37$ which rounds up to 4.






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
    $endgroup$
    – Omnomnomnom
    Jan 30 at 19:59












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%2f3093987%2fderiving-a-formula-for-an-arbitrary-term-in-1-2-3-3-4-4-4-5-5-5-5-6%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

Using JMoravitz hint above, you can replace $x$ with $x-1$ and $n$ with $n-1$ and now your formula is $x-1=(n-1)(n)/2$. Whatever you get for n should be rounded up to the nearest integer if it isn't an integer already.



For example for $x=5$, we have $4 = (n-1)(n)/2 to 8 = (n-1)(n) to n^2-n-8=0 to n=3.37$ which rounds up to 4.






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
    $endgroup$
    – Omnomnomnom
    Jan 30 at 19:59
















0












$begingroup$

Using JMoravitz hint above, you can replace $x$ with $x-1$ and $n$ with $n-1$ and now your formula is $x-1=(n-1)(n)/2$. Whatever you get for n should be rounded up to the nearest integer if it isn't an integer already.



For example for $x=5$, we have $4 = (n-1)(n)/2 to 8 = (n-1)(n) to n^2-n-8=0 to n=3.37$ which rounds up to 4.






share|cite|improve this answer









$endgroup$









  • 1




    $begingroup$
    Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
    $endgroup$
    – Omnomnomnom
    Jan 30 at 19:59














0












0








0





$begingroup$

Using JMoravitz hint above, you can replace $x$ with $x-1$ and $n$ with $n-1$ and now your formula is $x-1=(n-1)(n)/2$. Whatever you get for n should be rounded up to the nearest integer if it isn't an integer already.



For example for $x=5$, we have $4 = (n-1)(n)/2 to 8 = (n-1)(n) to n^2-n-8=0 to n=3.37$ which rounds up to 4.






share|cite|improve this answer









$endgroup$



Using JMoravitz hint above, you can replace $x$ with $x-1$ and $n$ with $n-1$ and now your formula is $x-1=(n-1)(n)/2$. Whatever you get for n should be rounded up to the nearest integer if it isn't an integer already.



For example for $x=5$, we have $4 = (n-1)(n)/2 to 8 = (n-1)(n) to n^2-n-8=0 to n=3.37$ which rounds up to 4.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 30 at 19:45









Akash PatelAkash Patel

168110




168110








  • 1




    $begingroup$
    Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
    $endgroup$
    – Omnomnomnom
    Jan 30 at 19:59














  • 1




    $begingroup$
    Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
    $endgroup$
    – Omnomnomnom
    Jan 30 at 19:59








1




1




$begingroup$
Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
$endgroup$
– Omnomnomnom
Jan 30 at 19:59




$begingroup$
Ultimately this amounts to the formula $$ n = left lceil frac 12 (sqrt{8x - 7} + 1) right rceil $$
$endgroup$
– Omnomnomnom
Jan 30 at 19:59


















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%2f3093987%2fderiving-a-formula-for-an-arbitrary-term-in-1-2-3-3-4-4-4-5-5-5-5-6%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

MongoDB - Not Authorized To Execute Command

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

How to fix TextFormField cause rebuild widget in Flutter