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 A228871 #29 Jan 20 2022 15:55:57 %S A228871 3,227,14563,932067,59652323,3817748707,244335917283,15637498706147, %T A228871 1000799917193443,64051194700380387,4099276460824344803, %U A228871 262353693492758067427,16790636383536516315363,1074600728546337044183267,68774446626965570827729123 %N A228871 Odd numbers producing 3 out-of-order odd numbers in the Collatz (3x+1) iteration. %C A228871 Sequence A198584 gives the first term of the Collatz sequence having exactly 3 odd numbers. This sequence is the subset of A198584 for which the second odd number is larger than the first. The second odd number is (2^(6*n - 2) - 1)/3, which always occurs as the third term of the sequence. %C A228871 {a(n) mod 6} = {repeat(3, 5, 1)}, and a(n) mod 8 = 3 for all n. Proof from the formula of a(n) in terms of A198586 given below, using the modulo 72 congruence of the odd indexed part of A198586 given there. - _Wolfdieter Lang_, Jan 14 2022 %H A228871 <a href="/index/Rec#order_02">Index entries for linear recurrences with constant coefficients</a>, signature (65,-64). %F A228871 a(n) = (64^n/2 - 5)/9. - _Alois P. Heinz_, Dec 08 2021 %F A228871 From _Wolfdieter Lang_, Jan 12 2022: (Start) %F A228871 a(n) = (2*A198586(2*n-1) - 1)/3. See the Mathematica program. %F A228871 G.f.: x*(3 + 32*x)/((1 - x)*(1 - 64*x)). (End) %e A228871 The number 3 has the Collatz iteration {3, 10, 5, 16, 8, 4, 2, 1}, which has three out-of-order odd numbers {3, 5, 1}. %t A228871 Table[(2*(2^(6*n - 2) - 1)/3 - 1)/3, {n, 15}] %o A228871 (PARI) a(n)=4^(3*n-1)\3*2\3 \\ _Charles R Greathouse IV_, Mar 11 2017 %Y A228871 Cf. A198584 (Collatz iterations having 3 odd numbers). %Y A228871 Cf. A228872 (Collatz iterations producing 3 in-order odd numbers). %Y A228871 Cf. A198586. %K A228871 nonn,easy %O A228871 1,1 %A A228871 _T. D. Noe_, Sep 12 2013