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