cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

This page as a plain text file.
%I A219659 #9 Nov 26 2012 00:01:45
%S A219659 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,
%T A219659 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,
%U A219659 14,11,7,5,2,1,0,15,11,7,5,2,1,0,16,12,10,7,5,2,1,0
%N 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.
%C A219659 Rows converge towards A219666 (reversed).
%C A219659 See A007623 for the Factorial number system representation.
%H A219659 A. Karttunen, <a href="/A219659/b219659.txt">Rows 0..120, flattened</a>
%o A219659 (Scheme with _Antti Karttunen_'s Intseq-library):
%o A219659 (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))))))))
%o A219659 (define Aux_for_219659 (compose-funs A219657 -1+ (LEAST-GTE-I 0 0 A219657))) ;; Gives the position of previous zero.
%Y A219659 Cf. A007623, A034968, A219651, A219657. Analogous sequence for binary system: A218254, for Zeckendorf expansion: A219649.
%K A219659 nonn,tabf
%O A219659 0,4
%A A219659 _Antti Karttunen_, Nov 25 2012