OFFSET
1,12
COMMENTS
LINKS
N. J. A. Sloane, in reply to D. W. Wilson, Re: As much as I hate "base" sequences..., SeqFan list, Jan 18 2014
David W. Wilson, Ray Chandler, Alonso Del Arte, M. F. Hasler, Hans Havermann, Alex Meiburg, N. J. A. Sloane, Hugo Van Der Sanden, and Allan Wechsler, As much as I hate "base" sequences..., Copies of various posts to the Sequence Fans Mailing List, Circa January 2014. Assembled by N. J. A. Sloane, Dec 23 2024
EXAMPLE
a(1) = 0 since no iteration of A235600 is needed to reach 1.
a(n) = 1 for 1 <= n <= 9, since these n are equal to (thus divisible by) their sum of digits A007953(n), and 1 is reached upon the first iteration of A235600 (which consists of dividing n by its sum of digits).
a(10) = -1 since A007953(10) = 1 and therefore application of A235600 yields a constant sequence that never reaches 1.
PROG
(PARI) A236338 = n -> for(i=0, 999, n==1&&return(i); if(n%sumdigits(n)||n==n\=sumdigits(n), return(-1)))
CROSSREFS
KEYWORD
sign,base
AUTHOR
M. F. Hasler, Jan 22 2014
STATUS
approved