This site is supported by donations to The OEIS Foundation.

 Please make a donation to keep the OEIS running. We are now in our 55th year. In the past year we added 12000 new sequences and reached 8000 citations (which often say "discovered thanks to the OEIS"). We need to raise money to hire someone to manage submissions, which would reduce the load on our editors and speed up editing. Other ways to donate

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A219659 Irregular table where row n (n >= 0) starts with n, the next term is A219651(n), and the successive terms are obtained by repeatedly subtracting the sum of digits in the previous term's factorial expansion, until zero is reached, after which the next row starts with one larger n. 9
 0, 1, 0, 2, 1, 0, 3, 1, 0, 4, 2, 1, 0, 5, 2, 1, 0, 6, 5, 2, 1, 0, 7, 5, 2, 1, 0, 8, 6, 5, 2, 1, 0, 9, 6, 5, 2, 1, 0, 10, 7, 5, 2, 1, 0, 11, 7, 5, 2, 1, 0, 12, 10, 7, 5, 2, 1, 0, 13, 10, 7, 5, 2, 1, 0, 14, 11, 7, 5, 2, 1, 0, 15, 11, 7, 5, 2, 1, 0, 16, 12, 10, 7, 5, 2, 1, 0 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,4 COMMENTS Rows converge towards A219666 (reversed). See A007623 for the Factorial number system representation. LINKS A. Karttunen, Rows 0..120, flattened PROG (Scheme with Antti Karttunen's Intseq-library): (definec (A219659 n) (cond ((< n 2) n) ((not (zero? (A219659 (- n 1)))) (A219651 (A219659 (- n 1)))) (else (+ 1 (A219659 (+ 1 (Aux_for_219659 (- n 1)))))))) (define Aux_for_219659 (compose-funs A219657 -1+ (LEAST-GTE-I 0 0 A219657))) ;; Gives the position of previous zero. CROSSREFS Cf. A007623, A034968, A219651, A219657. Analogous sequence for binary system: A218254, for Zeckendorf expansion: A219649. Sequence in context: A194849 A071802 A110355 * A029293 A218254 A285037 Adjacent sequences:  A219656 A219657 A219658 * A219660 A219661 A219662 KEYWORD nonn,tabf AUTHOR Antti Karttunen, Nov 25 2012 STATUS approved

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

Last modified December 9 09:33 EST 2019. Contains 329877 sequences. (Running on oeis4.)