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.
%I A260712 #22 Jan 25 2025 13:09:48 %S A260712 0,0,0,0,6,0,0,0,5,6,0,0,0,0,5,0,4,5,0,6,4,0,55,0,0,0,4,0,141,5,0,0, %T A260712 140,4,1,5,0,0,54,6,0,4,2,0,145,55,0,0,3,0,6,0,2,4,0,0,1,141,0,5,0,0, %U A260712 3,0,2,140,0,4,4,1,4,5,0,0,1,0,2,54,5,6,3,0,3,4,4,2,0,0,4,145,0,55,139,0,1,0,0,3,53,0,3,6,0,0,3,2,14,4,0 %N A260712 Number of iterations of A234742 needed when started from n before a fixed point is reached. %C A260712 The fixed points of A234742 are in A235035, thus the latter gives the zeros of this sequence. %C A260712 It is not known whether the sequence is well-defined for all values. For example, does a(455) or a(1361) have a finite value? Cf. sequences A260735 and A260441. %H A260712 Antti Karttunen, <a href="/A260712/b260712.txt">Table of n, a(n) for n = 1..454</a> %F A260712 If A234742(n) = n, then a(n) = 0, otherwise a(n) = 1 + a(A234742(n)). %F A260712 Other identities: %F A260712 a(A235035(n)) = 0. %F A260712 a(2n) = a(n). %o A260712 (PARI) %o A260712 allocatemem((2^30)); %o A260712 A234742(n) = factorback(subst(lift(factor(Mod(1, 2)*Pol(binary(n)))), x, 2)); \\ After _M. F. Hasler_'s Feb 18 2014 code. %o A260712 A260712(n) = {my(prev=-1,i=-1); until((n==prev), prev = n; n = A234742(n); i++); return(i); }; %o A260712 for(n=1, 454, write("b260712.txt", n, " ", A260712(n))); %o A260712 (Scheme) %o A260712 ;; Uses memoizing definec-macro. %o A260712 (definec (A260712 n) (let ((next (A234742 n))) (if (= next n) 0 (+ 1 (A260712 next))))) %o A260712 (Scheme) %o A260712 (define (A260712loop n) (let loop ((n (A234742 n)) (prev_n n) (i 0)) (if (= n prev_n) i (loop (A234742 n) n (+ 1 i))))) %Y A260712 Cf. A235035 (gives the positions of zeros). %Y A260712 Cf. A234742, A260735, A260735, A260441. %Y A260712 Subsequences: A260713, A260716. %K A260712 nonn %O A260712 1,5 %A A260712 _Antti Karttunen_, Aug 04 2015