<HTML>
<HEAD>
<TITLE>Re :  [math-fun] Sum of last ten digits</TITLE>
</HEAD>
<BODY>
<FONT COLOR="#800000"><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:24.0px'><BR>
</SPAN></FONT></FONT><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:24.0px'>Hi,<BR>
<FONT COLOR="#800000"><BR>
Neil said:<BR>
  %S A112402 0,0,0,0,0,0,0,0,0,1,1,2,4<BR>
</FONT></SPAN></FONT><BLOCKQUOTE><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:24.0px'><FONT COLOR="#800000">%N A112402 Next term is the sum of the last 10 digits in the sequence.<BR>
%C A112402 Digits, not terms!<BR>
%C A112402 There are only 10^10 possibilities for the last 10 digits, so the sequence must eventually cycle.<BR>
</FONT></SPAN></FONT></BLOCKQUOTE><FONT FACE="Courier, Courier New"><SPAN STYLE='font-size:24.0px'><FONT COLOR="#008000">Hans:<BR>
In fact, terms 19-23 (44, 40, 37, 42, 38) are repeated by terms 331-335 already. <BR>
</FONT><FONT COLOR="#0000FF">Me:<BR>
It seems the shortest loop of Éric Angelini's < sum of last ten digits > can be found beginning with 9, and has a lenght of 1 term:<BR>
0 0 0 0 0 0 0 0 0 9 9 18 27 36 45 54 45 45 45 45 45 45 45 45 45 <BR>
It should be interesting to taste the eight other (beginning with 2, 3 ...8)<BR>
</FONT><BR>
Thanks to Gilles Sadowski's computing, the seven other loops are, beginning with:<BR>
<BR>
1: loop at n(19)=44, 312 terms (Hans)<BR>
2: loop at n(17)=38, 312 terms<BR>
3: loop at n(21)=36, 104 terms<BR>
4: loop at n(16)=38, 312 terms<BR>
5: loop at n(28)=42, 312 terms<BR>
6: loop at n(28)=36, 104 terms<BR>
7: loop at n(18)=44, 312 terms<BR>
8: loop at n(32)=37, 312 terms <BR>
9: loop at n(17)=45, 1   term<BR>
(with offset 1,)<BR>
<BR>
I'm submitting them.<BR>
I don't know if this is of interest:<BR>
-only loops by lenght of 104 and 312 (and 1);<BR>
-a pattern: [312 312 104];<BR>
-loop 4 == loop 2; loop 6 = loop 3 but beginning at position 47 of loop 3;<BR>
<BR>
What's happening beginning with 10, 11, 12... ?<BR>
<BR>
<BR>
Alexandre<BR>
<BR>
Exemple:<BR>
<B>2: loop at n(17)=38, 312 terms<BR>
</B>0 0 0 0 0 0 0 0 0 2 2 4 8 16 23 28 <BR>
<B><I>38 45 42 41 41 36</I></B> 34 32 31 30 28 29 33 34 37 44 42 37 41 39 41 38 43 40 39 39 46 45 47 54 51 45 44 43 39 42 42 39 43 43 38 43 44 40 37 40 33 32 29 36 35 39 45 49 51 48 52 47 49 49 56 55 58 60 53 48 49 52 46 50 47 46 43 43 40 39 40 34 34 34 37 35 39 44 45 47 48 52 47 50 46 45 42 41 35 38 39 42 42 43 42 37 35 37 41 39 45 44 44 42 43 38 40 36 37 41 39 40 40 35 33 34 29 36 41 38 43 43 39 42 43 39 44 45 42 42 41 34 33 30 27 30 28 31 29 37 38 46 46 52 48 50 44 42 38 42 36 40 36 39 40 38 40 40 35 31 31 24 26 30 25 28 34 35 35 40 37 37 40 36 37 43 40 34 37 38 39 44 48 53 51 46 44 44 40 36 39 41 38 41 42 39 39 46 45 49 56 55 53 51 48 47 47 48 52 53 49 51 46 44 45 46 43 44 42 40 35 33 32 29 34 37 39 45 49 51 50 45 42 39 38 43 45 45 48 48 49 55 56 58 59 61 55 55 54 50 41 39 41 36 36 40 39 39 46 47 49 58 59 61 58 60 53 48 46 49 49 56 59 61 58 58 58 60 52 52 46 43 37 41 39 44 42 41 36 40 32 29 34 36 36 41 41 35 36 36 36 40 39 43 41 37 <BR>
<B><I>38 45 42 41 41 36</I></B> <BR>
 <BR>
<BR>
<B><BR>
<BR>
</B><BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>