|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/13.10.23.0002.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 Sum[DigitCount[k, 2, 1], {k, 0, 2^n - 1}] - Sum[DigitCount[k, 2, 1],
{k, 0, 2^(n + 1) - 1}] == 2^n (n - 1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["4", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[SuperscriptBox["2", "n"], "-", "1"]]], RowBox[List["DigitCount", "[", RowBox[List["k", ",", "2", ",", "1"]], "]"]]]]]], "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[SuperscriptBox["2", RowBox[List["n", "+", "1"]]], "-", "1"]]], RowBox[List["DigitCount", "[", RowBox[List["k", ",", "2", ",", "1"]], "]"]]]]]], "\[Equal]", RowBox[List[SuperscriptBox["2", "n"], " ", RowBox[List["(", RowBox[List["n", "-", "1"]], ")"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mrow> <mn> 4 </mn> <mo> ⁢ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <msup> <mn> 2 </mn> <mi> n </mi> </msup> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <mrow> <msubsup> <mi> s </mi> <mn> 2 </mn> <mrow> <mo> ( </mo> <mn> 1 </mn> <mo> ) </mo> </mrow> </msubsup> <mo> ( </mo> <mi> k </mi> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> - </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <msup> <mn> 2 </mn> <mrow> <mi> n </mi> <mo> + </mo> <mn> 1 </mn> </mrow> </msup> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <mrow> <msubsup> <mi> s </mi> <mn> 2 </mn> <mrow> <mo> ( </mo> <mn> 1 </mn> <mo> ) </mo> </mrow> </msubsup> <mo> ( </mo> <mi> k </mi> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> ⩵ </mo> <mrow> <msup> <mn> 2 </mn> <mi> n </mi> </msup> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mi> n </mi> <mo> - </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <plus /> <apply> <times /> <cn type='integer'> 4 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <apply> <power /> <cn type='integer'> 2 </cn> <ci> n </ci> </apply> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <apply> <power /> <apply> <ci> Subscript </ci> <ci> s </ci> <cn type='integer'> 2 </cn> </apply> <cn type='integer'> 1 </cn> </apply> <ci> k </ci> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <apply> <power /> <cn type='integer'> 2 </cn> <apply> <plus /> <ci> n </ci> <cn type='integer'> 1 </cn> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <apply> <power /> <apply> <ci> Subscript </ci> <ci> s </ci> <cn type='integer'> 2 </cn> </apply> <cn type='integer'> 1 </cn> </apply> <ci> k </ci> </apply> </apply> </apply> </apply> <apply> <times /> <apply> <power /> <cn type='integer'> 2 </cn> <ci> n </ci> </apply> <apply> <plus /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List[RowBox[List["4", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[SuperscriptBox["2", "n_"], "-", "1"]]], RowBox[List["DigitCount", "[", RowBox[List["k", ",", "2", ",", "1"]], "]"]]]]]], "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[SuperscriptBox["2", RowBox[List["n_", "+", "1"]]], "-", "1"]]], RowBox[List["DigitCount", "[", RowBox[List["k", ",", "2", ",", "1"]], "]"]]]]]], "]"]], "\[RuleDelayed]", RowBox[List[SuperscriptBox["2", "n"], " ", RowBox[List["(", RowBox[List["n", "-", "1"]], ")"]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|