Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A099646
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A099646 Function f[n]=1+Sum[digit^2 of n] is iterated and a[n] is the length of terminal cycle at initial value n. +0
5
9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9, 9, 9, 9, 9, 9, 1, 9, 9, 9, 1, 9, 9, 9, 9, 9, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9 (list; graph; listen)
OFFSET

1,1

COMMENT

Iteration g[x] applied in A031176 is slightly modified to obtain actual function: f[x]=1+g[x]. Cases of a[n]=1 (n=35,36,...) are analogous to happy numbers [A007770].

EXAMPLE

n=1:iteration-list=

{1,2,5,26,41,18,66,73,59,107,51,[27,54,42,21,6,37,59,107,51],27...

with t=11 transient and c=a[1]=9, the cycle-length;

n=35:list={36,46,53,[35],35,...} with transient t=3,c=1 cycle-length.

MATHEMATICA

ed[x_] :=IntegerDigits[x]; f[x_] :=Apply[Plus, ed[x]^2]+1; itef[x_, ho_] :=NestList[f, x, ho]; tmc=Table[Length[Union[itef[w, 100], {w, 1, 256}]; c1=Table[Min[Flatten[Position[itef[w, Length[Union[itef[w, 100]]]] -Last[itef[w, Length[Union[itef[w, 100]]]]], 0]]], {w, 1, 256}]; (*transient-length=*)c1-1; (*cycle-length=*)c=tmc-(c1-1); (*ho=iteration number is chosen by trial and error*) (*program provides t, t+c and c lengths[=unknown-in-advance] for any similar iterations if f modified*)

CROSSREFS

Cf. A031176, A099645, A007770, A099647.

Sequence in context: A091668 A116667 A137577 this_sequence A010734 A066568 A106326

Adjacent sequences: A099643 A099644 A099645 this_sequence A099647 A099648 A099649

KEYWORD

nonn,base

AUTHOR

Labos E. (labos(AT)ana.sote.hu), Nov 11 2004

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research