(************** Content-type: application/mathematica ************** CreatedBy='Mathematica 5.2' Mathematica-Compatible Notebook This notebook can be used with any Mathematica-compatible application, such as Mathematica, MathReader or Publicon. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. *******************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 4400, 124]*) (*NotebookOutlinePosition[ 5053, 147]*) (* CellTagsIndexPosition[ 5009, 143]*) (*WindowFrame->Normal*) Notebook[{ Cell[CellGroupData[{ Cell["Unusual sequence stuff", "Subsubtitle"], Cell[TextData[{ "Create a sequence by starting with two given fixed numbers ", Cell[BoxData[ \(TraditionalForm\`a\_0\)]], "and ", Cell[BoxData[ \(TraditionalForm\`a\_1\)]], "and create a new sequence by appending the digits of their product to the \ end. Continuing in that fashion one step to the right, etc..." }], "Text"], Cell[BoxData[ \(seq[a_, b_, steps_] := \(Nest[\(({Join[#[\([1]\)], Flatten[ Table[IntegerDigits[\(#[\([\)\(1\)\(]\)]\)[\([i]\)]*\(#[\(\ [\)\(1\)\(]\)]\)[\([i + 1]\)]], \ {i, \ #[\([2]\)], \ Length[#[\([\)\(1\)\(]\)]] - 1}]]], Length[#[\([1]\)]]})\) &, {{a, b}, 1}, steps]\)[\([1]\)]\)], "Input"], Cell["\<\ Here is a sample output. Example taken from \"Problem Solving \ through Problems by Larson:\ \>", "Text"], Cell[CellGroupData[{ Cell[BoxData[ \(seq[2, \ 7, \ 6]\)], "Input"], Cell[BoxData[ \({2, 7, 1, 4, 7, 4, 2, 8, 2, 8, 8, 1, 6, 1, 6, 1, 6, 6, 4, 8, 6, 6, 6, 6, 6, 3, 6, 2, 4, 3, 2, 4, 8, 3, 6, 3, 6, 3, 6, 3, 6}\)], "Output"] }, Open ]], Cell[TextData[{ "We are asked to prove that the digit 6 appears an infinite number of times \ in this sequence.\n\nI did this by noticing the following:\n\nLet ", Cell[BoxData[ \(TraditionalForm\`\(\(<\)\(S\_1\)\(>\)\) \[RightArrow] \(\(<\)\(S\_2\)\ \(>\)\)\)]], "mean that sequence ", Cell[BoxData[ \(TraditionalForm\`\(\(S\_1\)\(\ \)\)\)]], "appends ", Cell[BoxData[ \(TraditionalForm\`S\_2\)]], " to the end of the sequence. Notice that ", Cell[BoxData[ \(TraditionalForm\`S\_2\)]], "stays in tact and when we reach it, it will append its portion to the end. \ This reduces the problem to finding a finite sequence that guaruntees \ reproduction of 6s.\n\nLooking above at the output we find <3, 6, 3> and have \ the following:\n", Cell[BoxData[ \(TraditionalForm\`\(\(<\)\(3\)\), 6, \(\(3\)\(>\)\) \[RightArrow] \(\(<\)\(1\)\), \ 8, \ 1, \ \(\(8\)\(>\)\)\ \[RightArrow] \ \(\(<\)\(8\)\), \ 8, \ \(\(8\)\(>\)\)\ \[RightArrow] \ \(\(<\)\(6\)\), \ 4, \ 6, \ \(\(4\)\(>\)\)\ \[RightArrow] \ \(\(<\)\(2\)\), \ 4, \ 2, \ 4, \ 2, \ \(\(4\)\(>\)\)\ \[RightArrow] \ \(\(<\)\(8\)\), \ 8, \ 8 > \(+etc\) ... \)], "InlineFormula"], "\n\nEventually we run into another string of three 8's (a long string in \ fact) which is immediately followed by appending <6, 4, 6, 4>. This repeats \ ad infinitum for an infinite number of 6's." }], "Text"] }, Open ]] }, FrontEndVersion->"5.2 for X", ScreenRectangle->{{0, 1280}, {0, 1024}}, WindowSize->{714, 672}, WindowMargins->{{Automatic, 245}, {Automatic, 118}}, ShowSelection->True ] (******************************************************************* Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. *******************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[CellGroupData[{ Cell[1776, 53, 45, 0, 33, "Subsubtitle"], Cell[1824, 55, 347, 9, 50, "Text"], Cell[2174, 66, 400, 8, 91, "Input"], Cell[2577, 76, 116, 3, 32, "Text"], Cell[CellGroupData[{ Cell[2718, 83, 49, 1, 27, "Input"], Cell[2770, 86, 164, 2, 43, "Output"] }, Open ]], Cell[2949, 91, 1435, 30, 244, "Text"] }, Open ]] } ] *) (******************************************************************* End of Mathematica Notebook file. *******************************************************************)