Does this sum go infinity?If $a_n$ goes to zero, can we find signs $s_n$ such that $sum s_n a_n$ converges?Asymptotic expansion for harmonic sum in two variablesConvergence of $sum_k=1^n(1-k/n)a_k$Does $sum_n=1^inftyfraccosleft(fracnpi2right)sqrtn$ converge?Bivariate infinite series: explicit sum?some infinite sum and $liminf$Sum of the inverses of numbers with $n$ divisors.Why $sum_n=0^infty (-1)^nx^2n$ converge pointwise?Does this series converge absolutely $sum_n=1^inftyfracb^n_ncos(npi)n$Does $sumlimits_k=1^infty sumlimits_n=k^infty frac(-1)^n+kn$ diverge?

Time travel from stationary position?

How could a scammer know the apps on my phone / iTunes account?

Violin - Can double stops be played when the strings are not next to each other?

Numerical Minimization of Large Expression

Why no Iridium-level flares from other satellites?

Describing a chess game in a novel

Is "upgrade" the right word to use in this context?

I got the following comment from a reputed math journal. What does it mean?

Recruiter wants very extensive technical details about all of my previous work

The German vowel “a” changes to the English “i”

What is the adequate fee for a reveal operation?

Life insurance that covers only simultaneous/dual deaths

Adventure Game (text based) in C++

This word with a lot of past tenses

Why do passenger jet manufacturers design their planes with stall prevention systems?

Pauli exclusion principle

How to explain that I do not want to visit a country due to personal safety concern?

My adviser wants to be the first author

Min function accepting varying number of arguments in C++17

How to write cleanly even if my character uses expletive language?

New passport but visa is in old (lost) passport

Does this sum go infinity?

ERC721: How to get the owned tokens of an address

How do you talk to someone whose loved one is dying?



Does this sum go infinity?


If $a_n$ goes to zero, can we find signs $s_n$ such that $sum s_n a_n$ converges?Asymptotic expansion for harmonic sum in two variablesConvergence of $sum_k=1^n(1-k/n)a_k$Does $sum_n=1^inftyfraccosleft(fracnpi2right)sqrtn$ converge?Bivariate infinite series: explicit sum?some infinite sum and $liminf$Sum of the inverses of numbers with $n$ divisors.Why $sum_n=0^infty (-1)^nx^2n$ converge pointwise?Does this series converge absolutely $sum_n=1^inftyfracb^n_ncos(npi)n$Does $sumlimits_k=1^infty sumlimits_n=k^infty frac(-1)^n+kn$ diverge?













5












$begingroup$


Consider $F(x)$ that maps from $Bbb N$ to $pm 1$, such that if $x$ is odd, then $F(x)$ = $$(-1)^(fracx-12)$$, and if $x$ is even, then $F(x)=F(y)$, where $y$ is the odd number obtained after dividing $x$ by $2$ until it is odd.



Does $S_n = sum_p=1^n F(p)$ have an explicit formula?
And if $n$ tends to $infty$ does the sum alternates or will it lie between an interval or does it tend to $pm infty$ ?










share|cite|improve this question









New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 1




    $begingroup$
    @Max thanks for the edit....this was my first question on mathstackexchange!
    $endgroup$
    – Hari Krishna P
    1 hour ago















5












$begingroup$


Consider $F(x)$ that maps from $Bbb N$ to $pm 1$, such that if $x$ is odd, then $F(x)$ = $$(-1)^(fracx-12)$$, and if $x$ is even, then $F(x)=F(y)$, where $y$ is the odd number obtained after dividing $x$ by $2$ until it is odd.



Does $S_n = sum_p=1^n F(p)$ have an explicit formula?
And if $n$ tends to $infty$ does the sum alternates or will it lie between an interval or does it tend to $pm infty$ ?










share|cite|improve this question









New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$







  • 1




    $begingroup$
    @Max thanks for the edit....this was my first question on mathstackexchange!
    $endgroup$
    – Hari Krishna P
    1 hour ago













5












5








5


3



$begingroup$


Consider $F(x)$ that maps from $Bbb N$ to $pm 1$, such that if $x$ is odd, then $F(x)$ = $$(-1)^(fracx-12)$$, and if $x$ is even, then $F(x)=F(y)$, where $y$ is the odd number obtained after dividing $x$ by $2$ until it is odd.



Does $S_n = sum_p=1^n F(p)$ have an explicit formula?
And if $n$ tends to $infty$ does the sum alternates or will it lie between an interval or does it tend to $pm infty$ ?










share|cite|improve this question









New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




Consider $F(x)$ that maps from $Bbb N$ to $pm 1$, such that if $x$ is odd, then $F(x)$ = $$(-1)^(fracx-12)$$, and if $x$ is even, then $F(x)=F(y)$, where $y$ is the odd number obtained after dividing $x$ by $2$ until it is odd.



Does $S_n = sum_p=1^n F(p)$ have an explicit formula?
And if $n$ tends to $infty$ does the sum alternates or will it lie between an interval or does it tend to $pm infty$ ?







sequences-and-series algebra-precalculus






share|cite|improve this question









New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|cite|improve this question









New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|cite|improve this question




share|cite|improve this question








edited 1 hour ago







Hari Krishna P













New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 1 hour ago









Hari Krishna PHari Krishna P

264




264




New contributor




Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Hari Krishna P is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1




    $begingroup$
    @Max thanks for the edit....this was my first question on mathstackexchange!
    $endgroup$
    – Hari Krishna P
    1 hour ago












  • 1




    $begingroup$
    @Max thanks for the edit....this was my first question on mathstackexchange!
    $endgroup$
    – Hari Krishna P
    1 hour ago







1




1




$begingroup$
@Max thanks for the edit....this was my first question on mathstackexchange!
$endgroup$
– Hari Krishna P
1 hour ago




$begingroup$
@Max thanks for the edit....this was my first question on mathstackexchange!
$endgroup$
– Hari Krishna P
1 hour ago










1 Answer
1






active

oldest

votes


















3












$begingroup$

Let $T(n) = sum_ktext is odd, kle nF(k)$. We can easily see that $T(0)=0$, $T(1)=1$, $T(2)=1$, $T(3)=0$, and $T(n+4)=T(n)$ for all $nge 0$. This is $1$ if the last two bits of $n$ (when expressed in binary) are different, and $0$ if they are the same.



Then, $T(lfloor n/2rfloor) = sum_ktext is odd, kle lfloor n/2rfloorF(k)=sum_ktext is odd, 2kle nF(2k)$, $T(lfloor n/4rfloor) = sum_ktext is odd, 4kle nF(4k)$, and so on. Every integer is equal to $2^m k$ for some nonnegative $m$ and odd $k$. As such, we can take a sum, and get
$$S_n = T(n)+T(lfloor n/2rfloor)+T(lfloor n/4rfloor)+cdots = sum_m=0^lfloor log_2 nrfloorT(lfloor n/2^mrfloor)$$
Each term is $1$ if two particular adjacent bits of $n$ are different and zero if they're equal - the $1$ bit and the $2$ bit for $T(n)$, the $2$ bit and the $4$ bit for $T(lfloor n/2rfloor)$, the $4$ bit and the $8$ bit for $T(lfloor n/4rfloor)$, and so on.



Sum them up, and $S_n$ is the number of times the sequence of bits switches between $0$ and $1$. Among $m$-bit numbers, this can be as low as $1$ for $n=2^m-1$ (the first switch, from $0$ in the $2^m$ place to $1$ in the $2^m-1$ place, is always there) or as high as $m$ for $n=lfloor 2^m+1/3rfloor$.



So, there it is - an explicit form for $S_n$, and a sequence $1,2,5,10,21,42,85,dots$ for which $S_n$ goes to $infty$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Awesome! Thank you!!
    $endgroup$
    – Hari Krishna P
    18 mins ago










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



);






Hari Krishna P is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3150671%2fdoes-this-sum-go-infinity%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









3












$begingroup$

Let $T(n) = sum_ktext is odd, kle nF(k)$. We can easily see that $T(0)=0$, $T(1)=1$, $T(2)=1$, $T(3)=0$, and $T(n+4)=T(n)$ for all $nge 0$. This is $1$ if the last two bits of $n$ (when expressed in binary) are different, and $0$ if they are the same.



Then, $T(lfloor n/2rfloor) = sum_ktext is odd, kle lfloor n/2rfloorF(k)=sum_ktext is odd, 2kle nF(2k)$, $T(lfloor n/4rfloor) = sum_ktext is odd, 4kle nF(4k)$, and so on. Every integer is equal to $2^m k$ for some nonnegative $m$ and odd $k$. As such, we can take a sum, and get
$$S_n = T(n)+T(lfloor n/2rfloor)+T(lfloor n/4rfloor)+cdots = sum_m=0^lfloor log_2 nrfloorT(lfloor n/2^mrfloor)$$
Each term is $1$ if two particular adjacent bits of $n$ are different and zero if they're equal - the $1$ bit and the $2$ bit for $T(n)$, the $2$ bit and the $4$ bit for $T(lfloor n/2rfloor)$, the $4$ bit and the $8$ bit for $T(lfloor n/4rfloor)$, and so on.



Sum them up, and $S_n$ is the number of times the sequence of bits switches between $0$ and $1$. Among $m$-bit numbers, this can be as low as $1$ for $n=2^m-1$ (the first switch, from $0$ in the $2^m$ place to $1$ in the $2^m-1$ place, is always there) or as high as $m$ for $n=lfloor 2^m+1/3rfloor$.



So, there it is - an explicit form for $S_n$, and a sequence $1,2,5,10,21,42,85,dots$ for which $S_n$ goes to $infty$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Awesome! Thank you!!
    $endgroup$
    – Hari Krishna P
    18 mins ago















3












$begingroup$

Let $T(n) = sum_ktext is odd, kle nF(k)$. We can easily see that $T(0)=0$, $T(1)=1$, $T(2)=1$, $T(3)=0$, and $T(n+4)=T(n)$ for all $nge 0$. This is $1$ if the last two bits of $n$ (when expressed in binary) are different, and $0$ if they are the same.



Then, $T(lfloor n/2rfloor) = sum_ktext is odd, kle lfloor n/2rfloorF(k)=sum_ktext is odd, 2kle nF(2k)$, $T(lfloor n/4rfloor) = sum_ktext is odd, 4kle nF(4k)$, and so on. Every integer is equal to $2^m k$ for some nonnegative $m$ and odd $k$. As such, we can take a sum, and get
$$S_n = T(n)+T(lfloor n/2rfloor)+T(lfloor n/4rfloor)+cdots = sum_m=0^lfloor log_2 nrfloorT(lfloor n/2^mrfloor)$$
Each term is $1$ if two particular adjacent bits of $n$ are different and zero if they're equal - the $1$ bit and the $2$ bit for $T(n)$, the $2$ bit and the $4$ bit for $T(lfloor n/2rfloor)$, the $4$ bit and the $8$ bit for $T(lfloor n/4rfloor)$, and so on.



Sum them up, and $S_n$ is the number of times the sequence of bits switches between $0$ and $1$. Among $m$-bit numbers, this can be as low as $1$ for $n=2^m-1$ (the first switch, from $0$ in the $2^m$ place to $1$ in the $2^m-1$ place, is always there) or as high as $m$ for $n=lfloor 2^m+1/3rfloor$.



So, there it is - an explicit form for $S_n$, and a sequence $1,2,5,10,21,42,85,dots$ for which $S_n$ goes to $infty$.






share|cite|improve this answer









$endgroup$












  • $begingroup$
    Awesome! Thank you!!
    $endgroup$
    – Hari Krishna P
    18 mins ago













3












3








3





$begingroup$

Let $T(n) = sum_ktext is odd, kle nF(k)$. We can easily see that $T(0)=0$, $T(1)=1$, $T(2)=1$, $T(3)=0$, and $T(n+4)=T(n)$ for all $nge 0$. This is $1$ if the last two bits of $n$ (when expressed in binary) are different, and $0$ if they are the same.



Then, $T(lfloor n/2rfloor) = sum_ktext is odd, kle lfloor n/2rfloorF(k)=sum_ktext is odd, 2kle nF(2k)$, $T(lfloor n/4rfloor) = sum_ktext is odd, 4kle nF(4k)$, and so on. Every integer is equal to $2^m k$ for some nonnegative $m$ and odd $k$. As such, we can take a sum, and get
$$S_n = T(n)+T(lfloor n/2rfloor)+T(lfloor n/4rfloor)+cdots = sum_m=0^lfloor log_2 nrfloorT(lfloor n/2^mrfloor)$$
Each term is $1$ if two particular adjacent bits of $n$ are different and zero if they're equal - the $1$ bit and the $2$ bit for $T(n)$, the $2$ bit and the $4$ bit for $T(lfloor n/2rfloor)$, the $4$ bit and the $8$ bit for $T(lfloor n/4rfloor)$, and so on.



Sum them up, and $S_n$ is the number of times the sequence of bits switches between $0$ and $1$. Among $m$-bit numbers, this can be as low as $1$ for $n=2^m-1$ (the first switch, from $0$ in the $2^m$ place to $1$ in the $2^m-1$ place, is always there) or as high as $m$ for $n=lfloor 2^m+1/3rfloor$.



So, there it is - an explicit form for $S_n$, and a sequence $1,2,5,10,21,42,85,dots$ for which $S_n$ goes to $infty$.






share|cite|improve this answer









$endgroup$



Let $T(n) = sum_ktext is odd, kle nF(k)$. We can easily see that $T(0)=0$, $T(1)=1$, $T(2)=1$, $T(3)=0$, and $T(n+4)=T(n)$ for all $nge 0$. This is $1$ if the last two bits of $n$ (when expressed in binary) are different, and $0$ if they are the same.



Then, $T(lfloor n/2rfloor) = sum_ktext is odd, kle lfloor n/2rfloorF(k)=sum_ktext is odd, 2kle nF(2k)$, $T(lfloor n/4rfloor) = sum_ktext is odd, 4kle nF(4k)$, and so on. Every integer is equal to $2^m k$ for some nonnegative $m$ and odd $k$. As such, we can take a sum, and get
$$S_n = T(n)+T(lfloor n/2rfloor)+T(lfloor n/4rfloor)+cdots = sum_m=0^lfloor log_2 nrfloorT(lfloor n/2^mrfloor)$$
Each term is $1$ if two particular adjacent bits of $n$ are different and zero if they're equal - the $1$ bit and the $2$ bit for $T(n)$, the $2$ bit and the $4$ bit for $T(lfloor n/2rfloor)$, the $4$ bit and the $8$ bit for $T(lfloor n/4rfloor)$, and so on.



Sum them up, and $S_n$ is the number of times the sequence of bits switches between $0$ and $1$. Among $m$-bit numbers, this can be as low as $1$ for $n=2^m-1$ (the first switch, from $0$ in the $2^m$ place to $1$ in the $2^m-1$ place, is always there) or as high as $m$ for $n=lfloor 2^m+1/3rfloor$.



So, there it is - an explicit form for $S_n$, and a sequence $1,2,5,10,21,42,85,dots$ for which $S_n$ goes to $infty$.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered 50 mins ago









jmerryjmerry

14.3k1629




14.3k1629











  • $begingroup$
    Awesome! Thank you!!
    $endgroup$
    – Hari Krishna P
    18 mins ago
















  • $begingroup$
    Awesome! Thank you!!
    $endgroup$
    – Hari Krishna P
    18 mins ago















$begingroup$
Awesome! Thank you!!
$endgroup$
– Hari Krishna P
18 mins ago




$begingroup$
Awesome! Thank you!!
$endgroup$
– Hari Krishna P
18 mins ago










Hari Krishna P is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Hari Krishna P is a new contributor. Be nice, and check out our Code of Conduct.












Hari Krishna P is a new contributor. Be nice, and check out our Code of Conduct.











Hari Krishna P is a new contributor. Be nice, and check out our Code of Conduct.














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%2f3150671%2fdoes-this-sum-go-infinity%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

acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”