login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A081503 Number of steps to reach a single digit when map in A081502 is iterated. 2

%I #10 Oct 03 2014 11:43:04

%S 0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,2,2,2,1,1,1,1,2,2,2,2,2,2,1,2,2,2,

%T 2,2,2,2,3,3,2,2,2,2,2,3,3,3,2,2,2,2,3,3,3,2,2,2,2,3,3,3,2,2,2,2,3,3,

%U 3,3,2,2,2,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3,3,3,2,3,3,3,3

%N Number of steps to reach a single digit when map in A081502 is iterated.

%F a(n) = O(log n).

%e 19 -> 3+9 = 12 -> 3+2 = 5, taking 2 steps, so a(19)=2.

%p A081503 := proc(n)

%p local nitr,a ;

%p nitr := n ;

%p a := 0 ;

%p while nitr > 9 do

%p nitr := A081502(nitr) ;

%p a := a+1 ;

%p end do;

%p a ;

%p end proc: # _R. J. Mathar_, Oct 03 2014

%K nonn,easy,base

%O 0,18

%A _N. J. A. Sloane_, Apr 22 2003

%E More terms from _Matthew Conroy_, Jan 16 2006

%E Formula from _Charles R Greathouse IV_, Aug 02 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 08:45 EDT 2024. Contains 371782 sequences. (Running on oeis4.)