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.

A033481 3x+1 sequence beginning at 21.

This page as a plain text file.
%I A033481 #21 Jan 05 2024 13:27:10
%S A033481 21,64,32,16,8,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,
%T A033481 4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,
%U A033481 2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1,4,2,1
%N A033481 3x+1 sequence beginning at 21.
%H A033481 Colin Barker, <a href="/A033481/b033481.txt">Table of n, a(n) for n = 0..1000</a>
%H A033481 Bertrand Teguia Tabuguia, <a href="https://arxiv.org/abs/2401.00256">Hypergeometric-Type Sequences</a>, arXiv:2401.00256 [cs.SC], 2023. See p. 20.
%H A033481 <a href="/index/3#3x1">Index entries for sequences related to 3x+1 (or Collatz) problem</a>
%H A033481 <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (0,0,1).
%F A033481 From _Colin Barker_, Oct 04 2019: (Start)
%F A033481 G.f.: (21 + 64*x + 32*x^2 - 5*x^3 - 56*x^4 - 28*x^5 - 14*x^6 - 7*x^7) / ((1 - x)*(1 + x + x^2)).
%F A033481 a(n) = a(n-3) for n>15.
%F A033481 (End)
%t A033481 NestList[If[EvenQ[#],#/2,3#+1]&,21,100] (* or *) PadRight[ {21,64,32,16,8},100,{2,1,4}] (* _Harvey P. Dale_, Sep 30 2018 *)
%o A033481 (PARI) Vec((21 + 64*x + 32*x^2 - 5*x^3 - 56*x^4 - 28*x^5 - 14*x^6 - 7*x^7) / ((1 - x)*(1 + x + x^2)) + O(x^80)) \\ _Colin Barker_, Oct 04 2019
%Y A033481 Row 21 of A347270.
%K A033481 nonn,easy
%O A033481 0,1
%A A033481 _Jeff Burch_